bundle.js 478 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372
  1. !(function (t) {
  2. var e = this.webpackHotUpdate;
  3. this.webpackHotUpdate = function (t, i) {
  4. !(function (t, e) {
  5. if (!v[t] || !y[t]) return;
  6. for (var i in ((y[t] = !1), e)) Object.prototype.hasOwnProperty.call(e, i) && (c[i] = e[i]);
  7. 0 == --p && 0 === d && _();
  8. })(t, i),
  9. e && e(t, i);
  10. };
  11. var i,
  12. n = !0,
  13. g = "6ebc6af84dfdad10b153",
  14. A = {},
  15. r = [],
  16. o = [];
  17. function C(t) {
  18. var e = P[t];
  19. if (!e) return O;
  20. var n = function (n) {
  21. return (
  22. e.hot.active
  23. ? (P[n] ? -1 === P[n].parents.indexOf(t) && P[n].parents.push(t) : ((r = [t]), (i = n)), -1 === e.children.indexOf(n) && e.children.push(n))
  24. : (console.warn("[HMR] unexpected require(" + n + ") from disposed module " + t), (r = [])),
  25. O(n)
  26. );
  27. },
  28. g = function (t) {
  29. return {
  30. configurable: !0,
  31. enumerable: !0,
  32. get: function () {
  33. return O[t];
  34. },
  35. set: function (e) {
  36. O[t] = e;
  37. },
  38. };
  39. };
  40. for (var A in O) Object.prototype.hasOwnProperty.call(O, A) && "e" !== A && "t" !== A && Object.defineProperty(n, A, g(A));
  41. return (
  42. (n.e = function (t) {
  43. return (
  44. "ready" === a && l("prepare"),
  45. d++,
  46. O.e(t).then(e, function (t) {
  47. throw (e(), t);
  48. })
  49. );
  50. function e() {
  51. d--, "prepare" === a && (f[t] || x(t), 0 === d && 0 === p && _());
  52. }
  53. }),
  54. (n.t = function (t, e) {
  55. return 1 & e && (t = n(t)), O.t(t, -2 & e);
  56. }),
  57. n
  58. );
  59. }
  60. function I(t) {
  61. var e = {
  62. _acceptedDependencies: {},
  63. _declinedDependencies: {},
  64. _selfAccepted: !1,
  65. _selfDeclined: !1,
  66. _disposeHandlers: [],
  67. _main: i !== t,
  68. active: !0,
  69. accept: function (t, i) {
  70. if (void 0 === t) e._selfAccepted = !0;
  71. else if ("function" == typeof t) e._selfAccepted = t;
  72. else if ("object" == typeof t) for (var n = 0; n < t.length; n++) e._acceptedDependencies[t[n]] = i || function () {};
  73. else e._acceptedDependencies[t] = i || function () {};
  74. },
  75. decline: function (t) {
  76. if (void 0 === t) e._selfDeclined = !0;
  77. else if ("object" == typeof t) for (var i = 0; i < t.length; i++) e._declinedDependencies[t[i]] = !0;
  78. else e._declinedDependencies[t] = !0;
  79. },
  80. dispose: function (t) {
  81. e._disposeHandlers.push(t);
  82. },
  83. addDisposeHandler: function (t) {
  84. e._disposeHandlers.push(t);
  85. },
  86. removeDisposeHandler: function (t) {
  87. var i = e._disposeHandlers.indexOf(t);
  88. i >= 0 && e._disposeHandlers.splice(i, 1);
  89. },
  90. check: b,
  91. apply: w,
  92. status: function (t) {
  93. if (!t) return a;
  94. s.push(t);
  95. },
  96. addStatusHandler: function (t) {
  97. s.push(t);
  98. },
  99. removeStatusHandler: function (t) {
  100. var e = s.indexOf(t);
  101. e >= 0 && s.splice(e, 1);
  102. },
  103. data: A[t],
  104. };
  105. return (i = void 0), e;
  106. }
  107. var s = [],
  108. a = "idle";
  109. function l(t) {
  110. a = t;
  111. for (var e = 0; e < s.length; e++) s[e].call(null, t);
  112. }
  113. var u,
  114. c,
  115. h,
  116. p = 0,
  117. d = 0,
  118. f = {},
  119. y = {},
  120. v = {};
  121. function m(t) {
  122. return +t + "" === t ? +t : t;
  123. }
  124. function b(t) {
  125. if ("idle" !== a) throw new Error("check() is only allowed in idle status");
  126. return (
  127. (n = t),
  128. l("check"),
  129. ((e = 1e4),
  130. (e = e || 1e4),
  131. new Promise(function (t, i) {
  132. if ("undefined" == typeof XMLHttpRequest) return i(new Error("No browser support"));
  133. try {
  134. var n = new XMLHttpRequest(),
  135. A = O.p + "" + g + ".hot-update.json";
  136. n.open("GET", A, !0), (n.timeout = e), n.send(null);
  137. } catch (t) {
  138. return i(t);
  139. }
  140. n.onreadystatechange = function () {
  141. if (4 === n.readyState)
  142. if (0 === n.status) i(new Error("Manifest request to " + A + " timed out."));
  143. else if (404 === n.status) t();
  144. else if (200 !== n.status && 304 !== n.status) i(new Error("Manifest request to " + A + " failed."));
  145. else {
  146. try {
  147. var e = JSON.parse(n.responseText);
  148. } catch (t) {
  149. return void i(t);
  150. }
  151. t(e);
  152. }
  153. };
  154. })).then(function (t) {
  155. if (!t) return l("idle"), null;
  156. (y = {}), (f = {}), (v = t.c), (h = t.h), l("prepare");
  157. var e = new Promise(function (t, e) {
  158. u = { resolve: t, reject: e };
  159. });
  160. c = {};
  161. return x(0), "prepare" === a && 0 === d && 0 === p && _(), e;
  162. })
  163. );
  164. var e;
  165. }
  166. function x(t) {
  167. v[t]
  168. ? ((y[t] = !0),
  169. p++,
  170. (function (t) {
  171. var e = document.createElement("script");
  172. (e.charset = "utf-8"), (e.src = O.p + "" + t + "." + g + ".hot-update.js"), document.head.appendChild(e);
  173. })(t))
  174. : (f[t] = !0);
  175. }
  176. function _() {
  177. l("ready");
  178. var t = u;
  179. if (((u = null), t))
  180. if (n)
  181. Promise.resolve()
  182. .then(function () {
  183. return w(n);
  184. })
  185. .then(
  186. function (e) {
  187. t.resolve(e);
  188. },
  189. function (e) {
  190. t.reject(e);
  191. }
  192. );
  193. else {
  194. var e = [];
  195. for (var i in c) Object.prototype.hasOwnProperty.call(c, i) && e.push(m(i));
  196. t.resolve(e);
  197. }
  198. }
  199. function w(e) {
  200. if ("ready" !== a) throw new Error("apply() is only allowed in ready status");
  201. var i, n, o, C, I;
  202. function s(t) {
  203. for (
  204. var e = [t],
  205. i = {},
  206. n = e.map(function (t) {
  207. return { chain: [t], id: t };
  208. });
  209. n.length > 0;
  210. ) {
  211. var g = n.pop(),
  212. A = g.id,
  213. r = g.chain;
  214. if ((C = P[A]) && !C.hot._selfAccepted) {
  215. if (C.hot._selfDeclined) return { type: "self-declined", chain: r, moduleId: A };
  216. if (C.hot._main) return { type: "unaccepted", chain: r, moduleId: A };
  217. for (var o = 0; o < C.parents.length; o++) {
  218. var I = C.parents[o],
  219. s = P[I];
  220. if (s) {
  221. if (s.hot._declinedDependencies[A]) return { type: "declined", chain: r.concat([I]), moduleId: A, parentId: I };
  222. -1 === e.indexOf(I) &&
  223. (s.hot._acceptedDependencies[A] ? (i[I] || (i[I] = []), u(i[I], [A])) : (delete i[I], e.push(I), n.push({ chain: r.concat([I]), id: I })));
  224. }
  225. }
  226. }
  227. }
  228. return { type: "accepted", moduleId: t, outdatedModules: e, outdatedDependencies: i };
  229. }
  230. function u(t, e) {
  231. for (var i = 0; i < e.length; i++) {
  232. var n = e[i];
  233. -1 === t.indexOf(n) && t.push(n);
  234. }
  235. }
  236. e = e || {};
  237. var p = {},
  238. d = [],
  239. f = {},
  240. y = function () {
  241. console.warn("[HMR] unexpected require(" + x.moduleId + ") to disposed module");
  242. };
  243. for (var b in c)
  244. if (Object.prototype.hasOwnProperty.call(c, b)) {
  245. var x;
  246. I = m(b);
  247. var _ = !1,
  248. w = !1,
  249. S = !1,
  250. E = "";
  251. switch (((x = c[b] ? s(I) : { type: "disposed", moduleId: b }).chain && (E = "\nUpdate propagation: " + x.chain.join(" -> ")), x.type)) {
  252. case "self-declined":
  253. e.onDeclined && e.onDeclined(x), e.ignoreDeclined || (_ = new Error("Aborted because of self decline: " + x.moduleId + E));
  254. break;
  255. case "declined":
  256. e.onDeclined && e.onDeclined(x),
  257. e.ignoreDeclined || (_ = new Error("Aborted because of declined dependency: " + x.moduleId + " in " + x.parentId + E));
  258. break;
  259. case "unaccepted":
  260. e.onUnaccepted && e.onUnaccepted(x), e.ignoreUnaccepted || (_ = new Error("Aborted because " + I + " is not accepted" + E));
  261. break;
  262. case "accepted":
  263. e.onAccepted && e.onAccepted(x), (w = !0);
  264. break;
  265. case "disposed":
  266. e.onDisposed && e.onDisposed(x), (S = !0);
  267. break;
  268. default:
  269. throw new Error("Unexception type " + x.type);
  270. }
  271. if (_) return l("abort"), Promise.reject(_);
  272. if (w)
  273. for (I in ((f[I] = c[I]), u(d, x.outdatedModules), x.outdatedDependencies))
  274. Object.prototype.hasOwnProperty.call(x.outdatedDependencies, I) && (p[I] || (p[I] = []), u(p[I], x.outdatedDependencies[I]));
  275. S && (u(d, [x.moduleId]), (f[I] = y));
  276. }
  277. var D,
  278. k = [];
  279. for (n = 0; n < d.length; n++) (I = d[n]), P[I] && P[I].hot._selfAccepted && f[I] !== y && k.push({ module: I, errorHandler: P[I].hot._selfAccepted });
  280. l("dispose"),
  281. Object.keys(v).forEach(function (t) {
  282. !1 === v[t] &&
  283. (function (t) {
  284. delete installedChunks[t];
  285. })(t);
  286. });
  287. for (var M, L, N = d.slice(); N.length > 0; )
  288. if (((I = N.pop()), (C = P[I]))) {
  289. var j = {},
  290. R = C.hot._disposeHandlers;
  291. for (o = 0; o < R.length; o++) (i = R[o])(j);
  292. for (A[I] = j, C.hot.active = !1, delete P[I], delete p[I], o = 0; o < C.children.length; o++) {
  293. var G = P[C.children[o]];
  294. G && (D = G.parents.indexOf(I)) >= 0 && G.parents.splice(D, 1);
  295. }
  296. }
  297. for (I in p)
  298. if (Object.prototype.hasOwnProperty.call(p, I) && (C = P[I]))
  299. for (L = p[I], o = 0; o < L.length; o++) (M = L[o]), (D = C.children.indexOf(M)) >= 0 && C.children.splice(D, 1);
  300. for (I in (l("apply"), (g = h), f)) Object.prototype.hasOwnProperty.call(f, I) && (t[I] = f[I]);
  301. var T = null;
  302. for (I in p)
  303. if (Object.prototype.hasOwnProperty.call(p, I) && (C = P[I])) {
  304. L = p[I];
  305. var V = [];
  306. for (n = 0; n < L.length; n++)
  307. if (((M = L[n]), (i = C.hot._acceptedDependencies[M]))) {
  308. if (-1 !== V.indexOf(i)) continue;
  309. V.push(i);
  310. }
  311. for (n = 0; n < V.length; n++) {
  312. i = V[n];
  313. try {
  314. i(L);
  315. } catch (t) {
  316. e.onErrored && e.onErrored({ type: "accept-errored", moduleId: I, dependencyId: L[n], error: t }), e.ignoreErrored || T || (T = t);
  317. }
  318. }
  319. }
  320. for (n = 0; n < k.length; n++) {
  321. var U = k[n];
  322. (I = U.module), (r = [I]);
  323. try {
  324. O(I);
  325. } catch (t) {
  326. if ("function" == typeof U.errorHandler)
  327. try {
  328. U.errorHandler(t);
  329. } catch (i) {
  330. e.onErrored && e.onErrored({ type: "self-accept-error-handler-errored", moduleId: I, error: i, originalError: t }),
  331. e.ignoreErrored || T || (T = i),
  332. T || (T = t);
  333. }
  334. else e.onErrored && e.onErrored({ type: "self-accept-errored", moduleId: I, error: t }), e.ignoreErrored || T || (T = t);
  335. }
  336. }
  337. return T
  338. ? (l("fail"), Promise.reject(T))
  339. : (l("idle"),
  340. new Promise(function (t) {
  341. t(d);
  342. }));
  343. }
  344. var P = {};
  345. function O(e) {
  346. if (P[e]) return P[e].exports;
  347. var i = (P[e] = { i: e, l: !1, exports: {}, hot: I(e), parents: ((o = r), (r = []), o), children: [] });
  348. return t[e].call(i.exports, i, i.exports, C(e)), (i.l = !0), i.exports;
  349. }
  350. (O.m = t),
  351. (O.c = P),
  352. (O.d = function (t, e, i) {
  353. O.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: i });
  354. }),
  355. (O.r = function (t) {
  356. "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }),
  357. Object.defineProperty(t, "__esModule", { value: !0 });
  358. }),
  359. (O.t = function (t, e) {
  360. if ((1 & e && (t = O(t)), 8 & e)) return t;
  361. if (4 & e && "object" == typeof t && t && t.__esModule) return t;
  362. var i = Object.create(null);
  363. if ((O.r(i), Object.defineProperty(i, "default", { enumerable: !0, value: t }), 2 & e && "string" != typeof t))
  364. for (var n in t)
  365. O.d(
  366. i,
  367. n,
  368. function (e) {
  369. return t[e];
  370. }.bind(null, n)
  371. );
  372. return i;
  373. }),
  374. (O.n = function (t) {
  375. var e =
  376. t && t.__esModule
  377. ? function () {
  378. return t.default;
  379. }
  380. : function () {
  381. return t;
  382. };
  383. return O.d(e, "a", e), e;
  384. }),
  385. (O.o = function (t, e) {
  386. return Object.prototype.hasOwnProperty.call(t, e);
  387. }),
  388. (O.p = ""),
  389. (O.h = function () {
  390. return g;
  391. }),
  392. C(24)((O.s = 24));
  393. })([
  394. function (t, e, i) {
  395. "use strict";
  396. var n =
  397. (this && this.__assign) ||
  398. function () {
  399. return (n =
  400. Object.assign ||
  401. function (t) {
  402. for (var e, i = 1, n = arguments.length; i < n; i++) for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  403. return t;
  404. }).apply(this, arguments);
  405. };
  406. Object.defineProperty(e, "__esModule", { value: !0 });
  407. var g = i(3);
  408. (e.calcVector = function (t) {
  409. var e = 1 / ((t = n({}, t)).x * t.y < 0 ? Math.abs(t.x - t.y) : t.x + t.y);
  410. return (t.x = t.x * e), (t.y = t.y * e), t;
  411. }),
  412. (e.strictLineVector = function (t) {
  413. var i = t.points[1].x - t.points[0].x,
  414. n = t.points[1].y - t.points[0].y,
  415. g = Math.abs(i / 1),
  416. A = Math.abs(n / 1),
  417. r = g > A ? g : A,
  418. o = { x: i / r, y: n / r };
  419. return e.calcVector(o);
  420. }),
  421. (e.lineVector = function (t, i) {
  422. void 0 === i && (i = 0.001);
  423. var n = e.strictLineVector(t);
  424. return Math.abs(n.x) < i && (n.x = 0), Math.abs(n.y) < i && (n.y = 0), n;
  425. }),
  426. (e.verticalLine = function (t) {
  427. var i = e.lineVector(t),
  428. n = i.x,
  429. g = i.y;
  430. if (n - g != 0) {
  431. var A = { x: g / (g - n), y: n / (n - g) };
  432. return e.calcVector(A);
  433. }
  434. return { x: n, y: g };
  435. }),
  436. (e.lineDis = function (t) {
  437. return Number(Math.sqrt(Math.pow(t.points[0].x - t.points[1].x, 2) + Math.pow(t.points[0].y - t.points[1].y, 2)).toFixed(4));
  438. }),
  439. (e.lineCenter = function (t) {
  440. return { x: (t.points[0].x + t.points[1].x) / 2, y: (t.points[0].y + t.points[1].y) / 2 };
  441. }),
  442. (e.segmentsIntr = function (t, i) {
  443. var n = t.points,
  444. g = n[0],
  445. A = n[1],
  446. r = i.points,
  447. o = r[0],
  448. C = r[1],
  449. I = (A.y - g.y) * (C.x - o.x) - (g.x - A.x) * (o.y - C.y);
  450. if (0 == I) return !1;
  451. var s = ((A.x - g.x) * (C.x - o.x) * (o.y - g.y) + (A.y - g.y) * (C.x - o.x) * g.x - (C.y - o.y) * (A.x - g.x) * o.x) / I,
  452. a = -((A.y - g.y) * (C.y - o.y) * (o.x - g.x) + (A.x - g.x) * (C.y - o.y) * g.y - (C.x - o.x) * (A.y - g.y) * o.y) / I;
  453. return !(!e.isContainPoint(t, { x: s, y: a }) || !e.isContainPoint(i, { x: s, y: a })) && { x: s, y: a };
  454. }),
  455. (e.segmentsIntrFine = function (t, e) {
  456. var i = t.points,
  457. n = i[0],
  458. g = i[1],
  459. A = e.points,
  460. r = A[0],
  461. o = A[1],
  462. C = (g.y - n.y) * (o.x - r.x) - (n.x - g.x) * (r.y - o.y);
  463. if (0 == C) return !1;
  464. var I = ((g.x - n.x) * (o.x - r.x) * (r.y - n.y) + (g.y - n.y) * (o.x - r.x) * n.x - (o.y - r.y) * (g.x - n.x) * r.x) / C,
  465. s = -((g.y - n.y) * (o.y - r.y) * (r.x - n.x) + (g.x - n.x) * (o.y - r.y) * n.y - (o.x - r.x) * (g.y - n.y) * r.y) / C;
  466. return !isNaN(I) && !isNaN(s) && { x: I, y: s };
  467. }),
  468. (e.pointLineDis = function (t, e) {
  469. var i = 0,
  470. n = t.points[1].x - t.points[0].x,
  471. g = e.x - t.points[0].x,
  472. A = e.x - t.points[1].x,
  473. r = t.points[1].y - t.points[0].y,
  474. o = e.y - t.points[0].y,
  475. C = e.y - t.points[1].y,
  476. I = n * g + r * o,
  477. s = n * n + r * r;
  478. if (I <= 0) i = Math.sqrt(g * g + o * o);
  479. else if (I >= s) i = Math.sqrt(A * A + C * C);
  480. else {
  481. var a = I / s,
  482. l = t.points[0].x + n * a,
  483. u = t.points[0].y + r * a;
  484. i = Math.sqrt((e.x - l) * (e.x - l) + (u - e.y) * (u - e.y));
  485. }
  486. return i;
  487. }),
  488. (e.isContainPoint = function (t, i) {
  489. return !Math.abs(e.pointLineDis(t, i)) || Math.abs(e.pointLineDis(t, i)) < 0.01;
  490. }),
  491. (e.getVerLinePoint = function (t, i) {
  492. return e.getVectorPosPoint(e.verticalLine(t), t.points[0], i);
  493. }),
  494. (e.getVectorPosPoint = function (t, i, n) {
  495. var g = { points: [i, { x: i.x + 1e4 * t.x, y: i.y + 1e4 * t.y }] };
  496. return e.getLinePoint(g, n);
  497. }),
  498. (e.getLinePoint = function (t, i) {
  499. var n,
  500. A = i;
  501. if (g.type.isNumber(A.x) && g.type.isNumber(A.y)) {
  502. var r = e.lineVector(t),
  503. o = r.x,
  504. C = r.y,
  505. I = Math.abs(o) > Math.abs(C) ? "x" : "y";
  506. ((n = {})[I] = A[I]), (A = n);
  507. }
  508. var s = e.lineVector(t, 1e-4),
  509. a = s.y / s.x,
  510. l = t.points[0].y - a * t.points[0].x;
  511. return a > 100 || a < -100
  512. ? { x: t.points[0].x, y: A.y }
  513. : g.type.isNumber(A.x)
  514. ? { x: A.x, y: a * A.x + l }
  515. : g.type.isNumber(A.y)
  516. ? { x: (A.y - l) / a, y: A.y }
  517. : { x: 0, y: 0 };
  518. }),
  519. (e.getFlexLinePoint = function (t, i) {
  520. var n = e.strictLineVector(t),
  521. g = n.x,
  522. A = n.y,
  523. r = (g = Math.abs(g)) > (A = Math.abs(A)) ? { x: i.x } : { y: i.y };
  524. return e.getLinePoint(t, r);
  525. }),
  526. (e.getDisVectorPoints = function (t, e, i) {
  527. var n = Math.atan(t.y / t.x);
  528. return [
  529. { x: e.x + i * Math.cos(n), y: e.y + i * Math.sin(n) },
  530. { x: e.x + -i * Math.cos(n), y: e.y + -i * Math.sin(n) },
  531. ];
  532. }),
  533. (e.getDisPointLinePoints = function (t, i, n) {
  534. return e.getDisVectorPoints(e.lineVector(t), i, n);
  535. }),
  536. (e.getLineDisPoint = function (t, i) {
  537. var n = e.getDisPointLinePoints(t, t.points[0], i),
  538. g = n[0],
  539. A = n[1],
  540. r = e.lineVector(t),
  541. o = e.lineVector({ points: [t.points[0], g] });
  542. return r.x * o.x >= 0 && r.y * o.y >= 0 ? g : A;
  543. }),
  544. (e.getLineDisSelectPoint = function (t, i, n) {
  545. var g = e.getDisPointLinePoints(t, i, n),
  546. A = g[0],
  547. r = g[1];
  548. return e.pointLineDis(t, A) < e.pointLineDis(t, r) ? A : r;
  549. }),
  550. (e.getDisVerticalLinePoints = function (t, i, n) {
  551. return e.getDisVectorPoints(e.verticalLine(t), i, n);
  552. }),
  553. (e.getLineVerticalChangePoint = function (t, i, n) {
  554. var g = e.segmentsIntrFine(t, i);
  555. return g ? e.getLineVerticalPoint(t, g, e.lineVector(i), n) : g;
  556. }),
  557. (e.getLineVerticalPoint = function (t, i, n, g) {
  558. var A = e.getDisVerticalLinePoints(t, i, g),
  559. r = A[0],
  560. o = A[1],
  561. C = e.lineVector({ points: [i, r] }),
  562. I = e.lineVector({ points: [i, o] }),
  563. s = n.x * C.x,
  564. a = n.y * C.y,
  565. l = n.x * I.x,
  566. u = n.x * I.y;
  567. return s >= 0 && a >= 0 ? r : (l >= 0 && u >= 0) || (s < a ? s : a) < (l < u ? l : u) ? o : r;
  568. }),
  569. (e.getPointCoordinate = function (t) {
  570. return t.x >= 0 && t.y >= 0 ? 1 : t.x >= 0 && t.y <= 0 ? 2 : t.x <= 0 && t.y <= 0 ? 3 : t.x <= 0 && t.y >= 0 ? 4 : 0;
  571. }),
  572. (e.getLineCoordinate = function (t) {
  573. var e = t.points[1].x - t.points[0].x,
  574. i = t.points[1].y - t.points[0].y;
  575. return e >= 0 && i >= 0 ? 1 : e >= 0 && i <= 0 ? 4 : e <= 0 && i <= 0 ? 3 : 2;
  576. }),
  577. (e.getPointCoordDistance = function (t, i) {
  578. return e.getPointCoordinate(t) - e.getPointCoordinate(i);
  579. }),
  580. (e.faceArea = function (t) {
  581. var e = t.length;
  582. if (e < 3) return 0;
  583. for (var i = t[0].y * (t[e - 1].x - t[1].x), n = 1; n < e; ++n) i += t[n].y * (t[n - 1].x - t[(n + 1) % e].x);
  584. return Math.abs(i / 2);
  585. }),
  586. (e.pointInside = function (t, e) {
  587. for (var i = !1, n = e.x, g = e.y, A = 0, r = t.length - 1; A < t.length; r = A++) {
  588. var o = t[A].x,
  589. C = t[A].y,
  590. I = t[r].x,
  591. s = t[r].y;
  592. C > g != s > g && n <= ((I - o) * (g - C)) / (s - C) + o && (i = !i);
  593. }
  594. return i;
  595. }),
  596. (e.isPointInPoly = function (t, e) {
  597. for (var i = e.x, n = e.y, g = !1, A = 0, r = t.length - 1; A < t.length; r = A++) {
  598. var o = t[A],
  599. C = t[r],
  600. I = o.x,
  601. s = o.y,
  602. a = C.x,
  603. l = C.y;
  604. s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g);
  605. }
  606. return g;
  607. }),
  608. (e.pointInsideBorder = function (t, i) {
  609. for (var n = 0; n < t.length; n++) {
  610. var g = { points: [t[n], t[n === t.length - 1 ? 0 : n + 1]] };
  611. if (e.isContainPoint(g, i)) return !0;
  612. }
  613. return !1;
  614. }),
  615. (e.isClockWise = function (t, e) {
  616. var i, n, g;
  617. void 0 === e && (e = !0);
  618. var A,
  619. r = 0,
  620. o = e ? -1 : 1;
  621. if (null == t || t.length < 3) return !1;
  622. var C = t.length;
  623. for (i = 0; i < C; i++)
  624. (g = (i + 2) % C),
  625. (A = (t[(n = (i + 1) % C)].x - t[i].x) * (t[g].y * o - t[n].y * o)),
  626. (A -= (t[n].y * o - t[i].y * o) * (t[g].x - t[n].x)) < 0 ? r-- : A > 0 && r++;
  627. return r > 0;
  628. }),
  629. (e.isLineIntersect = function (t, e) {
  630. var i = t.points[1].y - t.points[0].y,
  631. n = t.points[0].x - t.points[1].x,
  632. g = i * t.points[0].x + n * t.points[0].y,
  633. A = e.points[1].y - e.points[0].y,
  634. r = e.points[0].x - e.points[1].x,
  635. o = A * e.points[0].x + r * e.points[0].y,
  636. C = i * r - A * n;
  637. if (0 == C) return !1;
  638. var I = (r * g - n * o) / C,
  639. s = (i * o - A * g) / C;
  640. if (
  641. (a(t.points[0].x, I, t.points[1].x) || a(t.points[0].y, s, t.points[1].y)) &&
  642. (a(e.points[0].x, I, e.points[1].x) || a(e.points[0].y, s, e.points[1].y))
  643. )
  644. return !0;
  645. function a(t, e, i) {
  646. return !(Math.abs(t - e) < 1e-6 || Math.abs(e - i) < 1e-6) && ((t <= e && e <= i) || (i <= e && e <= t));
  647. }
  648. return !1;
  649. }),
  650. (e.isFaceIntersect = function (t, i) {
  651. for (var n = 0; n < t.length; n++)
  652. for (var g = n + 1 === t.length ? 0 : n + 1, A = { points: [t[n], t[g]] }, r = 0; r < i.length; r++) {
  653. g = r + 1 === i.length ? 0 : r + 1;
  654. var o = { points: [i[r], i[g]] },
  655. C = e.isLineIntersect(o, A),
  656. I = e.isLineIntersect(A, o);
  657. if (C && I) return !0;
  658. }
  659. return !1;
  660. }),
  661. (e.isFaceContain = function (t, i) {
  662. return (
  663. i.every(function (i) {
  664. return e.pointInside(t, i);
  665. }) && !e.isFaceIntersect(t, i)
  666. );
  667. }),
  668. (e.isFaceChild = function (t, i) {
  669. return (
  670. i.every(function (i) {
  671. return e.pointInside(t, i) || e.pointInsideBorder(t, i);
  672. }) && !e.isFaceIntersect(t, i)
  673. );
  674. }),
  675. (e.faceCenter = function (t) {
  676. for (var e = 0, i = 0, n = 0; n < t.length; n++) (e += t[n].x), (i += t[n].y);
  677. return { x: (e /= t.length), y: (i /= t.length) };
  678. }),
  679. (e.faceRotate = function (t, i) {
  680. var n = window.THREE,
  681. g = e.faceCenter(t),
  682. A = new n.Matrix3().translate(-g.x, -g.y),
  683. r = new n.Matrix3().rotate(n.Math.degToRad(i)),
  684. o = new n.Matrix3().translate(g.x, g.y),
  685. C = new n.Matrix3();
  686. return (
  687. C.premultiply(A),
  688. C.premultiply(r),
  689. C.premultiply(o),
  690. t.map(function (t) {
  691. var e = new n.Vector2(t.x, t.y);
  692. return e.applyMatrix3(C), { x: e.x, y: e.y };
  693. })
  694. );
  695. }),
  696. (e.lineStretch = function (t, i) {
  697. t = n(n({}, t), {
  698. points: t.points.map(function (t) {
  699. return { x: t.x, y: t.y };
  700. }),
  701. });
  702. var g = e.lineCenter(t),
  703. A = e.getDisPointLinePoints(t, g, i / 2),
  704. r = A[0],
  705. o = A[1];
  706. return (
  707. e.lineDis({ points: [t.points[0], r] }) > e.lineDis({ points: [t.points[0], o] })
  708. ? ((t.points[0].x = o.x), (t.points[0].y = o.y), (t.points[1].x = r.x), (t.points[1].y = r.y))
  709. : ((t.points[0].x = r.x), (t.points[0].y = r.y), (t.points[1].x = o.x), (t.points[1].y = o.y)),
  710. t
  711. );
  712. }),
  713. (e.lineDeg = function (t) {
  714. return (180 * Math.atan2(t.points[1].y - t.points[0].y, t.points[1].x - t.points[0].x)) / Math.PI;
  715. }),
  716. (e.getAngle = function (t, e) {
  717. var i, n, g, A;
  718. ~(A = t.points.indexOf(e.points[0]))
  719. ? ((i = t.points[A]), (n = e.points[1]), (g = t.points[Number(!A)]))
  720. : ~(A = t.points.indexOf(e.points[1])) && ((i = t.points[A]), (n = e.points[0]), (g = t.points[Number(!A)]));
  721. var r,
  722. o,
  723. C = 0,
  724. I = n.x - i.x,
  725. s = n.y - i.y,
  726. a = g.x - i.x,
  727. l = g.y - i.y;
  728. return (
  729. (C = I * a + s * l),
  730. (o = (I * I + s * s) * (a * a + l * l)),
  731. (C /= Math.sqrt(o)) >= 1 ? 0 : C <= -1 ? 180 : (180 * (r = Math.acos(C))) / Math.PI < 180 ? (180 * r) / Math.PI : 360 - (180 * r) / Math.PI
  732. );
  733. }),
  734. (e.rotatePoint = function (t, e, i) {
  735. var n = t.x - i.x,
  736. g = t.y - i.y,
  737. A = Math.cos(e) * n - Math.sin(e) * g,
  738. r = Math.sin(e) * n + Math.cos(e) * g;
  739. return { x: A + i.x, y: r + i.y };
  740. }),
  741. (e.rotateData = function (t, i, n) {
  742. try {
  743. var g = ["furnColumn", "furnFlue", "column"];
  744. return (
  745. (t = JSON.parse(JSON.stringify(t))).vertex.forEach(function (t) {
  746. var g = e.rotatePoint(t, i, n);
  747. (t.x = g.x), (t.y = g.y);
  748. }),
  749. t.tagging.forEach(function (t) {
  750. var g = e.rotatePoint({ x: t.pos[0], y: t.pos[1] }, i, n);
  751. (t.pos[0] = g.x), (t.pos[1] = g.y);
  752. }),
  753. ["window", "door", "slideDoor", "groundCase", "bayCase", "doubleDoor"].concat(g).forEach(function (g) {
  754. t[g].forEach(function (t) {
  755. var g = e.rotatePoint({ x: t.pos[0], y: t.pos[1] }, i, n),
  756. A = e.rotatePoint({ x: t.pos[2], y: t.pos[3] }, i, n);
  757. (t.pos[0] = g.x), (t.pos[1] = g.y), (t.pos[2] = A.x), (t.pos[3] = A.y);
  758. });
  759. }),
  760. g.forEach(function (g) {
  761. t[g].forEach(function (t) {
  762. var g = e.rotatePoint({ x: t.pos[4], y: t.pos[5] }, i, n),
  763. A = e.rotatePoint({ x: t.pos[6], y: t.pos[7] }, i, n);
  764. (t.pos[4] = g.x), (t.pos[5] = g.y), (t.pos[6] = A.x), (t.pos[7] = A.y);
  765. });
  766. }),
  767. t
  768. );
  769. } catch (e) {
  770. return t;
  771. }
  772. });
  773. },
  774. function (t, e, i) {
  775. "use strict";
  776. var n, g;
  777. Object.defineProperty(e, "__esModule", { value: !0 });
  778. var A = i(9);
  779. (e.SVGURI = "http://www.w3.org/2000/svg"),
  780. (e.SVGPATH = "http://www.w3.org/1999/xlink"),
  781. (e.STATE_CHILD = "__state"),
  782. (e.POINT = "point"),
  783. (e.DOOR = "door"),
  784. (e.DOUBLEDOOR = "double_door"),
  785. (e.COLUMN = "column"),
  786. (e.CASEMENT = "casement"),
  787. (e.SLIDEDOOR = "slideDoor"),
  788. (e.TAGGING = "tagging"),
  789. (e.GROUNDCASE = "groundCase"),
  790. (e.BAYCASE = "bayCase"),
  791. (e.FURNCOLUMN = "furnColumn"),
  792. (e.FURNFLUE = "furnFlue"),
  793. (e.LINE = "line"),
  794. (e.SEFTLINE = "seftline"),
  795. (e.ARCH =
  796. (((n = {})[e.POINT] = A.i18n.t("modules.model.point")),
  797. (n[e.DOOR] = A.i18n.t("modules.model.door")),
  798. (n[e.DOUBLEDOOR] = A.i18n.t("modules.model.double_door")),
  799. (n[e.COLUMN] = A.i18n.t("modules.model.column")),
  800. (n[e.CASEMENT] = A.i18n.t("modules.model.casement")),
  801. (n[e.SLIDEDOOR] = A.i18n.t("modules.model.slideDoor")),
  802. (n[e.TAGGING] = A.i18n.t("modules.model.tagging")),
  803. (n[e.GROUNDCASE] = A.i18n.t("modules.model.groundCase")),
  804. (n[e.BAYCASE] = A.i18n.t("modules.model.bayCase")),
  805. (n[e.FURNCOLUMN] = A.i18n.t("modules.model.furnColumn")),
  806. (n[e.FURNFLUE] = A.i18n.t("modules.model.furnFlue")),
  807. (n[e.LINE] = A.i18n.t("modules.model.line")),
  808. (n[e.SEFTLINE] = A.i18n.t("modules.model.line")),
  809. n)),
  810. (e.DEFAULT =
  811. (((g = {})[e.DOOR] = { width: 0.8, height: 2 }),
  812. (g[e.DOUBLEDOOR] = { width: 1.6, height: 2 }),
  813. (g[e.SLIDEDOOR] = { width: 1.5, height: 2 }),
  814. (g[e.CASEMENT] = { width: 0.8, height: 1.2 }),
  815. (g[e.BAYCASE] = { width: 1.5, height: 1.2 }),
  816. (g[e.GROUNDCASE] = { width: 1.5, height: 2 }),
  817. (g[e.COLUMN] = { width: 0.65, tick: 0.65 }),
  818. (g[e.FURNCOLUMN] = { width: 0.65, tick: 0.65 }),
  819. (g[e.FURNFLUE] = { width: 0.65, tick: 0.65 }),
  820. (g[e.LINE] = { width: 0.5 }),
  821. g));
  822. },
  823. function (t, e, i) {
  824. "use strict";
  825. var n =
  826. (this && this.__assign) ||
  827. function () {
  828. return (n =
  829. Object.assign ||
  830. function (t) {
  831. for (var e, i = 1, n = arguments.length; i < n; i++) for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  832. return t;
  833. }).apply(this, arguments);
  834. };
  835. Object.defineProperty(e, "__esModule", { value: !0 });
  836. var g = i(29),
  837. A = i(1),
  838. r = i(3),
  839. o = 0,
  840. C = { enter: "mouseenter", leave: "mouseleave", click: "click", drag: "mousedown" },
  841. I = (function () {
  842. function t(e) {
  843. var i = this;
  844. (this.zIndex = 0),
  845. (this.render = e.renderer),
  846. (this.id = ++o),
  847. (this.__state = new g.State(n(n({}, e), { select: !1 }), {
  848. afferent: this,
  849. notice: function () {
  850. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  851. i.notice && i.notice.apply(i, t), i.update && i.update();
  852. var n = Object.keys(t[0].args);
  853. if ((~n.indexOf("x") || ~n.indexOf("y")) && i.wallPos)
  854. try {
  855. i.wallPos();
  856. } catch (t) {}
  857. ~n.indexOf("select") && i.wallSelect && i.wallSelect();
  858. },
  859. childAttr: A.STATE_CHILD,
  860. intercept:
  861. this.intercept &&
  862. function () {
  863. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  864. return i.intercept.apply(i, t);
  865. },
  866. })),
  867. this.__state.bindDataChange(),
  868. g.getter(this, this.__state),
  869. g.setter(this, this.__state),
  870. Object.defineProperties(this, {
  871. multiple: {
  872. get: function () {
  873. return i.renderer.props.multiple / i.renderer.props.scale;
  874. },
  875. },
  876. }),
  877. t.examples.get(this.renderer).push(this),
  878. this.grentNode &&
  879. ((this.real = this.grentNode()),
  880. this.setHoverStyle &&
  881. this.setUnHoverStyle &&
  882. ((this.enter = function () {
  883. (i.real.style.cursor = "pointer"), i.setHoverStyle();
  884. }),
  885. (this.leave = function () {
  886. i.select || (i.setUnHoverStyle(), (i.real.style.cursor = "inherit"));
  887. }),
  888. (this.wallSelect = function () {
  889. i.select ? ((i.real.style.cursor = "pointer"), i.setHoverStyle()) : ((i.real.style.cursor = "inherit"), i.setUnHoverStyle());
  890. })),
  891. this.listen()),
  892. (this.real.id = "ele" + o.toString()),
  893. this.nextTick(function () {
  894. try {
  895. i.update();
  896. } catch (t) {}
  897. });
  898. }
  899. return (
  900. (t.prototype.intercept = function (t, e, i, n) {
  901. return e;
  902. }),
  903. (t.prototype.changeSelect = function (e) {
  904. var i = this;
  905. this.select !== e &&
  906. ((this.select = e),
  907. this.wallSelect && this.wallSelect(),
  908. this.update && this.update(),
  909. e &&
  910. t.examples.get(this.renderer).forEach(function (t) {
  911. t !== i && t.select && t.changeSelect(!1);
  912. }));
  913. }),
  914. (t.prototype.click = function (t) {
  915. var e = this;
  916. this.changeSelect(!0),
  917. this.renderer.processing.attrs.forEach(function (t) {
  918. var i = e.renderer.processing[t].find(function (t) {
  919. return t.ele === e;
  920. });
  921. i && console.log(i);
  922. }),
  923. t.stopPropagation();
  924. }),
  925. (t.prototype.nextTick = function (t) {
  926. this.__state.nextTick(t);
  927. }),
  928. (t.prototype.nextChange = function (t) {
  929. this.__state.nextChange(t);
  930. }),
  931. (t.prototype.listen = function () {
  932. (this.__draging = !1), this.bindEvent("enter"), this.bindEvent("leave"), this.bindEvent("click"), this.bindEvent("drag");
  933. }),
  934. (t.prototype.unEvent = function () {
  935. this.unbindEvent("enter"), this.unbindEvent("leave"), this.unbindEvent("click"), this.unbindEvent("drag");
  936. }),
  937. (t.prototype.destroy = function () {
  938. (this.__destroy = !0), this.unEvent();
  939. var e = t.examples.get(this.renderer);
  940. ~e.indexOf(this) && (e.splice(e.indexOf(this), 1), this.renderer.remove(this));
  941. }),
  942. (t.prototype.bindDrag = function (t) {
  943. var e = this,
  944. i = { x: t.offsetX, y: t.offsetY };
  945. this.dragStart && this.dragStart(t, i);
  946. var n = r.throttle(function (t) {
  947. var n = { x: t.offsetX, y: t.offsetY };
  948. (e.__draging = !0), e.drag({ x: n.x - i.x, y: n.y - i.y }, n, i), t.preventDefault();
  949. }, 10),
  950. g = function (t) {
  951. document.documentElement.removeEventListener("mousemove", n, !1),
  952. document.documentElement.removeEventListener("mouseup", g, !1),
  953. (e.__draging = !1),
  954. e.dragEnd && e.dragEnd({ x: t.offsetX, y: t.offsetY }),
  955. e.__leave && e.leave();
  956. };
  957. document.documentElement.addEventListener("mousemove", n, !1), document.documentElement.addEventListener("mouseup", g, !1), t.preventDefault();
  958. }),
  959. (t.prototype.bindEvent = function (e) {
  960. var i = this;
  961. if (this[e]) {
  962. var n = "__bind_" + e;
  963. this[n] && this.unbindEvent(e);
  964. var g =
  965. "drag" === e
  966. ? this.bindDrag.bind(this)
  967. : function (n) {
  968. var g = t.examples.get(i.renderer);
  969. ("enter" === e &&
  970. g.some(function (t) {
  971. return t.__draging;
  972. })) ||
  973. (!i.__draging || ("enter" !== e && "leave" !== e) ? i[e](n) : (i.__leave = "leave" === e));
  974. };
  975. this.real.addEventListener(C[e], g, !1), (this[n] = g);
  976. }
  977. }),
  978. (t.prototype.unbindEvent = function (t) {
  979. this["__bind_" + t] && this.real.removeEventListener(C[t], this["__bind_" + t], !1);
  980. }),
  981. (t.examples = new Map()),
  982. (t.multiples = new Map()),
  983. (t.update = function (e, i) {
  984. void 0 === i && (i = []);
  985. var n = t.examples.get(e).concat(i);
  986. (n = Array.from(new Set(n))).forEach(function (t) {
  987. t.update && t.update();
  988. });
  989. }),
  990. (t.init = function (e) {
  991. t.examples.set(e, []);
  992. }),
  993. t
  994. );
  995. })();
  996. e.CADElement = I;
  997. },
  998. function (t, e, i) {
  999. "use strict";
  1000. Object.defineProperty(e, "__esModule", { value: !0 }),
  1001. (e.getRange = function (t) {
  1002. var e = Math.abs(Math.min.apply(Math, t)),
  1003. i = Math.abs(Math.max.apply(Math, t));
  1004. return Math.ceil(e + i);
  1005. }),
  1006. (e.getMapMultipleWH = function (t, e, i, n) {
  1007. void 0 === n && (n = 10);
  1008. var g = Math.abs(
  1009. Math.min.apply(
  1010. Math,
  1011. i.vertex.map(function (t) {
  1012. return t.x;
  1013. })
  1014. )
  1015. ),
  1016. A = Math.abs(
  1017. Math.max.apply(
  1018. Math,
  1019. i.vertex.map(function (t) {
  1020. return t.x;
  1021. })
  1022. )
  1023. ),
  1024. r = Math.abs(
  1025. Math.min.apply(
  1026. Math,
  1027. i.vertex.map(function (t) {
  1028. return t.y;
  1029. })
  1030. )
  1031. ),
  1032. o = Math.abs(
  1033. Math.max.apply(
  1034. Math,
  1035. i.vertex.map(function (t) {
  1036. return t.y;
  1037. })
  1038. )
  1039. ),
  1040. C = Math.ceil(g + A) / t,
  1041. I = Math.ceil(r + o) / e,
  1042. s = C > I ? C : I,
  1043. a = t * s,
  1044. l = e * s;
  1045. return { width: a, height: l, multiple: s, left: (g / (g + A)) * a, top: (r / (r + o)) * l, scale: 1 - (2 * n * s) / a };
  1046. }),
  1047. (e.debounce = function (t, e, i, n) {
  1048. void 0 === e && (e = 16);
  1049. var g = null,
  1050. A = [],
  1051. r = 0;
  1052. return function () {
  1053. for (var o = [], C = 0; C < arguments.length; C++) o[C] = arguments[C];
  1054. r || (n && n()),
  1055. r++,
  1056. A.push(o),
  1057. clearTimeout(g),
  1058. (g = setTimeout(function () {
  1059. i ? (t(i(A)), (A = [])) : t.apply(void 0, o), (r = 0);
  1060. }, e));
  1061. };
  1062. }),
  1063. (e.throttle = function (t, e) {
  1064. var i = null;
  1065. return function () {
  1066. for (var n = [], g = 0; g < arguments.length; g++) n[g] = arguments[g];
  1067. var A = +new Date();
  1068. (A - i > e || !i) && (t.apply(void 0, n), (i = A));
  1069. };
  1070. }),
  1071. (e.getType = function (t) {
  1072. return Object.prototype.toString.call(t).slice(8, -1);
  1073. }),
  1074. (e.type = {});
  1075. ["String", "Number", "Boolean", "Undefined", "Null", "Object", "Function", "Array", "Date", "RegExp"].forEach(function (t) {
  1076. return (e.type["is" + t] = function (i) {
  1077. return e.getType(i) === t;
  1078. });
  1079. }),
  1080. (e.convertBase64UrlToBlob = function (t) {
  1081. for (var e = t.split(","), i = e[0].match(/:(.*?);/)[1], n = atob(e[1]), g = n.length, A = new Uint8Array(g); g--; ) A[g] = n.charCodeAt(g);
  1082. return new Blob([A], { type: i });
  1083. }),
  1084. (e.strEascpeLen = function (t) {
  1085. for (var e = t, i = e.length, n = 0; n < i; n++) {
  1086. ~escape(e.substr(n, 1)).indexOf("%u") && i++;
  1087. }
  1088. return i;
  1089. });
  1090. },
  1091. function (t, e, i) {
  1092. "use strict";
  1093. var n,
  1094. g =
  1095. (this && this.__extends) ||
  1096. ((n = function (t, e) {
  1097. return (n =
  1098. Object.setPrototypeOf ||
  1099. ({ __proto__: [] } instanceof Array &&
  1100. function (t, e) {
  1101. t.__proto__ = e;
  1102. }) ||
  1103. function (t, e) {
  1104. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  1105. })(t, e);
  1106. }),
  1107. function (t, e) {
  1108. function i() {
  1109. this.constructor = t;
  1110. }
  1111. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  1112. }),
  1113. A =
  1114. (this && this.__assign) ||
  1115. function () {
  1116. return (A =
  1117. Object.assign ||
  1118. function (t) {
  1119. for (var e, i = 1, n = arguments.length; i < n; i++)
  1120. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  1121. return t;
  1122. }).apply(this, arguments);
  1123. },
  1124. r =
  1125. (this && this.__rest) ||
  1126. function (t, e) {
  1127. var i = {};
  1128. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  1129. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  1130. var g = 0;
  1131. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1132. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  1133. }
  1134. return i;
  1135. },
  1136. o =
  1137. (this && this.__spreadArrays) ||
  1138. function () {
  1139. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  1140. var n = Array(t),
  1141. g = 0;
  1142. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  1143. return n;
  1144. },
  1145. C =
  1146. (this && this.__importDefault) ||
  1147. function (t) {
  1148. return t && t.__esModule ? t : { default: t };
  1149. };
  1150. Object.defineProperty(e, "__esModule", { value: !0 });
  1151. var I = i(2),
  1152. s = C(i(32)),
  1153. a = i(0),
  1154. l = i(3),
  1155. u = (function (t) {
  1156. function e(i) {
  1157. var n = i.minWidth,
  1158. g = void 0 === n ? 0.1 : n,
  1159. o = i.deleteWidth,
  1160. C = void 0 === o ? 0.05 : o,
  1161. I = i.show,
  1162. a = void 0 === I || I,
  1163. l = r(i, ["minWidth", "deleteWidth", "show"]),
  1164. u = t.call(this, A(A({}, l), { show: a })) || this;
  1165. return (
  1166. (u.zIndex = 1),
  1167. (u.linePoints = u.linePoints.map(function (t) {
  1168. var e = new s.default(A(A({}, t), { renderer: u.renderer }), u.attachment);
  1169. return (
  1170. (e.click = function () {
  1171. return u.changeSelect(!0);
  1172. }),
  1173. e
  1174. );
  1175. })),
  1176. (u.minWidth = g),
  1177. (u.deleteWidth = C),
  1178. u.real.setAttribute("class", "variable"),
  1179. e.attaArch.get(u.attachment) ? e.attaArch.get(u.attachment).push(u) : e.attaArch.set(u.attachment, [u]),
  1180. u.attachment.update(),
  1181. u
  1182. );
  1183. }
  1184. return (
  1185. g(e, t),
  1186. (e.prototype.setAttachment = function (t) {
  1187. if ((void 0 === t && (t = this.attachment), console.error("set new attach"), this.attachment !== t)) {
  1188. var i = e.attaArch.get(this.attachment),
  1189. n = e.attaArch.get(t) || e.attaArch.set(t, []).get(t);
  1190. i.splice(i.indexOf(this), 1),
  1191. n.push(this),
  1192. this.linePoints.forEach(function (e) {
  1193. e.line = t;
  1194. }),
  1195. (this.attachment = t);
  1196. }
  1197. }),
  1198. (e.prototype.checkPointBorder = function (t, e) {
  1199. return (
  1200. void 0 === e && (e = this.attachment), a.lineDis({ points: [e.points[0], t] }) < 0.08 || a.lineDis({ points: [e.points[1], t] }) < 0.08 || void 0
  1201. );
  1202. }),
  1203. (e.prototype.checkPoint = function (t, e) {
  1204. return void 0 === e && (e = this.attachment), !a.isContainPoint(e, t);
  1205. }),
  1206. (e.prototype.checkWidth = function (t) {
  1207. return void 0 === t && (t = this.linePoints), a.lineDis({ points: t }) < this.minWidth;
  1208. }),
  1209. (e.prototype.checkPointOverlapAttaArch = function (t) {
  1210. return (
  1211. void 0 === t && (t = e.attaArch.get(this.attachment)),
  1212. !(t.length <= 1) &&
  1213. t.some(function (e) {
  1214. return t.some(function (t) {
  1215. return (
  1216. e !== t && (a.isContainPoint({ points: t.linePoints }, e.linePoints[0]) || a.isContainPoint({ points: t.linePoints }, e.linePoints[1]))
  1217. );
  1218. });
  1219. })
  1220. );
  1221. }),
  1222. (e.prototype.checkLineAllPoint = function (t, i) {
  1223. return (
  1224. void 0 === t && (t = e.attaArch.get(this.attachment)),
  1225. void 0 === i && (i = this.attachment),
  1226. 0 !== t.length &&
  1227. t.some(function (t) {
  1228. return !a.isContainPoint(i, t.linePoints[0]) || !a.isContainPoint(i, t.linePoints[1]);
  1229. })
  1230. );
  1231. }),
  1232. (e.prototype.getLineNewAll = function (t, i) {
  1233. void 0 === t && (t = this.linePoints), void 0 === i && (i = this);
  1234. var n = o(e.attaArch.get(this.attachment));
  1235. return n.splice(n.indexOf(i), 1, { linePoints: t }), n;
  1236. }),
  1237. (e.prototype.qualified = function (t, e) {
  1238. return (
  1239. void 0 === t && (t = this.linePoints),
  1240. void 0 === e && (e = this.attachment),
  1241. !(this.checkPointBorder(t[0], e) || this.checkPointBorder(t[0], e) || this.checkPoint(t[0], e) || this.checkPoint(t[1], e) || this.checkWidth(t))
  1242. );
  1243. }),
  1244. (e.prototype.lineChange = function (t, e) {
  1245. var i = this;
  1246. void 0 === t && (t = this.attachment.points[0]), void 0 === e && (e = t);
  1247. var n = e.x,
  1248. g = e.y,
  1249. r = this.attachment.points.findIndex(function (e) {
  1250. return e === t;
  1251. }),
  1252. o = { points: 0 === r ? [{ x: n, y: g }, this.attachment.points[1]] : [this.attachment.points[0], { x: n, y: g }] },
  1253. C = a.lineDis({ points: [o.points[r], this.linePoints[0]] }),
  1254. I = a.getDisPointLinePoints(o, o.points[r], C),
  1255. l = I[0],
  1256. u = I[1],
  1257. c = a.lineDis({ points: [l, this.linePoints[0]] }) > a.lineDis({ points: [u, this.linePoints[0]] }) ? u : l,
  1258. h = a.lineDis({ points: [o.points[r], this.linePoints[1]] }),
  1259. p = a.getDisPointLinePoints(o, o.points[r], h),
  1260. d = p[0],
  1261. f = p[1],
  1262. y = a.lineDis({ points: [d, this.linePoints[1]] }) > a.lineDis({ points: [f, this.linePoints[1]] }) ? f : d,
  1263. v = (a.lineDis({ points: [this.linePoints[0], c] }) < a.lineDis({ points: [this.linePoints[0], y] }) ? [c, y] : [y, c]).map(function (t) {
  1264. var e = s.default.prototype.getLineInsertPoint.call(A(A({}, i.linePoints[0]), { line: o }), t);
  1265. return a.pointLineDis(i.attachment, e) > 0.1
  1266. ? a.lineDis({ points: [i.attachment.points[0], e] }) < a.lineDis({ points: [i.attachment.points[1], e] })
  1267. ? { x: i.attachment.points[0].x, y: i.attachment.points[0].y }
  1268. : { x: i.attachment.points[1].x, y: i.attachment.points[1].y }
  1269. : e;
  1270. });
  1271. return { line: o, points: v };
  1272. }),
  1273. (e.prototype.pointChange = function (t, e) {
  1274. var i = e.x,
  1275. n = e.y;
  1276. return 0 ===
  1277. this.linePoints.findIndex(function (e) {
  1278. return e === t;
  1279. })
  1280. ? [{ x: i, y: n }, this.linePoints[1]]
  1281. : [this.linePoints[0], { x: i, y: n }];
  1282. }),
  1283. (e.prototype.lineChangeCheck = function (t, e, i) {
  1284. return this.qualified(t, e) && !this.checkLineAllPoint(i, e) && !this.checkPointOverlapAttaArch(i);
  1285. }),
  1286. (e.prototype.intercept = function (t, i, n) {
  1287. var g,
  1288. A = this,
  1289. r = i.x,
  1290. o = i.y;
  1291. if (l.type.isUndefined(r) || l.type.isUndefined(o)) return !0;
  1292. if (
  1293. (g = this.attachment.points.find(function (e) {
  1294. return t.some(function (t) {
  1295. return t === e;
  1296. });
  1297. }))
  1298. ) {
  1299. var C = this.lineChange(g, { x: r, y: o }),
  1300. I = C.points,
  1301. s =
  1302. (C.line,
  1303. t.filter(function (t) {
  1304. return t instanceof e && t.attachment.id === A.attachment.id;
  1305. }));
  1306. return (
  1307. (s = Array.from(new Set(s))),
  1308. this.attachment.nextTick(function () {
  1309. if (!A.attachment || !A.attachment.points) return A.destroy();
  1310. var t = A.lineChange(g, { x: g.x, y: g.y }),
  1311. e = t.points;
  1312. t.line;
  1313. e.forEach(function (t, e) {
  1314. t && ((A.linePoints[e].x = t.x), (A.linePoints[e].y = t.y));
  1315. }),
  1316. A.nextTick(function () {
  1317. A.linePoints && A.linePoints.length && a.lineDis({ points: A.linePoints }) <= A.deleteWidth && A.destroy();
  1318. });
  1319. }),
  1320. this.attachment.update(),
  1321. { __points: I }
  1322. );
  1323. }
  1324. t.findIndex(function (t) {
  1325. return A.linePoints.some(function (e) {
  1326. return e === t;
  1327. });
  1328. });
  1329. }),
  1330. (e.prototype.dragEnd = function () {
  1331. var t = this;
  1332. this.nextTick(function () {
  1333. a.lineDis({ points: t.linePoints }) <= t.deleteWidth && t.destroy();
  1334. });
  1335. }),
  1336. (e.prototype.destroy = function () {
  1337. var i = e.attaArch.get(this.attachment);
  1338. i &&
  1339. (i.splice(i.indexOf(this), 1),
  1340. console.log(this.linePoints[0], this),
  1341. this.linePoints[0] && this.linePoints[0].destroy && this.linePoints[0].destroy(),
  1342. this.linePoints[1] && this.linePoints[1].destroy && this.linePoints[1].destroy(),
  1343. (this.attachment = null),
  1344. (this.linePoints = null),
  1345. (this.update = null),
  1346. t.prototype.destroy.call(this),
  1347. this.attachment.update());
  1348. }),
  1349. (e.attaArch = new Map()),
  1350. e
  1351. );
  1352. })(I.CADElement);
  1353. e.default = u;
  1354. },
  1355. function (t, e, i) {
  1356. "use strict";
  1357. var n,
  1358. g =
  1359. (this && this.__extends) ||
  1360. ((n = function (t, e) {
  1361. return (n =
  1362. Object.setPrototypeOf ||
  1363. ({ __proto__: [] } instanceof Array &&
  1364. function (t, e) {
  1365. t.__proto__ = e;
  1366. }) ||
  1367. function (t, e) {
  1368. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  1369. })(t, e);
  1370. }),
  1371. function (t, e) {
  1372. function i() {
  1373. this.constructor = t;
  1374. }
  1375. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  1376. }),
  1377. A =
  1378. (this && this.__assign) ||
  1379. function () {
  1380. return (A =
  1381. Object.assign ||
  1382. function (t) {
  1383. for (var e, i = 1, n = arguments.length; i < n; i++)
  1384. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  1385. return t;
  1386. }).apply(this, arguments);
  1387. },
  1388. r =
  1389. (this && this.__awaiter) ||
  1390. function (t, e, i, n) {
  1391. return new (i || (i = Promise))(function (g, A) {
  1392. function r(t) {
  1393. try {
  1394. C(n.next(t));
  1395. } catch (t) {
  1396. A(t);
  1397. }
  1398. }
  1399. function o(t) {
  1400. try {
  1401. C(n.throw(t));
  1402. } catch (t) {
  1403. A(t);
  1404. }
  1405. }
  1406. function C(t) {
  1407. var e;
  1408. t.done
  1409. ? g(t.value)
  1410. : ((e = t.value),
  1411. e instanceof i
  1412. ? e
  1413. : new i(function (t) {
  1414. t(e);
  1415. })).then(r, o);
  1416. }
  1417. C((n = n.apply(t, e || [])).next());
  1418. });
  1419. },
  1420. o =
  1421. (this && this.__generator) ||
  1422. function (t, e) {
  1423. var i,
  1424. n,
  1425. g,
  1426. A,
  1427. r = {
  1428. label: 0,
  1429. sent: function () {
  1430. if (1 & g[0]) throw g[1];
  1431. return g[1];
  1432. },
  1433. trys: [],
  1434. ops: [],
  1435. };
  1436. return (
  1437. (A = { next: o(0), throw: o(1), return: o(2) }),
  1438. "function" == typeof Symbol &&
  1439. (A[Symbol.iterator] = function () {
  1440. return this;
  1441. }),
  1442. A
  1443. );
  1444. function o(A) {
  1445. return function (o) {
  1446. return (function (A) {
  1447. if (i) throw new TypeError("Generator is already executing.");
  1448. for (; r; )
  1449. try {
  1450. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  1451. return g;
  1452. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  1453. case 0:
  1454. case 1:
  1455. g = A;
  1456. break;
  1457. case 4:
  1458. return r.label++, { value: A[1], done: !1 };
  1459. case 5:
  1460. r.label++, (n = A[1]), (A = [0]);
  1461. continue;
  1462. case 7:
  1463. (A = r.ops.pop()), r.trys.pop();
  1464. continue;
  1465. default:
  1466. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  1467. r = 0;
  1468. continue;
  1469. }
  1470. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  1471. r.label = A[1];
  1472. break;
  1473. }
  1474. if (6 === A[0] && r.label < g[1]) {
  1475. (r.label = g[1]), (g = A);
  1476. break;
  1477. }
  1478. if (g && r.label < g[2]) {
  1479. (r.label = g[2]), r.ops.push(A);
  1480. break;
  1481. }
  1482. g[2] && r.ops.pop(), r.trys.pop();
  1483. continue;
  1484. }
  1485. A = e.call(t, r);
  1486. } catch (t) {
  1487. (A = [6, t]), (n = 0);
  1488. } finally {
  1489. i = g = 0;
  1490. }
  1491. if (5 & A[0]) throw A[1];
  1492. return { value: A[0] ? A[1] : void 0, done: !0 };
  1493. })([A, o]);
  1494. };
  1495. }
  1496. },
  1497. C =
  1498. (this && this.__rest) ||
  1499. function (t, e) {
  1500. var i = {};
  1501. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  1502. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  1503. var g = 0;
  1504. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1505. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  1506. }
  1507. return i;
  1508. },
  1509. I =
  1510. (this && this.__spreadArrays) ||
  1511. function () {
  1512. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  1513. var n = Array(t),
  1514. g = 0;
  1515. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  1516. return n;
  1517. },
  1518. s =
  1519. (this && this.__importDefault) ||
  1520. function (t) {
  1521. return t && t.__esModule ? t : { default: t };
  1522. };
  1523. Object.defineProperty(e, "__esModule", { value: !0 });
  1524. var a = s(i(6)),
  1525. l = i(3),
  1526. u = i(0),
  1527. c = (function (t) {
  1528. function e(i) {
  1529. var n = i.hover,
  1530. g = C(i, ["hover"]),
  1531. A = this;
  1532. if (!g.renderer) throw g;
  1533. return (
  1534. n || (n = { fillColor: e.Setting.get(g.renderer).fillColor, storkeColor: e.Setting.get(g.renderer).storkeColor }),
  1535. ((A = t.call(this, g) || this).hover = n),
  1536. (A.hover.r = A.hover.r || A.init.r),
  1537. A.real.setAttribute("class", "variable"),
  1538. (A.adopt = !1),
  1539. (A.disable = !1),
  1540. (A.zIndex = 2),
  1541. A
  1542. );
  1543. }
  1544. return (
  1545. g(e, t),
  1546. (e.prototype.setHoverStyle = function () {
  1547. (this.fillColor = this.hover.fillColor), (this.strokeWidth = this.hover.r), (this.storkeColor = this.hover.storkeColor);
  1548. }),
  1549. (e.prototype.setUnHoverStyle = function () {
  1550. (this.fillColor = this.init.fillColor), (this.strokeWidth = this.init.strokeWidth), (this.storkeColor = this.init.storkeColor);
  1551. }),
  1552. (e.prototype.dragStart = function () {
  1553. this.dragStartPoint = { x: this.x, y: this.y };
  1554. }),
  1555. (e.prototype.drag = function (t) {
  1556. if (this.disable || (0 === t.x && 0 === t.y)) return !1;
  1557. (this.x = this.dragStartPoint.x + t.x * this.multiple), (this.y = this.dragStartPoint.y + t.y * this.multiple);
  1558. }),
  1559. (e.prototype.update = function () {
  1560. var e = this;
  1561. t.prototype.update.call(this),
  1562. this.renderer.processing.lines
  1563. .filter(function (t) {
  1564. return ~t.ele.points.indexOf(e);
  1565. })
  1566. .map(function (t) {
  1567. return t.ele;
  1568. })
  1569. .forEach(function (t) {
  1570. t.showAngle = e.hover && e.fillColor === e.hover.fillColor;
  1571. });
  1572. }),
  1573. (e.prototype.intercept = function (t, e, i) {
  1574. var n = this,
  1575. g = e.x,
  1576. r = e.y;
  1577. e.select;
  1578. if (l.type.isUndefined(g) || l.type.isUndefined(r)) return !0;
  1579. if (this.dragStartPoint) {
  1580. for (
  1581. var o,
  1582. C = { x: g, y: r },
  1583. s = this.renderer.processing.lines.map(function (t) {
  1584. return t.ele;
  1585. }),
  1586. a = s
  1587. .filter(function (t) {
  1588. return ~t.points.indexOf(n);
  1589. })
  1590. .map(function (t) {
  1591. var e = t.points.indexOf(n),
  1592. i = Number(!e),
  1593. g = s.filter(function (e) {
  1594. return ~e.points.indexOf(t.points[i]) && t !== e;
  1595. }),
  1596. A = I(t.points);
  1597. return (A[e] = C), I([{ points: A }], g);
  1598. }),
  1599. c = function (t) {
  1600. var e = a[t];
  1601. if (e.length < 2) return "continue";
  1602. var i = e.slice(1).map(function (t) {
  1603. var i = u.getAngle(e[0], t);
  1604. return i > 90 && (i = 180 - i), { line: t, angle: u.getAngle(e[0], t) };
  1605. }),
  1606. n = i
  1607. .map(function (t) {
  1608. return A(A({}, t), { angle: t.angle > 90 ? 180 - t.angle : t.angle });
  1609. })
  1610. .sort(function (t, e) {
  1611. return t.angle - e.angle;
  1612. });
  1613. if (n[0].angle <= 5) {
  1614. var g = n[0].line;
  1615. o = u.getLinePoint(g, o || C);
  1616. }
  1617. var r = i.find(function (t) {
  1618. var e = t.angle;
  1619. return e > 85 && e < 95 && 90 !== e;
  1620. });
  1621. r &&
  1622. (o = u.getVectorPosPoint(
  1623. u.verticalLine(r.line),
  1624. r.line.points.find(function (t) {
  1625. return ~e[0].points.indexOf(t);
  1626. }),
  1627. o || C
  1628. ));
  1629. },
  1630. h = 0;
  1631. h < a.length;
  1632. h++
  1633. )
  1634. c(h);
  1635. return o;
  1636. }
  1637. }),
  1638. (e.prototype.dragEnd = function () {
  1639. return r(this, void 0, void 0, function () {
  1640. var t,
  1641. e,
  1642. n,
  1643. g,
  1644. A,
  1645. r,
  1646. C = this;
  1647. return o(this, function (o) {
  1648. switch (o.label) {
  1649. case 0:
  1650. return (
  1651. delete this.dragStartPoint,
  1652. (t = i(4).default),
  1653. (e = this).stopDragEnd || e.dragEnding
  1654. ? [2]
  1655. : ((e.dragEnding = !0),
  1656. (n =
  1657. e.__join_lines &&
  1658. e.__join_lines.find(function (e) {
  1659. return !(u.lineDis({ points: e.points }) > 0.1 || (t.attaArch.get(e) && t.attaArch.get(e).length));
  1660. }))
  1661. ? [4, n.judgeMerge()]
  1662. : [3, 4])
  1663. );
  1664. case 1:
  1665. return (g = o.sent())
  1666. ? [
  1667. 4,
  1668. new Promise(function (t) {
  1669. (g.adopt = !1),
  1670. n.nextTick(function () {
  1671. g.nextTick(function () {
  1672. n.destroy(), n.destoryPoint(g), t();
  1673. });
  1674. });
  1675. }),
  1676. ]
  1677. : [3, 3];
  1678. case 2:
  1679. o.sent(), (o.label = 3);
  1680. case 3:
  1681. return [3, 8];
  1682. case 4:
  1683. (A = this.renderer.processing.lines
  1684. .map(function (t) {
  1685. return t.ele;
  1686. })
  1687. .filter(function (t) {
  1688. return ~t.points.indexOf(C);
  1689. })),
  1690. (r = 0),
  1691. (o.label = 5);
  1692. case 5:
  1693. return r < A.length ? [4, A[r].judgePoint()] : [3, 8];
  1694. case 6:
  1695. o.sent(), (o.label = 7);
  1696. case 7:
  1697. return r++, [3, 5];
  1698. case 8:
  1699. return (e.dragEnding = !1), this.renderer.processing.depLines(), [2];
  1700. }
  1701. });
  1702. });
  1703. }),
  1704. (e.Setting = new Map()),
  1705. e
  1706. );
  1707. })(a.default);
  1708. e.default = c;
  1709. },
  1710. function (t, e, i) {
  1711. "use strict";
  1712. var n,
  1713. g =
  1714. (this && this.__extends) ||
  1715. ((n = function (t, e) {
  1716. return (n =
  1717. Object.setPrototypeOf ||
  1718. ({ __proto__: [] } instanceof Array &&
  1719. function (t, e) {
  1720. t.__proto__ = e;
  1721. }) ||
  1722. function (t, e) {
  1723. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  1724. })(t, e);
  1725. }),
  1726. function (t, e) {
  1727. function i() {
  1728. this.constructor = t;
  1729. }
  1730. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  1731. }),
  1732. A =
  1733. (this && this.__assign) ||
  1734. function () {
  1735. return (A =
  1736. Object.assign ||
  1737. function (t) {
  1738. for (var e, i = 1, n = arguments.length; i < n; i++)
  1739. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  1740. return t;
  1741. }).apply(this, arguments);
  1742. },
  1743. r =
  1744. (this && this.__rest) ||
  1745. function (t, e) {
  1746. var i = {};
  1747. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  1748. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  1749. var g = 0;
  1750. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1751. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  1752. }
  1753. return i;
  1754. };
  1755. Object.defineProperty(e, "__esModule", { value: !0 });
  1756. var o = i(2),
  1757. C = i(1),
  1758. I = 1,
  1759. s = (function (t) {
  1760. function e(i) {
  1761. var n = i.strokeWidth,
  1762. g = void 0 === n ? 0 : n,
  1763. o = i.r,
  1764. C = void 0 === o ? 4 : o,
  1765. I = i.r1,
  1766. s = void 0 === I ? 4 : I,
  1767. a = i.fillColor,
  1768. l = i.storkeColor,
  1769. u = r(i, ["strokeWidth", "r", "r1", "fillColor", "storkeColor"]),
  1770. c = this;
  1771. return (
  1772. (a = a || e.Setting.get(u.renderer).fillColor),
  1773. (l = l || e.Setting.get(u.renderer).storkeColor),
  1774. ((c = t.call(this, A({ storkeColor: l, fillColor: a, r: C, r1: s, strokeWidth: g }, u)) || this).init = {
  1775. strokeWidth: g,
  1776. r: C,
  1777. r1: s,
  1778. fillColor: a,
  1779. storkeColor: l,
  1780. }),
  1781. c.update(),
  1782. c
  1783. );
  1784. }
  1785. return (
  1786. g(e, t),
  1787. (e.prototype.grentNode = function () {
  1788. var t = document.createElementNS(C.SVGURI, "ellipse");
  1789. return t.setAttribute("_id", (I++).toString()), t;
  1790. }),
  1791. (e.prototype.update = function () {
  1792. var t = this.r * this.multiple,
  1793. e = this.r1 * this.multiple,
  1794. i = this.strokeWidth * this.multiple;
  1795. try {
  1796. this.real.setAttribute("cx", this.x.toString()),
  1797. this.real.setAttribute("cy", this.y.toString()),
  1798. this.real.setAttribute("fill", this.fillColor),
  1799. this.real.setAttribute("rx", t.toString()),
  1800. this.real.setAttribute("ry", e.toString()),
  1801. this.real.setAttribute("stroke-width", i.toString()),
  1802. this.real.setAttribute("stroke", this.storkeColor);
  1803. } catch (t) {
  1804. console.error(this.x);
  1805. }
  1806. }),
  1807. (e.prototype.destroy = function () {
  1808. t.prototype.destroy.call(this);
  1809. }),
  1810. (e.fillColor = "rgb(0, 200, 175)"),
  1811. (e.storkeColor = "green"),
  1812. (e.Setting = new Map()),
  1813. e
  1814. );
  1815. })(o.CADElement);
  1816. e.default = s;
  1817. },
  1818. function (t, e, i) {
  1819. "use strict";
  1820. var n,
  1821. g =
  1822. (this && this.__extends) ||
  1823. ((n = function (t, e) {
  1824. return (n =
  1825. Object.setPrototypeOf ||
  1826. ({ __proto__: [] } instanceof Array &&
  1827. function (t, e) {
  1828. t.__proto__ = e;
  1829. }) ||
  1830. function (t, e) {
  1831. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  1832. })(t, e);
  1833. }),
  1834. function (t, e) {
  1835. function i() {
  1836. this.constructor = t;
  1837. }
  1838. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  1839. }),
  1840. A =
  1841. (this && this.__assign) ||
  1842. function () {
  1843. return (A =
  1844. Object.assign ||
  1845. function (t) {
  1846. for (var e, i = 1, n = arguments.length; i < n; i++)
  1847. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  1848. return t;
  1849. }).apply(this, arguments);
  1850. },
  1851. r =
  1852. (this && this.__rest) ||
  1853. function (t, e) {
  1854. var i = {};
  1855. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  1856. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  1857. var g = 0;
  1858. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1859. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  1860. }
  1861. return i;
  1862. },
  1863. o =
  1864. (this && this.__spreadArrays) ||
  1865. function () {
  1866. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  1867. var n = Array(t),
  1868. g = 0;
  1869. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  1870. return n;
  1871. },
  1872. C =
  1873. (this && this.__importDefault) ||
  1874. function (t) {
  1875. return t && t.__esModule ? t : { default: t };
  1876. };
  1877. Object.defineProperty(e, "__esModule", { value: !0 });
  1878. var I = i(1),
  1879. s = C(i(5)),
  1880. a = i(2),
  1881. l = C(i(4)),
  1882. u = i(3),
  1883. c = i(0),
  1884. h = (function (t) {
  1885. function e(e) {
  1886. var i = e.points,
  1887. n = e.fill,
  1888. g = void 0 === n ? "rgba(0,0,0,0)" : n,
  1889. o = e.stroke,
  1890. C = void 0 === o ? "rgba(255,255,255,0.5)" : o,
  1891. I = e.width,
  1892. a = void 0 === I ? 1 : I,
  1893. l = e.hover,
  1894. u = r(e, ["points", "fill", "stroke", "width", "hover"]),
  1895. h = this,
  1896. p = [i[0], i[1]],
  1897. d = i.slice(2).map(function (t) {
  1898. return new s.default(A(A({}, t), { renderer: u.renderer }));
  1899. }),
  1900. f = { fill: g, stroke: C, width: a };
  1901. return (
  1902. (l = l || A(A({}, f), { fill: "rgba(243, 255, 0, 0.8)", strokeBorder: "rgba(243, 255, 0, 0.8)" })),
  1903. ((h = t.call(this, A(A({ linePoints: p, hover: l, otherPoints: d }, f), u)) || this).points = h.linePoints.concat(h.otherPoints)),
  1904. (h.selectLineIndex = -1),
  1905. (h.init = f),
  1906. (h.cacheVers = [c.lineVector({ points: [h.points[1], h.points[2]] }), c.lineVector({ points: [h.points[0], h.points[3]] })]),
  1907. (h.__enterHandle = function () {
  1908. h.hasTriggerEvent() ||
  1909. (~h.selectLineIndex && !h.select) ||
  1910. Object.keys(h.hover).forEach(function (t) {
  1911. return (h[t] = h.hover[t]);
  1912. });
  1913. }),
  1914. (h.__leaveHandle = function () {
  1915. h.hasTriggerEvent() ||
  1916. h.select ||
  1917. Object.keys(h.init).forEach(function (t) {
  1918. return (h[t] = h.init[t]);
  1919. });
  1920. }),
  1921. (h.__lineEnter = function (t) {
  1922. h.hasTriggerEvent() || ~h.selectLineIndex || h.__draging || ((h.selectLineIndex = h.lines.indexOf(t.target)), h.update());
  1923. }),
  1924. (h.__lineLeave = function (t) {
  1925. h.hasTriggerEvent() || h.__draging || ((h.selectLineIndex = -1), h.update());
  1926. }),
  1927. (h.__lineClick = function (t) {
  1928. return t.stopPropagation();
  1929. }),
  1930. h
  1931. );
  1932. }
  1933. return (
  1934. g(e, t),
  1935. (e.prototype.updateFirstLinePoints = function () {
  1936. this.firstLinePoints = this.attachment.points.map(function (t) {
  1937. return { x: t.x, y: t.y };
  1938. });
  1939. }),
  1940. (e.prototype.grentNode = function () {
  1941. var t = this,
  1942. e = document.createElementNS(I.SVGURI, "g");
  1943. return (
  1944. (this.wrapPath = document.createElementNS(I.SVGURI, "path")),
  1945. (this.leftLine = document.createElementNS(I.SVGURI, "path")),
  1946. (this.rightLine = document.createElementNS(I.SVGURI, "path")),
  1947. (this.bottomLeft = document.createElementNS(I.SVGURI, "path")),
  1948. (this.topLine = document.createElementNS(I.SVGURI, "path")),
  1949. (this.overLine1 = document.createElementNS(I.SVGURI, "path")),
  1950. (this.overLine2 = document.createElementNS(I.SVGURI, "path")),
  1951. (this.lines = [this.leftLine, this.rightLine, this.topLine, this.overLine1, this.overLine2, this.bottomLeft]),
  1952. this.wrapPath.setAttribute("stroke", "rgba(0,0,0,0)"),
  1953. this.nextTick(function () {
  1954. (t.points = t.linePoints.concat(t.otherPoints)), t.addEvent(), t.updateThickness(), t.updateFirstLinePoints();
  1955. }),
  1956. e.appendChild(this.overLine1),
  1957. e.appendChild(this.overLine2),
  1958. e.appendChild(this.wrapPath),
  1959. e.appendChild(this.leftLine),
  1960. e.appendChild(this.topLine),
  1961. e.appendChild(this.rightLine),
  1962. e.appendChild(this.bottomLeft),
  1963. e
  1964. );
  1965. }),
  1966. (e.prototype.update = function () {
  1967. var t = this;
  1968. if (this.points) {
  1969. var e = this.width * this.multiple;
  1970. this.lines.forEach(function (i) {
  1971. i.setAttribute("stroke-width", e.toString()), i.setAttribute("stroke-linecap", "round"), i.setAttribute("stroke", t.stroke);
  1972. }),
  1973. u.type.isNumber(this.hoverIndex)
  1974. ? this.lines[this.hoverIndex].setAttribute("stroke", this.hover.strokeBorder)
  1975. : (this.wrapPath.setAttribute("stroke-width", "0"),
  1976. this.wrapPath.setAttribute("fill", this.fill),
  1977. this.wrapPath.setAttribute(
  1978. "d",
  1979. "M " +
  1980. this.points
  1981. .map(function (t) {
  1982. return t.x + " " + t.y;
  1983. })
  1984. .join(" L ")
  1985. )),
  1986. isNaN(this.points[0].x) ||
  1987. (this.overLine1.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[2].x + " " + this.points[2].y),
  1988. this.overLine2.setAttribute("d", "M " + this.points[3].x + " " + this.points[3].y + " L " + this.points[1].x + " " + this.points[1].y),
  1989. this.topLine.setAttribute("d", "M " + this.points[3].x + " " + this.points[3].y + " L " + this.points[2].x + " " + this.points[2].y),
  1990. this.leftLine.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[3].x + " " + this.points[3].y),
  1991. this.rightLine.setAttribute("d", "M " + this.points[2].x + " " + this.points[2].y + " L " + this.points[1].x + " " + this.points[1].y),
  1992. this.bottomLeft.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[1].x + " " + this.points[1].y),
  1993. ~this.selectLineIndex && this.lines[this.selectLineIndex].setAttribute("stroke", this.hover.strokeBorder),
  1994. this.attachment.update());
  1995. }
  1996. }),
  1997. (e.prototype.hasTriggerEvent = function () {
  1998. return a.CADElement.examples.get(this.renderer).some(function (t) {
  1999. return t.__draging;
  2000. });
  2001. }),
  2002. (e.prototype.wallSelect = function () {
  2003. var t = this;
  2004. this.select
  2005. ? Object.keys(this.hover).forEach(function (e) {
  2006. return (t[e] = t.hover[e]);
  2007. })
  2008. : Object.keys(this.init).forEach(function (e) {
  2009. return (t[e] = t.init[e]);
  2010. });
  2011. }),
  2012. (e.prototype.addEvent = function () {
  2013. var t = this;
  2014. this.wrapPath.addEventListener("mouseenter", this.__enterHandle, !1),
  2015. this.wrapPath.addEventListener("mouseleave", this.__leaveHandle, !1),
  2016. this.lines.forEach(function (e) {
  2017. e.addEventListener("mouseenter", t.__lineEnter, !1),
  2018. e.addEventListener("mouseleave", t.__lineLeave, !1),
  2019. e.addEventListener("click", t.__lineClick, !1);
  2020. });
  2021. }),
  2022. (e.prototype.updateThickness = function (t) {
  2023. void 0 === t && (t = [this.points[0], this.points[3]]), (this.thickness = c.lineDis({ points: t }));
  2024. }),
  2025. (e.prototype.checkPeripheral = function (t) {
  2026. return void 0 === t && (t = this.points), !0;
  2027. }),
  2028. (e.prototype.getPeripheral = function (t) {
  2029. void 0 === t && (t = this.points);
  2030. var e = { x: this.firstLinePoints[0].x - this.attachment.points[0].x, y: this.firstLinePoints[0].y - this.attachment.points[0].y },
  2031. i = { x: this.firstLinePoints[1].x - this.attachment.points[1].x, y: this.firstLinePoints[1].y - this.attachment.points[1].y },
  2032. n = e.x || e.y ? e : i,
  2033. g = { x: t[3].x + n.x, y: t[3].y + n.y },
  2034. A = { x: t[2].x + n.x, y: t[2].y + n.y },
  2035. r = { points: [t[0], t[1]] },
  2036. C = c.getDisVerticalLinePoints(r, t[0], this.thickness).sort(function (t, e) {
  2037. return c.lineDis({ points: [t, g] }) - c.lineDis({ points: [e, g] });
  2038. })[0],
  2039. I = c.getDisVerticalLinePoints(r, t[1], this.thickness).sort(function (t, e) {
  2040. return c.lineDis({ points: [t, A] }) - c.lineDis({ points: [e, A] });
  2041. })[0],
  2042. s = c.getDisPointLinePoints({ points: [t[0], C] }, t[0], this.thickness),
  2043. a = s[0],
  2044. l = s[1];
  2045. C = c.lineDis({ points: [a, t[3]] }) > c.lineDis({ points: [l, t[3]] }) ? l : a;
  2046. var u = c.getDisPointLinePoints({ points: [t[1], I] }, t[1], this.thickness),
  2047. h = u[0],
  2048. p = u[1],
  2049. d = null;
  2050. return (
  2051. c.lineDis({ points: [h, t[2]] }) > c.lineDis({ points: [p, t[2]] }) ? ((I = p), (d = h)) : ((I = h), (d = p)),
  2052. Math.abs(c.lineDis({ points: [I, C] }) - c.lineDis({ points: [t[0], t[1]] })) > 0.01 && (I = d),
  2053. ((t = o(t))[2] = I),
  2054. (t[3] = C),
  2055. this.checkPeripheral(t) ? [I, C] : []
  2056. );
  2057. }),
  2058. (e.prototype.updatePeripheral = function (t) {
  2059. void 0 === t && (t = this.points);
  2060. var e = this.getPeripheral(t);
  2061. return (
  2062. (this.points[2].x = e[0].x),
  2063. (this.points[2].y = e[0].y),
  2064. (this.points[3].x = e[1].x),
  2065. (this.points[3].y = e[1].y),
  2066. (this.readyPoints = t.slice(0, 2).concat(e)),
  2067. !0
  2068. );
  2069. }),
  2070. (e.prototype.intercept = function (e, i, n) {
  2071. var g,
  2072. r,
  2073. C,
  2074. I,
  2075. s = i.x,
  2076. a = i.y;
  2077. if (u.type.isUndefined(s) || u.type.isUndefined(a)) return !0;
  2078. if (!1 === (g = t.prototype.intercept.call(this, e, { x: s, y: a }, n))) return g;
  2079. if (
  2080. ((r = this.points.findIndex(function (t) {
  2081. return e.some(function (e) {
  2082. return e === t;
  2083. });
  2084. })),
  2085. (I = this.attachment.points.findIndex(function (t) {
  2086. return (C = e.find(function (e) {
  2087. return e === t;
  2088. }));
  2089. })),
  2090. !~r && C)
  2091. ) {
  2092. ((h = [])[this.points.indexOf(this.linePoints[0])] = g.__points[0]),
  2093. (h[this.points.indexOf(this.linePoints[1])] = g.__points[1]),
  2094. h.push(this.points[2], this.points[3]),
  2095. (this.firstLinePoints[I] = C);
  2096. var l = this.getPeripheral(h);
  2097. if (
  2098. ((this.cacheVers = [c.lineVector({ points: [this.points[1], this.points[2]] }), c.lineVector({ points: [this.points[0], this.points[3]] })]),
  2099. 0 === l.length)
  2100. )
  2101. return !1;
  2102. } else {
  2103. var h = o(this.points);
  2104. if (!~r) return g;
  2105. if (((h[r] = A({}, n[e.indexOf(h[r])])), !(r < 2))) {
  2106. var p,
  2107. d = void 0,
  2108. f = void 0,
  2109. y = void 0,
  2110. v = void 0,
  2111. m = void 0;
  2112. 2 === r
  2113. ? ((d = { points: [this.points[1], this.points[2]] }),
  2114. (f = { points: [this.points[0], this.points[3]] }),
  2115. (p = this.points[2]),
  2116. (y = 2),
  2117. (v = 3),
  2118. (m = this.cacheVers[1]))
  2119. : ((f = { points: [this.points[1], this.points[2]] }),
  2120. (d = { points: [this.points[0], this.points[3]] }),
  2121. (p = this.points[3]),
  2122. (y = 3),
  2123. (v = 2),
  2124. (m = d),
  2125. (m = this.cacheVers[0]));
  2126. var b = c.lineVector(d);
  2127. if (b.x - m.x < 0.01 && b.y - m.y < 0.01) {
  2128. var x = c.getLinePoint(d, { x: s, y: a }),
  2129. _ = c.getLinePoint(f, { x: s, y: a }),
  2130. w = f.points[1].x + s - p.x,
  2131. P = f.points[1].y + a - p.y,
  2132. O = c.getLinePoint(f, { x: w, y: P }),
  2133. S = Math.abs(this.moveLineDis - c.lineDis({ points: [x, _] })) > Math.abs(this.moveLineDis - c.lineDis({ points: [x, O] })) ? O : _;
  2134. (h[y] = x), (h[v] = S);
  2135. }
  2136. return (this.readyPoints = h), !0;
  2137. }
  2138. if (!this.updatePeripheral(h)) return !1;
  2139. }
  2140. return g;
  2141. }),
  2142. (e.prototype.dragStart = function (t) {
  2143. var e = this.lines.indexOf(t.target);
  2144. (this.__index = e < 3 ? e : -1),
  2145. (this.__startPoints = this.points.map(function (t) {
  2146. return { x: t.x, y: t.y };
  2147. }));
  2148. }),
  2149. (e.prototype.drag = function (t) {
  2150. var e = t.x * this.multiple,
  2151. i = t.y * this.multiple,
  2152. n = ~this.__index ? [this.points[this.__index]] : this.linePoints,
  2153. g = ~this.__index ? [this.__startPoints[this.__index]] : this.__startPoints;
  2154. if (this.__index < 2)
  2155. n.forEach(function (t, n) {
  2156. (t.x = g[n].x + e), (t.y = g[n].y + i);
  2157. });
  2158. else {
  2159. var A = c.getLinePoint({ points: [this.points[0], this.points[3]] }, { x: this.__startPoints[3].x + e, y: this.__startPoints[3].y + i }),
  2160. r = c.getLinePoint({ points: [this.points[1], this.points[2]] }, { x: this.__startPoints[2].x + e, y: this.__startPoints[2].y + i });
  2161. this.checkPeripheral(
  2162. this.points
  2163. .slice(0, 2)
  2164. .map(function (t) {
  2165. return { x: t.x, y: t.y };
  2166. })
  2167. .concat([r, A])
  2168. ) && ((this.points[3].x = A.x), (this.points[3].y = A.y), (this.points[2].x = r.x), (this.points[2].y = r.y));
  2169. }
  2170. }),
  2171. (e.prototype.dragEnd = function () {
  2172. delete this.dragStartPoints, delete this.__index, this.updateThickness(), this.__leaveHandle(), this.__lineLeave(), t.prototype.dragEnd.call(this);
  2173. }),
  2174. (e.prototype.delEvent = function () {
  2175. var t = this;
  2176. this.wrapPath.removeEventListener("mouseenter", this.__enterHandle, !1),
  2177. this.wrapPath.removeEventListener("mouseleave", this.__leaveHandle, !1),
  2178. this.lines.forEach(function (e) {
  2179. e.removeEventListener("mouseenter", t.__lineEnter, !1),
  2180. e.removeEventListener("mouseleave", t.__lineLeave, !1),
  2181. e.removeEventListener("click", t.__lineClick, !1);
  2182. });
  2183. }),
  2184. (e.prototype.destroy = function () {
  2185. this.delEvent(), t.prototype.destroy.call(this);
  2186. }),
  2187. e
  2188. );
  2189. })(l.default);
  2190. e.default = h;
  2191. },
  2192. function (t, e, i) {
  2193. "use strict";
  2194. var n,
  2195. g =
  2196. (this && this.__extends) ||
  2197. ((n = function (t, e) {
  2198. return (n =
  2199. Object.setPrototypeOf ||
  2200. ({ __proto__: [] } instanceof Array &&
  2201. function (t, e) {
  2202. t.__proto__ = e;
  2203. }) ||
  2204. function (t, e) {
  2205. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  2206. })(t, e);
  2207. }),
  2208. function (t, e) {
  2209. function i() {
  2210. this.constructor = t;
  2211. }
  2212. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  2213. }),
  2214. A =
  2215. (this && this.__assign) ||
  2216. function () {
  2217. return (A =
  2218. Object.assign ||
  2219. function (t) {
  2220. for (var e, i = 1, n = arguments.length; i < n; i++)
  2221. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2222. return t;
  2223. }).apply(this, arguments);
  2224. },
  2225. r =
  2226. (this && this.__rest) ||
  2227. function (t, e) {
  2228. var i = {};
  2229. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2230. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2231. var g = 0;
  2232. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2233. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  2234. }
  2235. return i;
  2236. },
  2237. o =
  2238. (this && this.__importDefault) ||
  2239. function (t) {
  2240. return t && t.__esModule ? t : { default: t };
  2241. },
  2242. C =
  2243. (this && this.__importStar) ||
  2244. function (t) {
  2245. if (t && t.__esModule) return t;
  2246. var e = {};
  2247. if (null != t) for (var i in t) Object.hasOwnProperty.call(t, i) && (e[i] = t[i]);
  2248. return (e.default = t), e;
  2249. };
  2250. Object.defineProperty(e, "__esModule", { value: !0 });
  2251. var I = i(1),
  2252. s = o(i(4)),
  2253. a = i(0),
  2254. l = { defaultIcon: C(i(34)), darkIcon: C(i(35)) },
  2255. u = (function (t) {
  2256. function e(e) {
  2257. var i = e.points,
  2258. n = e.fill,
  2259. g = void 0 === n ? "rgba(0,0,0,0)" : n,
  2260. o = e.icon,
  2261. C = void 0 === o ? "defaultIcon" : o,
  2262. I = e.stroke,
  2263. s = void 0 === I ? "rgba(255,255,255,0.5)" : I,
  2264. a = e.outWidth,
  2265. l = void 0 === a ? 1 : a,
  2266. u = e.foorWidth,
  2267. c = void 0 === u ? 6 : u,
  2268. h = e.linecap,
  2269. p = void 0 === h ? "square" : h,
  2270. d = e.foorColor,
  2271. f = void 0 === d ? "rgba(0,0,0,0)" : d,
  2272. y = e.hover,
  2273. v = e.within,
  2274. m = void 0 === v ? 0 : v,
  2275. b = e.start,
  2276. x = void 0 !== b && b,
  2277. _ = r(e, ["points", "fill", "icon", "stroke", "outWidth", "foorWidth", "linecap", "foorColor", "hover", "within", "start"]),
  2278. w = this,
  2279. P = { fill: g, stroke: s, outWidth: l, foorWidth: c, foorColor: f, linecap: p };
  2280. return (
  2281. (y = y || A(A({}, P), { fill: "rgba(243, 255, 0, 0.8)" })),
  2282. ((w = t.call(this, A(A({ linePoints: i, hover: y, within: m, start: x, icon: C }, P), _)) || this).init = P),
  2283. (w.showStart = !0),
  2284. w
  2285. );
  2286. }
  2287. return (
  2288. g(e, t),
  2289. (e.prototype.grentNode = function () {
  2290. var t = this,
  2291. e = document.createElementNS(I.SVGURI, "g");
  2292. return (
  2293. (this.arc = document.createElementNS(I.SVGURI, "path")),
  2294. (this.outLine = document.createElementNS(I.SVGURI, "path")),
  2295. (this.image = document.createElementNS(I.SVGURI, "image")),
  2296. e.appendChild(this.outLine),
  2297. e.appendChild(this.arc),
  2298. e.appendChild(this.image),
  2299. this.nextTick(function () {
  2300. t.linePoints && (e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real));
  2301. }),
  2302. e
  2303. );
  2304. }),
  2305. (e.prototype.getCalcPoint = function (t) {
  2306. void 0 === t && (t = a.lineDis({ points: this.linePoints }));
  2307. var e = this.linePoints[0];
  2308. return a.getDisVectorPoints(a.verticalLine(this.attachment), e, t)[0];
  2309. }),
  2310. (e.prototype.click = function (e) {
  2311. t.prototype.click.call(this, e), console.log(this.within);
  2312. }),
  2313. (e.prototype.getDrawArgs = function () {
  2314. var t, e, i, n;
  2315. 0 === this.within || 2 === this.within ? ((i = (t = this.linePoints)[0]), (n = t[1])) : ((n = (e = this.linePoints)[0]), (i = e[1]));
  2316. var g,
  2317. A = a.lineDis({ points: this.linePoints }),
  2318. r = a.getDisVerticalLinePoints(this.attachment, i, A),
  2319. o = r[0],
  2320. C = r[1],
  2321. I = { x: 0, y: 0 },
  2322. s = a.lineDis({ points: [o, I] }) < a.lineDis({ points: [C, I] });
  2323. return [i, n, (g = 0 === this.within || 3 === this.within ? (s ? o : C) : s ? C : o), A, a.isClockWise([i, n, g])];
  2324. }),
  2325. (e.prototype.update = function () {
  2326. this.real.style.display = this.show ? "initial" : "none";
  2327. var t = this.getDrawArgs(),
  2328. e = t[0],
  2329. i = t[1],
  2330. n = t[2],
  2331. g = t[3],
  2332. A = t[4];
  2333. if (isNaN(n.x)) this.destroy();
  2334. else if (
  2335. ((this.ctl = [n]),
  2336. this.arc.setAttribute(
  2337. "d",
  2338. "M " + e.x + " " + e.y + " L " + n.x + " " + n.y + " A " + g + " " + g + " 0 0 " + (A ? "1" : "0") + " " + i.x + " " + i.y + " Z"
  2339. ),
  2340. this.arc.setAttribute("stroke-width", (this.outWidth * this.multiple).toString()),
  2341. this.arc.setAttribute("stroke", this.stroke),
  2342. this.arc.setAttribute("fill", this.fill),
  2343. this.icon !== this.firstIcon && ((this.image.href.baseVal = l[this.icon]), (this.firstIcon = this.icon)),
  2344. this.outLine.setAttribute("stroke", this.foorColor),
  2345. this.outLine.setAttribute("fill", this.fill),
  2346. this.outLine.setAttribute("stroke-width", (this.foorWidth * this.multiple).toString()),
  2347. this.outLine.setAttribute("stroke-linecap", this.linecap),
  2348. this.outLine.setAttribute(
  2349. "d",
  2350. "M " + this.linePoints[0].x + " " + this.linePoints[0].y + " L " + this.linePoints[1].x + " " + this.linePoints[1].y
  2351. ),
  2352. this.attachment.update(),
  2353. this.start && this.showStart)
  2354. ) {
  2355. var r = a.lineDis({ points: this.linePoints }),
  2356. o = a.lineStretch({ points: this.linePoints }, r / 2).points,
  2357. C = a.lineDis({ points: o });
  2358. if (isNaN(C)) return;
  2359. var I = 4 * C,
  2360. s = o[1],
  2361. u = s === o[1] ? o[0] : o[1],
  2362. c = a.getDisVerticalLinePoints({ points: this.linePoints }, s, I),
  2363. h = a.lineDis({ points: [c[0], n] }) > a.lineDis({ points: [c[1], n] }) ? c[0] : c[1],
  2364. p = a.getDisVerticalLinePoints({ points: this.linePoints }, u, I),
  2365. d = a.lineDis({ points: [p[0], n] }) > a.lineDis({ points: [p[1], n] }) ? p[0] : p[1],
  2366. f = a.faceCenter([s, h, d, u]),
  2367. y = a.lineDeg({ points: [s, h] }) + 90;
  2368. this.image.setAttribute("width", C.toString()),
  2369. this.image.setAttribute("height", I.toString()),
  2370. this.image.setAttribute("x", (f.x - C / 2).toString()),
  2371. this.image.setAttribute("y", (f.y - I / 2).toString()),
  2372. this.image.setAttribute("transform", "rotate(" + y + ", " + f.x + ", " + f.y + ")"),
  2373. (this.image.style.display = "block");
  2374. } else this.image.style.display = "none";
  2375. }),
  2376. (e.prototype.dragStart = function (t) {
  2377. (this.__index = t.target === this.linePoints[0].real ? 0 : t.target === this.linePoints[1].real ? 1 : -1),
  2378. (this.__startPoints = this.linePoints.map(function (t) {
  2379. return { x: t.x, y: t.y };
  2380. }));
  2381. }),
  2382. (e.prototype.drag = function (t) {
  2383. var e = this,
  2384. i = ~this.__index ? [this.linePoints[this.__index]] : this.linePoints,
  2385. n = ~this.__index ? [this.__startPoints[this.__index]] : this.__startPoints;
  2386. i.forEach(function (i, g) {
  2387. (i.x = n[g].x + t.x * e.multiple), (i.y = n[g].y + t.y * e.multiple);
  2388. });
  2389. }),
  2390. (e.prototype.dragEnd = function () {
  2391. delete this.dragStartPoints, delete this.__index, t.prototype.dragEnd.call(this);
  2392. }),
  2393. (e.prototype.setHoverStyle = function () {
  2394. var t = this;
  2395. Object.keys(this.hover).forEach(function (e) {
  2396. return (t[e] = t.hover[e]);
  2397. });
  2398. }),
  2399. (e.prototype.setUnHoverStyle = function () {
  2400. var t = this;
  2401. Object.keys(this.init).forEach(function (e) {
  2402. return (t[e] = t.init[e]);
  2403. });
  2404. }),
  2405. e
  2406. );
  2407. })(s.default);
  2408. e.default = u;
  2409. },
  2410. function (t, e, i) {
  2411. "use strict";
  2412. var n =
  2413. (this && this.__importDefault) ||
  2414. function (t) {
  2415. return t && t.__esModule ? t : { default: t };
  2416. };
  2417. Object.defineProperty(e, "__esModule", { value: !0 });
  2418. var g = n(i(30)),
  2419. A = {
  2420. t: function (t, e) {
  2421. for (var i = t.split("."), n = g.default; i.length; ) n = n[i.shift()];
  2422. return n;
  2423. },
  2424. };
  2425. e.i18n = A;
  2426. },
  2427. function (t, e, i) {
  2428. "use strict";
  2429. var n,
  2430. g =
  2431. (this && this.__extends) ||
  2432. ((n = function (t, e) {
  2433. return (n =
  2434. Object.setPrototypeOf ||
  2435. ({ __proto__: [] } instanceof Array &&
  2436. function (t, e) {
  2437. t.__proto__ = e;
  2438. }) ||
  2439. function (t, e) {
  2440. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  2441. })(t, e);
  2442. }),
  2443. function (t, e) {
  2444. function i() {
  2445. this.constructor = t;
  2446. }
  2447. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  2448. }),
  2449. A =
  2450. (this && this.__assign) ||
  2451. function () {
  2452. return (A =
  2453. Object.assign ||
  2454. function (t) {
  2455. for (var e, i = 1, n = arguments.length; i < n; i++)
  2456. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2457. return t;
  2458. }).apply(this, arguments);
  2459. },
  2460. r =
  2461. (this && this.__rest) ||
  2462. function (t, e) {
  2463. var i = {};
  2464. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2465. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2466. var g = 0;
  2467. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2468. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  2469. }
  2470. return i;
  2471. };
  2472. Object.defineProperty(e, "__esModule", { value: !0 });
  2473. var o = i(2),
  2474. C = i(1),
  2475. I = (function (t) {
  2476. function e(i) {
  2477. var n = i.color,
  2478. g = i.width,
  2479. o = i.showAngle,
  2480. C = void 0 !== o && o,
  2481. I = i.linecap,
  2482. s = void 0 === I ? "square" : I,
  2483. a = r(i, ["color", "width", "showAngle", "linecap"]),
  2484. l = this;
  2485. return (
  2486. (g = g || e.Setting.get(a.renderer).width),
  2487. (n = n || e.Setting.get(a.renderer).color),
  2488. ((l = t.call(this, A({ color: n, width: g, linecap: s, showAngle: C }, a)) || this).init = { color: n, width: g, linecap: s }),
  2489. l
  2490. );
  2491. }
  2492. return (
  2493. g(e, t),
  2494. (e.prototype.intercept = function (t, e, i) {
  2495. return !0;
  2496. }),
  2497. (e.prototype.grentNode = function () {
  2498. return document.createElementNS(C.SVGURI, "path");
  2499. }),
  2500. (e.prototype.update = function () {
  2501. var t = this.width * this.multiple;
  2502. this.real.setAttribute("stroke", this.color),
  2503. this.real.setAttribute("stroke-width", t.toString()),
  2504. this.real.setAttribute("stroke-linecap", this.linecap),
  2505. this.real.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[1].x + " " + this.points[1].y);
  2506. }),
  2507. (e.Setting = new Map()),
  2508. e
  2509. );
  2510. })(o.CADElement);
  2511. e.default = I;
  2512. },
  2513. function (t, e, i) {
  2514. "use strict";
  2515. var n,
  2516. g =
  2517. (this && this.__extends) ||
  2518. ((n = function (t, e) {
  2519. return (n =
  2520. Object.setPrototypeOf ||
  2521. ({ __proto__: [] } instanceof Array &&
  2522. function (t, e) {
  2523. t.__proto__ = e;
  2524. }) ||
  2525. function (t, e) {
  2526. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  2527. })(t, e);
  2528. }),
  2529. function (t, e) {
  2530. function i() {
  2531. this.constructor = t;
  2532. }
  2533. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  2534. }),
  2535. A =
  2536. (this && this.__assign) ||
  2537. function () {
  2538. return (A =
  2539. Object.assign ||
  2540. function (t) {
  2541. for (var e, i = 1, n = arguments.length; i < n; i++)
  2542. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2543. return t;
  2544. }).apply(this, arguments);
  2545. },
  2546. r =
  2547. (this && this.__rest) ||
  2548. function (t, e) {
  2549. var i = {};
  2550. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2551. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2552. var g = 0;
  2553. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2554. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  2555. }
  2556. return i;
  2557. },
  2558. o =
  2559. (this && this.__importDefault) ||
  2560. function (t) {
  2561. return t && t.__esModule ? t : { default: t };
  2562. };
  2563. Object.defineProperty(e, "__esModule", { value: !0 });
  2564. var C = o(i(12)),
  2565. I = i(1),
  2566. s = o(i(4)),
  2567. a = i(0),
  2568. l = (function (t) {
  2569. function e(e) {
  2570. var i = e.points,
  2571. n = e.fill,
  2572. g = void 0 === n ? "rgba(0,0,0,0)" : n,
  2573. o = e.seam,
  2574. C = void 0 === o ? "rgba(255,255,255,0)" : o,
  2575. I = e.bgColor,
  2576. s = void 0 === I ? "rgba(255,255,255,0.5)" : I,
  2577. a = e.width,
  2578. l = void 0 === a ? 6 : a,
  2579. u = e.stamWidth,
  2580. c = void 0 === u ? 0.5 : u,
  2581. h = e.hover,
  2582. p = r(e, ["points", "fill", "seam", "bgColor", "width", "stamWidth", "hover"]),
  2583. d = this,
  2584. f = { fill: g, seam: C, width: l, stamWidth: c };
  2585. return (
  2586. (h = h || A(A({}, f), { fill: "rgba(243, 255, 0, 0.8)" })),
  2587. ((d = t.call(this, A(A({ linePoints: i, bgColor: s, hover: h }, p), f)) || this).eleHover = !1),
  2588. d
  2589. );
  2590. }
  2591. return (
  2592. g(e, t),
  2593. (e.prototype.grentNode = function () {
  2594. var t = this,
  2595. e = document.createElementNS(I.SVGURI, "g");
  2596. return (
  2597. this.nextTick(function () {
  2598. (t.outLine = new C.default({ points: t.linePoints, width: t.width, color: t.fill, renderer: t.renderer })),
  2599. (t.innerline = new C.default({ points: t.linePoints, width: t.stamWidth, color: t.seam, renderer: t.renderer })),
  2600. (t.outLine.click = t.innerline.click =
  2601. function () {
  2602. return t.changeSelect(!0);
  2603. }),
  2604. e.appendChild(t.outLine.real),
  2605. e.appendChild(t.innerline.real),
  2606. e.appendChild(t.linePoints[0].real),
  2607. e.appendChild(t.linePoints[1].real),
  2608. t.interceptUpdateStyle(),
  2609. t.outLine.update(),
  2610. t.innerline.update();
  2611. }),
  2612. (this.clip1 = document.createElementNS(I.SVGURI, "path")),
  2613. (this.clip2 = document.createElementNS(I.SVGURI, "path")),
  2614. (this.clip3 = document.createElementNS(I.SVGURI, "path")),
  2615. (this.clip4 = document.createElementNS(I.SVGURI, "path")),
  2616. e.appendChild(this.clip1),
  2617. e.appendChild(this.clip2),
  2618. e.appendChild(this.clip3),
  2619. e.appendChild(this.clip4),
  2620. e
  2621. );
  2622. }),
  2623. (e.prototype.getStyle = function () {
  2624. return this.eleHover || this.select ? this.hover : { width: this.width, fill: this.fill, seam: this.seam, stamWidth: this.stamWidth };
  2625. }),
  2626. (e.prototype.interceptUpdateStyle = function () {
  2627. var t = this,
  2628. e = this.outLine.intercept,
  2629. i = this.innerline.intercept;
  2630. (this.outLine.intercept = function (i, n) {
  2631. var g = i[0],
  2632. A = n.width,
  2633. r = n.color;
  2634. if (g === t.outLine && (A || r)) {
  2635. var o = t.getStyle();
  2636. return { width: o.width, color: o.fill };
  2637. }
  2638. return e.call(t);
  2639. }),
  2640. (this.innerline.intercept = function (e, n) {
  2641. var g = e[0],
  2642. A = n.width,
  2643. r = n.color;
  2644. if (g === t.innerline && (A || r)) {
  2645. var o = t.getStyle();
  2646. return { width: o.stamWidth, color: o.seam };
  2647. }
  2648. return i.call(t);
  2649. });
  2650. }),
  2651. (e.prototype.update = function () {
  2652. this.outLine && ((this.outLine.width = this.outLine.width + 1e-8), (this.innerline.width = this.innerline.width + 1e-8));
  2653. var t = a.getDisVerticalLinePoints(this.attachment, this.linePoints[0], 0.4 * this.width * this.multiple),
  2654. e = t[0],
  2655. i = t[1],
  2656. n = a.getDisVerticalLinePoints(this.attachment, this.linePoints[1], 0.4 * this.width * this.multiple),
  2657. g = n[0],
  2658. A = n[1],
  2659. r = a.getDisVerticalLinePoints(this.attachment, this.linePoints[0], 0.1 * this.width * this.multiple),
  2660. o = r[0],
  2661. C = r[1],
  2662. I = a.getDisVerticalLinePoints(this.attachment, this.linePoints[1], 0.1 * this.width * this.multiple),
  2663. s = I[0],
  2664. l = I[1];
  2665. isNaN(e.x) ||
  2666. (this.clip1.setAttribute("stroke-width", this.multiple.toString()),
  2667. this.clip1.setAttribute("d", "M " + e.x + " " + e.y + " L " + g.x + " " + g.y),
  2668. this.clip2.setAttribute("stroke-width", this.multiple.toString()),
  2669. this.clip2.setAttribute("d", "M " + i.x + " " + i.y + " L " + A.x + " " + A.y),
  2670. this.clip3.setAttribute("stroke-width", this.multiple.toString()),
  2671. this.clip3.setAttribute("d", "M " + o.x + " " + o.y + " L " + s.x + " " + s.y),
  2672. this.clip4.setAttribute("stroke-width", this.multiple.toString()),
  2673. this.clip4.setAttribute("d", "M " + C.x + " " + C.y + " L " + l.x + " " + l.y),
  2674. this.clip1.setAttribute("stroke", this.bgColor),
  2675. this.clip2.setAttribute("stroke", this.bgColor),
  2676. this.clip3.setAttribute("stroke", this.bgColor),
  2677. this.clip4.setAttribute("stroke", this.bgColor),
  2678. this.attachment.update());
  2679. }),
  2680. (e.prototype.wallSelect = function () {
  2681. this.update && this.update();
  2682. }),
  2683. (e.prototype.enter = function () {
  2684. (this.eleHover = !0), this.update();
  2685. }),
  2686. (e.prototype.leave = function () {
  2687. (this.eleHover = !1), this.update();
  2688. }),
  2689. (e.prototype.drag = function (t) {}),
  2690. e
  2691. );
  2692. })(s.default);
  2693. e.default = l;
  2694. },
  2695. function (t, e, i) {
  2696. "use strict";
  2697. var n,
  2698. g =
  2699. (this && this.__extends) ||
  2700. ((n = function (t, e) {
  2701. return (n =
  2702. Object.setPrototypeOf ||
  2703. ({ __proto__: [] } instanceof Array &&
  2704. function (t, e) {
  2705. t.__proto__ = e;
  2706. }) ||
  2707. function (t, e) {
  2708. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  2709. })(t, e);
  2710. }),
  2711. function (t, e) {
  2712. function i() {
  2713. this.constructor = t;
  2714. }
  2715. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  2716. }),
  2717. A =
  2718. (this && this.__assign) ||
  2719. function () {
  2720. return (A =
  2721. Object.assign ||
  2722. function (t) {
  2723. for (var e, i = 1, n = arguments.length; i < n; i++)
  2724. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2725. return t;
  2726. }).apply(this, arguments);
  2727. },
  2728. r =
  2729. (this && this.__rest) ||
  2730. function (t, e) {
  2731. var i = {};
  2732. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2733. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2734. var g = 0;
  2735. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2736. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  2737. }
  2738. return i;
  2739. },
  2740. o =
  2741. (this && this.__importDefault) ||
  2742. function (t) {
  2743. return t && t.__esModule ? t : { default: t };
  2744. };
  2745. Object.defineProperty(e, "__esModule", { value: !0 });
  2746. var C = (function (t) {
  2747. function e(e) {
  2748. var i = e.hover,
  2749. n = e.color,
  2750. g = void 0 === n ? "#fff" : n,
  2751. o = e.width,
  2752. C = void 0 === o ? 3 : o,
  2753. I = e.linecap,
  2754. s = r(e, ["hover", "color", "width", "linecap"]),
  2755. a = this,
  2756. l = { color: g, width: C, linecap: I };
  2757. return (
  2758. (i = i || A(A({}, l), { color: "rgba(243, 255, 0, 0.8)" })),
  2759. ((a = t.call(this, A({ width: C, color: g }, s)) || this).hover = i),
  2760. (a.init = l),
  2761. (a.disable = !1),
  2762. a.real.setAttribute("class", "variable"),
  2763. a
  2764. );
  2765. }
  2766. return (
  2767. g(e, t),
  2768. (e.prototype.setHoverStyle = function () {
  2769. var t = this;
  2770. console.log(this.hover),
  2771. Object.keys(this.hover).forEach(function (e) {
  2772. return (t[e] = t.hover[e]);
  2773. });
  2774. }),
  2775. (e.prototype.setUnHoverStyle = function () {
  2776. var t = this;
  2777. Object.keys(this.init).forEach(function (e) {
  2778. return (t[e] = t.init[e]);
  2779. });
  2780. }),
  2781. (e.prototype.dragStart = function () {
  2782. this.dragStartPoints = this.points.map(function (t) {
  2783. return { x: t.x, y: t.y };
  2784. });
  2785. }),
  2786. (e.prototype.drag = function (t) {
  2787. var e = this;
  2788. if (this.disable) return !1;
  2789. this.points.forEach(function (i, n) {
  2790. (i.x = e.dragStartPoints[n].x + t.x * e.multiple), (i.y = e.dragStartPoints[n].y + t.y * e.multiple);
  2791. });
  2792. }),
  2793. (e.prototype.dragEnd = function () {
  2794. delete this.dragStartPoints;
  2795. }),
  2796. e
  2797. );
  2798. })(o(i(10)).default);
  2799. e.default = C;
  2800. },
  2801. function (t, e, i) {
  2802. "use strict";
  2803. var n,
  2804. g =
  2805. (this && this.__extends) ||
  2806. ((n = function (t, e) {
  2807. return (n =
  2808. Object.setPrototypeOf ||
  2809. ({ __proto__: [] } instanceof Array &&
  2810. function (t, e) {
  2811. t.__proto__ = e;
  2812. }) ||
  2813. function (t, e) {
  2814. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  2815. })(t, e);
  2816. }),
  2817. function (t, e) {
  2818. function i() {
  2819. this.constructor = t;
  2820. }
  2821. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  2822. }),
  2823. A =
  2824. (this && this.__assign) ||
  2825. function () {
  2826. return (A =
  2827. Object.assign ||
  2828. function (t) {
  2829. for (var e, i = 1, n = arguments.length; i < n; i++)
  2830. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2831. return t;
  2832. }).apply(this, arguments);
  2833. },
  2834. r =
  2835. (this && this.__rest) ||
  2836. function (t, e) {
  2837. var i = {};
  2838. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2839. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2840. var g = 0;
  2841. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2842. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  2843. }
  2844. return i;
  2845. },
  2846. o =
  2847. (this && this.__spreadArrays,
  2848. (this && this.__importDefault) ||
  2849. function (t) {
  2850. return t && t.__esModule ? t : { default: t };
  2851. });
  2852. Object.defineProperty(e, "__esModule", { value: !0 });
  2853. var C = i(2),
  2854. I = o(i(5)),
  2855. s = i(0),
  2856. a = i(3),
  2857. l = i(1),
  2858. u = o(i(12)),
  2859. c = (function (t) {
  2860. function e(e) {
  2861. var i = e.minWidth,
  2862. n = void 0 === i ? 0.1 : i,
  2863. g = e.points,
  2864. o = e.renderer,
  2865. C = e.top,
  2866. a = e.bottom,
  2867. l = e.angle,
  2868. c = void 0 === l ? 0 : l,
  2869. h = e.stroke,
  2870. p = void 0 === h ? "rgba(255,255,255,0.5)" : h,
  2871. d = e.width,
  2872. f = void 0 === d ? 1 : d,
  2873. y = r(e, ["minWidth", "points", "renderer", "top", "bottom", "angle", "stroke", "width"]),
  2874. v = this,
  2875. m = g.map(function (t) {
  2876. return new I.default(A(A({}, t), { renderer: o }));
  2877. }),
  2878. b = m.map(function (t, e) {
  2879. return new u.default({ points: [m[e], m[e === m.length - 1 ? 0 : e + 1]], renderer: o, width: f, color: p });
  2880. });
  2881. ((v = t.call(this, A(A({}, y), { points: m, lines: b, renderer: o, angle: c, stroke: p, width: f, fill: "rgba(0,0,0,0)" })) || this).paths = b),
  2882. (v.points = m),
  2883. (v.zIndex = 1),
  2884. (v.minWidth = n),
  2885. (v.stop = !0);
  2886. var x = [];
  2887. return (
  2888. Object.defineProperty(v, "movePoints", {
  2889. get: function () {
  2890. return x;
  2891. },
  2892. set: function (t) {
  2893. (x = t), t && t.length >= 2 ? (this.moveLineDis = s.lineDis({ points: x })) : delete this.moveLineDis;
  2894. },
  2895. }),
  2896. v.real.setAttribute("class", "variable"),
  2897. Object.defineProperty(v, "top", {
  2898. get: function () {
  2899. return C;
  2900. },
  2901. set: function (t) {
  2902. (C = t), this.wallPos && this.wallPos();
  2903. },
  2904. }),
  2905. Object.defineProperty(v, "bottom", {
  2906. get: function () {
  2907. return a;
  2908. },
  2909. set: function (t) {
  2910. (a = t), this.wallPos && this.wallPos();
  2911. },
  2912. }),
  2913. v
  2914. );
  2915. }
  2916. return (
  2917. g(e, t),
  2918. (e.prototype.setHoverStyle = function () {
  2919. this.fill = "rgba(243, 255, 0, 0.8)";
  2920. }),
  2921. (e.prototype.setUnHoverStyle = function () {
  2922. this.fill = "rgba(243, 255, 0, 0)";
  2923. }),
  2924. (e.prototype.rotate = function (t) {
  2925. var e = this;
  2926. if (t === this.angle) return !1;
  2927. var i = s.faceRotate(this.points, t - this.angle);
  2928. return (
  2929. !!this.check(i) &&
  2930. ((this.stop = !1),
  2931. this.points.forEach(function (t, e) {
  2932. (t.x = i[e].x), (t.y = i[e].y);
  2933. }),
  2934. this.nextTick(function () {
  2935. return (e.stop = !0);
  2936. }),
  2937. !0)
  2938. );
  2939. }),
  2940. (e.prototype.grentNode = function () {
  2941. var t = this,
  2942. e = document.createElementNS(l.SVGURI, "g");
  2943. return (
  2944. (this.wrapPath = document.createElementNS(l.SVGURI, "path")),
  2945. e.appendChild(this.wrapPath),
  2946. this.nextTick(function () {
  2947. t.lines.forEach(function (i) {
  2948. (i.changeSelect = function (e) {
  2949. e && t.changeSelect(e);
  2950. }),
  2951. i.update(),
  2952. e.appendChild(i.real);
  2953. });
  2954. }),
  2955. e
  2956. );
  2957. }),
  2958. (e.prototype.update = function () {
  2959. var t = this;
  2960. this.wrapPath &&
  2961. (this.wrapPath.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  2962. this.wrapPath.setAttribute(
  2963. "d",
  2964. "M " +
  2965. this.points
  2966. .map(function (t) {
  2967. return t.x + " " + t.y;
  2968. })
  2969. .join(" L ") +
  2970. " z"
  2971. ),
  2972. this.wrapPath.setAttribute("fill", this.fill),
  2973. this.wrapPath.setAttribute("stroke", this.stroke)),
  2974. this.lines.forEach(function (e) {
  2975. e.real.setAttribute("stroke", t.stroke);
  2976. });
  2977. }),
  2978. (e.prototype.checkWidth = function (t) {
  2979. var e = this;
  2980. return (
  2981. void 0 === t && (t = this.points),
  2982. !t.some(function (i, n) {
  2983. var g = t[n === t.length - 1 ? 0 : n + 1];
  2984. return s.lineDis({ points: [i, g] }) <= e.minWidth;
  2985. })
  2986. );
  2987. }),
  2988. (e.prototype.qualified = function (t, e) {
  2989. void 0 === t && (t = this.points), void 0 === e && (e = this.room);
  2990. var i = this.renderer.processing.getRoomEles(e);
  2991. return (
  2992. !!s.isFaceContain(i.ground, t) &&
  2993. !i.hole.some(function (e) {
  2994. return s.isFaceIntersect(e, t) || s.isFaceContain(e, t) || s.isFaceContain(t, e);
  2995. })
  2996. );
  2997. }),
  2998. (e.prototype.check = function (t) {
  2999. return void 0 === t && (t = this.points), this.checkWidth(t);
  3000. }),
  3001. (e.prototype.intercept = function (t, e, i) {
  3002. e.x, e.y;
  3003. var n = e.angle;
  3004. return !a.type.isNumber(n) || this.rotate(n);
  3005. }),
  3006. (e.prototype.directUpdate = function (t) {
  3007. var e = this;
  3008. t.forEach(function (t, i) {
  3009. (e.points[i].__state.direct = !0), (e.points[i].x = t.x), (e.points[i].y = t.y), (e.points[i].__state.direct = !1), e.points[i].update();
  3010. }),
  3011. this.lines.forEach(function (t) {
  3012. t.update();
  3013. }),
  3014. this.update(),
  3015. this.wallPos && this.wallPos(),
  3016. this.fromAsync && this.fromAsync();
  3017. }),
  3018. (e.prototype.dragStart = function (t) {
  3019. if (
  3020. this.lines.some(function (e) {
  3021. return e.real === t.target;
  3022. })
  3023. ) {
  3024. var e = this.lines.find(function (e) {
  3025. return e.real === t.target;
  3026. });
  3027. this.moveLineDis = s.lineDis(e);
  3028. } else
  3029. this.initPoints = this.points.map(function (t) {
  3030. return { x: t.x, y: t.y };
  3031. });
  3032. }),
  3033. (e.prototype.drag = function (t) {
  3034. var e = this;
  3035. if (this.initPoints) {
  3036. this.stop = !1;
  3037. var i = this.points.map(function (i, n) {
  3038. return { x: e.initPoints[n].x + t.x * e.multiple, y: e.initPoints[n].y + t.y * e.multiple };
  3039. });
  3040. setTimeout(function () {
  3041. e.directUpdate(i);
  3042. });
  3043. }
  3044. }),
  3045. (e.prototype.dragEnd = function () {
  3046. var t = this;
  3047. this.nextTick(function () {
  3048. (t.stop = !0), delete t.moveLineDis;
  3049. }),
  3050. delete this.initPoints;
  3051. }),
  3052. (e.prototype.destroy = function () {
  3053. this.points.forEach(function (t) {
  3054. return t.destroy();
  3055. }),
  3056. (this.room = null),
  3057. (this.points = null),
  3058. (this.update = null),
  3059. t.prototype.destroy.call(this);
  3060. }),
  3061. e
  3062. );
  3063. })(C.CADElement);
  3064. e.default = c;
  3065. },
  3066. function (t, e, i) {
  3067. "use strict";
  3068. var n,
  3069. g =
  3070. (this && this.__extends) ||
  3071. ((n = function (t, e) {
  3072. return (n =
  3073. Object.setPrototypeOf ||
  3074. ({ __proto__: [] } instanceof Array &&
  3075. function (t, e) {
  3076. t.__proto__ = e;
  3077. }) ||
  3078. function (t, e) {
  3079. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  3080. })(t, e);
  3081. }),
  3082. function (t, e) {
  3083. function i() {
  3084. this.constructor = t;
  3085. }
  3086. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  3087. }),
  3088. A =
  3089. (this && this.__assign) ||
  3090. function () {
  3091. return (A =
  3092. Object.assign ||
  3093. function (t) {
  3094. for (var e, i = 1, n = arguments.length; i < n; i++)
  3095. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  3096. return t;
  3097. }).apply(this, arguments);
  3098. },
  3099. r =
  3100. (this && this.__awaiter) ||
  3101. function (t, e, i, n) {
  3102. return new (i || (i = Promise))(function (g, A) {
  3103. function r(t) {
  3104. try {
  3105. C(n.next(t));
  3106. } catch (t) {
  3107. A(t);
  3108. }
  3109. }
  3110. function o(t) {
  3111. try {
  3112. C(n.throw(t));
  3113. } catch (t) {
  3114. A(t);
  3115. }
  3116. }
  3117. function C(t) {
  3118. var e;
  3119. t.done
  3120. ? g(t.value)
  3121. : ((e = t.value),
  3122. e instanceof i
  3123. ? e
  3124. : new i(function (t) {
  3125. t(e);
  3126. })).then(r, o);
  3127. }
  3128. C((n = n.apply(t, e || [])).next());
  3129. });
  3130. },
  3131. o =
  3132. (this && this.__generator) ||
  3133. function (t, e) {
  3134. var i,
  3135. n,
  3136. g,
  3137. A,
  3138. r = {
  3139. label: 0,
  3140. sent: function () {
  3141. if (1 & g[0]) throw g[1];
  3142. return g[1];
  3143. },
  3144. trys: [],
  3145. ops: [],
  3146. };
  3147. return (
  3148. (A = { next: o(0), throw: o(1), return: o(2) }),
  3149. "function" == typeof Symbol &&
  3150. (A[Symbol.iterator] = function () {
  3151. return this;
  3152. }),
  3153. A
  3154. );
  3155. function o(A) {
  3156. return function (o) {
  3157. return (function (A) {
  3158. if (i) throw new TypeError("Generator is already executing.");
  3159. for (; r; )
  3160. try {
  3161. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  3162. return g;
  3163. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  3164. case 0:
  3165. case 1:
  3166. g = A;
  3167. break;
  3168. case 4:
  3169. return r.label++, { value: A[1], done: !1 };
  3170. case 5:
  3171. r.label++, (n = A[1]), (A = [0]);
  3172. continue;
  3173. case 7:
  3174. (A = r.ops.pop()), r.trys.pop();
  3175. continue;
  3176. default:
  3177. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  3178. r = 0;
  3179. continue;
  3180. }
  3181. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  3182. r.label = A[1];
  3183. break;
  3184. }
  3185. if (6 === A[0] && r.label < g[1]) {
  3186. (r.label = g[1]), (g = A);
  3187. break;
  3188. }
  3189. if (g && r.label < g[2]) {
  3190. (r.label = g[2]), r.ops.push(A);
  3191. break;
  3192. }
  3193. g[2] && r.ops.pop(), r.trys.pop();
  3194. continue;
  3195. }
  3196. A = e.call(t, r);
  3197. } catch (t) {
  3198. (A = [6, t]), (n = 0);
  3199. } finally {
  3200. i = g = 0;
  3201. }
  3202. if (5 & A[0]) throw A[1];
  3203. return { value: A[0] ? A[1] : void 0, done: !0 };
  3204. })([A, o]);
  3205. };
  3206. }
  3207. },
  3208. C =
  3209. (this && this.__spreadArrays) ||
  3210. function () {
  3211. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  3212. var n = Array(t),
  3213. g = 0;
  3214. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  3215. return n;
  3216. },
  3217. I =
  3218. (this && this.__importDefault) ||
  3219. function (t) {
  3220. return t && t.__esModule ? t : { default: t };
  3221. };
  3222. Object.defineProperty(e, "__esModule", { value: !0 });
  3223. var s = I(i(33)),
  3224. a = I(i(4)),
  3225. l = I(i(7)),
  3226. u = i(1),
  3227. c = i(0),
  3228. h = (function (t) {
  3229. function e() {
  3230. return (null !== t && t.apply(this, arguments)) || this;
  3231. }
  3232. return (
  3233. g(e, t),
  3234. (e.prototype.setHoverStyle = function () {
  3235. (this.color = this.hover.color), (this.width = this.hover.width), (this.linecap = this.hover.linecap);
  3236. }),
  3237. (e.prototype.setUnHoverStyle = function () {
  3238. (this.color = this.init.color), (this.width = this.init.width), (this.linecap = this.init.linecap);
  3239. }),
  3240. (e.prototype.dragStart = function () {
  3241. (this.clones = []),
  3242. (this.bkpoints = this.points.map(function (t) {
  3243. return { x: t.x, y: t.y };
  3244. })),
  3245. (this.startPoint = this.renderer.screenToRealPoint({ x: 0, y: 0 })),
  3246. (this.bkverctor = c.lineVector(this));
  3247. }),
  3248. (e.prototype.drag = function (t) {
  3249. var e = this.renderer.screenToRealPoint(t);
  3250. this.exterior || this.changePos({ x: e.x - this.startPoint.x, y: e.y - this.startPoint.y });
  3251. }),
  3252. (e.prototype.dragEnd = function () {
  3253. return r(this, void 0, void 0, function () {
  3254. var t,
  3255. e = this;
  3256. return o(this, function (i) {
  3257. return (
  3258. (t = this.renderer.processing).lines.forEach(function (t) {
  3259. t.ele.__state.direct = !1;
  3260. }),
  3261. t.points.forEach(function (t) {
  3262. t.ele.__state.direct = !1;
  3263. }),
  3264. setTimeout(function () {
  3265. e.renderer.processing.depLines();
  3266. }, 500),
  3267. [2]
  3268. );
  3269. });
  3270. });
  3271. }),
  3272. (e.prototype.directUpdate = function (t) {
  3273. this.__state.direct = !0;
  3274. var e = C(this.points);
  3275. e.forEach(function (t) {
  3276. return (t.__state.direct = !0);
  3277. }),
  3278. t(),
  3279. (e = Array.from(new Set(e.concat(this.points)))).forEach(function (t) {
  3280. return (t.__state.direct = !1);
  3281. }),
  3282. (this.__state.direct = !1),
  3283. e.concat(e).forEach(function (t) {
  3284. return t.update();
  3285. }),
  3286. this.wallLines
  3287. .filter(function (t) {
  3288. return t.points.some(function (t) {
  3289. return ~e.indexOf(t);
  3290. });
  3291. })
  3292. .forEach(function (t) {
  3293. t.update(),
  3294. t.points[0].wallPos && t.points[0].wallPos(),
  3295. t.points[1].wallPos && t.points[1].wallPos(),
  3296. t.wallPos && t.wallPos(),
  3297. t.fromAsync && t.fromAsync(),
  3298. t.updateJoin();
  3299. });
  3300. }),
  3301. (e.prototype.grentNewJoinLine = function (t, e) {
  3302. var i,
  3303. n = this,
  3304. g = this.renderer.processing,
  3305. r = g.points.find(function (e) {
  3306. return e.ele === t;
  3307. }),
  3308. o = g.lines.find(function (t) {
  3309. return t.ele === n;
  3310. }),
  3311. I = g.addPoint(
  3312. A(
  3313. {
  3314. id:
  3315. Math.max.apply(
  3316. Math,
  3317. g.points.map(function (t) {
  3318. return t.id;
  3319. })
  3320. ) + 1,
  3321. },
  3322. e
  3323. )
  3324. );
  3325. g.data.vertex.push({ id: I.id, x: e.x, y: e.y });
  3326. var s = o.ele,
  3327. a = C(s.points);
  3328. return (
  3329. (a[s.points.indexOf(t)] = I.ele),
  3330. s.directUpdate(function () {
  3331. (s.points = a), s.listenPointDrag(a);
  3332. }),
  3333. s.update(),
  3334. (i = g.cad.increase(u.SEFTLINE, { id: g.getNewLineId(), p1: I.id, p2: r.id, isOut: s.isOut, border: s.border, exterior: s.exterior }).obj),
  3335. this.wallLines
  3336. .filter(function (t) {
  3337. return ~t.points.indexOf(n.points[0]) || ~t.points.indexOf(n.points[1]);
  3338. })
  3339. .forEach(function (t) {
  3340. t.update(),
  3341. t.points[0].wallPos && t.points[0].wallPos(),
  3342. t.points[1].wallPos && t.points[1].wallPos(),
  3343. t.wallPos && t.wallPos(),
  3344. t.fromAsync && t.fromAsync();
  3345. }),
  3346. i
  3347. );
  3348. }),
  3349. (e.prototype.getPointJoinLines = function (t) {
  3350. for (
  3351. var e = this,
  3352. i = this.wallLines.filter(function (i) {
  3353. return ~i.points.indexOf(t) && !(~e.points.indexOf(i.points[0]) && ~e.points.indexOf(i.points[1]));
  3354. }),
  3355. n = [],
  3356. g = function (t) {
  3357. n.some(function (e) {
  3358. return ~e.points.indexOf(i[t].points[0]) && ~e.points.indexOf(i[t].points[1]);
  3359. }) || n.push(i[t]);
  3360. },
  3361. A = 0;
  3362. A < i.length;
  3363. A++
  3364. )
  3365. g(A);
  3366. return n;
  3367. }),
  3368. (e.prototype.updatePoint = function (t, e, i) {
  3369. var n = this.getPointJoinLines(t),
  3370. g = n[0],
  3371. r = c.lineVector(this),
  3372. o = Number(!this.points.indexOf(t)),
  3373. C = this.points[o],
  3374. I = !1;
  3375. if (g) {
  3376. var s = c.lineVector(g) || g.lineVerctor,
  3377. a = !1;
  3378. isNaN(s.x) && !isNaN(r.x) && (I = !0);
  3379. var l = this.points.indexOf(t),
  3380. u = n.every(function (t) {
  3381. var e = c.lineVector(t);
  3382. return Math.abs(Math.abs(e.x) - Math.abs(s.x)) < 0.2 && Math.abs(Math.abs(e.y) - Math.abs(s.y)) < 0.2;
  3383. }),
  3384. h = (Math.abs(Math.abs(s.x) - Math.abs(r.x)) < 0.2 && Math.abs(Math.abs(s.y) - Math.abs(r.y)) < 0.2) || (n.length > 1 && !u);
  3385. if (!~this.clones.indexOf(l) && (h || I)) {
  3386. if (!I && n.length > 1)
  3387. (g =
  3388. n.find(function (t) {
  3389. var e = c.lineVector(t);
  3390. return e.x - r.x < 0.1 && e.y - r.y < 0.1;
  3391. }) ||
  3392. n.find(function (t) {
  3393. var e = c.lineVector(t),
  3394. i = Math.abs(e.x - r.x),
  3395. n = Math.abs(e.y - r.y);
  3396. return (i > 0.1 && i < 0.9) || (n > 0.1 && n < 0.9);
  3397. }) ||
  3398. n[0]),
  3399. (s = g.lineVector || c.lineVector(g));
  3400. var p = A({}, e);
  3401. Math.abs(r.x) > Math.abs(r.y) ? (p.x = t.x) : (p.y = t.y),
  3402. I && (e = p),
  3403. (p.x === t.x && p.y === t.y) ||
  3404. ((g = this.grentNewJoinLine(t, p.x === t.x && p.y === t.y ? e : p)),
  3405. (a = !0),
  3406. this.clones.push(l),
  3407. (t = g.points[Number(!g.points.indexOf(t))]),
  3408. (s = c.lineVector(g)),
  3409. (g.lineVerctor = s));
  3410. }
  3411. if (
  3412. ((e = c.getVectorPosPoint(s, g.points[0], e)),
  3413. (g.lineVector = s),
  3414. !a && i && !I && (Math.abs(Math.abs(s.x) - Math.abs(r.x)) < 0.9 || Math.abs(Math.abs(s.y) - Math.abs(r.y)) < 0.9))
  3415. ) {
  3416. var d = c.segmentsIntrFine(g, { points: [C, { x: C.x + 1e4 * this.bkverctor.x, y: C.y + 1e4 * this.bkverctor.y }] });
  3417. d && (e = d);
  3418. }
  3419. } else {
  3420. if (this.getPointJoinLines(C).length) {
  3421. var f = this.points.indexOf(t);
  3422. e = { x: this.bkpoints[f].x + this.points[o].x - this.bkpoints[o].x, y: this.bkpoints[f].y + this.points[o].y - this.bkpoints[o].y };
  3423. }
  3424. g = this;
  3425. }
  3426. var y = c.lineVector({ points: [C, e] });
  3427. return (
  3428. !(
  3429. isNaN(e.x) ||
  3430. isNaN(e.y) ||
  3431. (i && (Math.abs(Math.abs(this.bkverctor.x) - Math.abs(y.x)) > 0.05 || Math.abs(Math.abs(this.bkverctor.y) - Math.abs(y.y)) > 0.05))
  3432. ) && ((t.__state.direct = !0), (t.x = e.x), (t.y = e.y), t.update(), (t.__state.direct = !1), g)
  3433. );
  3434. }),
  3435. (e.prototype.getVerPos = function (t) {
  3436. var e = c.verticalLine(this);
  3437. if (0 === e.x) return { x: 0, y: t.y };
  3438. if (0 === e.y) return { x: t.x, y: 0 };
  3439. var i = {
  3440. points: [
  3441. { x: -100 * e.x, y: -100 * e.y },
  3442. { x: 100 * e.x, y: 100 * e.y },
  3443. ],
  3444. },
  3445. n = c.pointLineDis(i, t),
  3446. g = Math.sqrt(Math.pow(t.x, 2) + Math.pow(t.y, 2) - Math.pow(n, 2)),
  3447. A = c.getDisPointLinePoints(i, { x: 0, y: 0 }, g),
  3448. r = A[0],
  3449. o = A[1];
  3450. return c.lineDis({ points: [r, t] }) > c.lineDis({ points: [o, t] }) ? o : r;
  3451. }),
  3452. (e.prototype.checkJoinArch = function () {
  3453. var t = a.default.attaArch.get(this);
  3454. if (!t || 0 === t.length) return !1;
  3455. var e = t.map(function (t) {
  3456. return [t.linePoints[0].getLineInsertPoint(), t.linePoints[1].getLineInsertPoint()];
  3457. });
  3458. return t.some(function (t, i) {
  3459. return !(e[i][0] && e[i][1] && t.qualified(e[i])) || (t instanceof l.default && 0 === t.getPeripheral(e[i].concat(t.points.slice(2))).length);
  3460. });
  3461. }),
  3462. (e.prototype.updateArchs = function () {
  3463. var t = a.default.attaArch.get(this);
  3464. if (t && 0 !== t.length) {
  3465. var e = t.map(function (t) {
  3466. return t.lineChange().points;
  3467. });
  3468. t.forEach(function (t, i) {
  3469. if (
  3470. ((t.__state.direct = !0),
  3471. (t.linePoints[0].__state.direct = !0),
  3472. (t.linePoints[1].__state.direct = !0),
  3473. (t.linePoints[0].x = e[i][0].x),
  3474. (t.linePoints[0].y = e[i][0].y),
  3475. (t.linePoints[1].x = e[i][1].x),
  3476. (t.linePoints[1].y = e[i][1].y),
  3477. t.linePoints[0].update(),
  3478. t.linePoints[1].update(),
  3479. (t.linePoints[0].__state.direct = !1),
  3480. (t.linePoints[1].__state.direct = !1),
  3481. t instanceof l.default)
  3482. ) {
  3483. var n = t.getPeripheral();
  3484. (t.points[2].__state.direct = !0),
  3485. (t.points[3].__state.direct = !0),
  3486. (t.points[2].x = n[0].x),
  3487. (t.points[2].y = n[0].y),
  3488. (t.points[3].x = n[1].x),
  3489. (t.points[3].y = n[1].y),
  3490. t.points[2].update(),
  3491. t.points[3].update(),
  3492. (t.points[2].__state.direct = !1),
  3493. (t.points[3].__state.direct = !1);
  3494. }
  3495. (t.__state.direct = !1), t.dragEnd(), t.update();
  3496. });
  3497. }
  3498. }),
  3499. (e.prototype.changePos = function (t) {
  3500. var e = this;
  3501. (0 === t.x && 0 === t.y) || (t = this.getVerPos(t)),
  3502. this.directUpdate(function () {
  3503. e.points.map(function (t) {
  3504. return { x: t.x, y: t.y };
  3505. });
  3506. var i = [0, 1],
  3507. n = e.getPointJoinLines(e.points[0]),
  3508. g = e.getPointJoinLines(e.points[1]),
  3509. A =
  3510. (e.points.map(function (t) {
  3511. return { x: t.x, y: t.y };
  3512. }),
  3513. !0);
  3514. if (0 === n.length) i = [1, 0];
  3515. else if (0 !== g.length) {
  3516. i = c.getPointCoordDistance(e.bkverctor, c.lineVector(n[0])) > c.getPointCoordDistance(e.bkverctor, c.lineVector(g[0])) ? [0, 1] : [1, 0];
  3517. }
  3518. i.forEach(function (i, n) {
  3519. A && (e.updatePoint(e.points[i], { x: e.bkpoints[i].x + t.x, y: e.bkpoints[i].y + t.y }, !!n) || (A = !1));
  3520. }),
  3521. e.renderer.processing.lines
  3522. .filter(function (t) {
  3523. return ~t.ele.points.indexOf(e.points[0]) || ~t.ele.points.indexOf(e.points[1]);
  3524. })
  3525. .forEach(function (t) {
  3526. t.ele.updateArchs();
  3527. });
  3528. });
  3529. }),
  3530. (e.prototype.correct = function () {
  3531. for (
  3532. var t = this.renderer.processing,
  3533. e = t.points.map(function (t) {
  3534. return t.ele;
  3535. }),
  3536. i = t.lines.map(function (t) {
  3537. return t.ele;
  3538. }),
  3539. n = i.filter(function (t) {
  3540. return ~e.indexOf(t.points[0]) || ~e.indexOf(t.points[1]);
  3541. }),
  3542. g = function (t, e, i) {
  3543. return ~t.points.indexOf(e) && ~t.points.indexOf(i);
  3544. },
  3545. A = function (A) {
  3546. var o = i[A],
  3547. I = e.find(function (t) {
  3548. return !~o.points.indexOf(t) && (c.lineDis({ points: [o.points[0], t] }) < 0.02 || c.lineDis({ points: [o.points[1], t] }) < 0.02);
  3549. });
  3550. if (!I) return "continue";
  3551. var s = 0;
  3552. if (
  3553. i.some(function (t) {
  3554. return g(t, I, o.points[0]);
  3555. })
  3556. )
  3557. s = 0;
  3558. else {
  3559. if (
  3560. !i.some(function (t) {
  3561. return g(t, I, o.points[1]);
  3562. })
  3563. )
  3564. return "continue";
  3565. s = 1;
  3566. }
  3567. var a = o.points[s];
  3568. return (
  3569. n
  3570. .filter(function (t) {
  3571. return ~t.points.indexOf(a);
  3572. })
  3573. .forEach(function (t) {
  3574. var e = t.points.indexOf(a),
  3575. i = t.points,
  3576. n = C(i);
  3577. (n[e] = I),
  3578. t.directUpdate(function () {
  3579. (t.points = n), t.listenPointDrag(n);
  3580. });
  3581. }),
  3582. n
  3583. .filter(function (t) {
  3584. return ~t.points.indexOf(I) && ~t.points.indexOf(a);
  3585. })
  3586. .forEach(function (e) {
  3587. t.lines.splice(
  3588. t.lines.findIndex(function (t) {
  3589. return t.ele === e;
  3590. }),
  3591. 1
  3592. ),
  3593. e.destroy();
  3594. }),
  3595. a.destroy(),
  3596. { value: r.correct() }
  3597. );
  3598. },
  3599. r = this,
  3600. o = 0;
  3601. o < i.length;
  3602. o++
  3603. ) {
  3604. var I = A(o);
  3605. if ("object" == typeof I) return I.value;
  3606. }
  3607. }),
  3608. e
  3609. );
  3610. })(s.default);
  3611. e.default = h;
  3612. },
  3613. function (t, e, i) {
  3614. "use strict";
  3615. var n,
  3616. g =
  3617. (this && this.__extends) ||
  3618. ((n = function (t, e) {
  3619. return (n =
  3620. Object.setPrototypeOf ||
  3621. ({ __proto__: [] } instanceof Array &&
  3622. function (t, e) {
  3623. t.__proto__ = e;
  3624. }) ||
  3625. function (t, e) {
  3626. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  3627. })(t, e);
  3628. }),
  3629. function (t, e) {
  3630. function i() {
  3631. this.constructor = t;
  3632. }
  3633. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  3634. }),
  3635. A =
  3636. (this && this.__assign) ||
  3637. function () {
  3638. return (A =
  3639. Object.assign ||
  3640. function (t) {
  3641. for (var e, i = 1, n = arguments.length; i < n; i++)
  3642. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  3643. return t;
  3644. }).apply(this, arguments);
  3645. },
  3646. r =
  3647. (this && this.__rest) ||
  3648. function (t, e) {
  3649. var i = {};
  3650. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  3651. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  3652. var g = 0;
  3653. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  3654. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  3655. }
  3656. return i;
  3657. },
  3658. o =
  3659. (this && this.__importDefault) ||
  3660. function (t) {
  3661. return t && t.__esModule ? t : { default: t };
  3662. };
  3663. Object.defineProperty(e, "__esModule", { value: !0 });
  3664. var C = o(i(8)),
  3665. I = i(1),
  3666. s = i(0),
  3667. a = (function (t) {
  3668. function e(e) {
  3669. var i = e.points,
  3670. n = e.foorWidth,
  3671. g = void 0 === n ? 6 : n,
  3672. o = e.foorColor,
  3673. C = void 0 === o ? "rgba(255,255,255,0.5)" : o,
  3674. I = e.clipColor,
  3675. s = void 0 === I ? "rgba(0,0,0,1)" : I,
  3676. a = (e.linecap, e.within),
  3677. l = void 0 === a ? 0 : a,
  3678. u = r(e, ["points", "foorWidth", "foorColor", "clipColor", "linecap", "within"]),
  3679. c = this;
  3680. return (
  3681. (i[0].fillColor = "rgba(0,0,0,0)"),
  3682. (i[1].fillColor = "rgba(0,0,0,0)"),
  3683. ((c = t.call(this, A(A({}, u), { points: i, foorWidth: g, foorColor: C, within: l })) || this).clipColor = s),
  3684. c
  3685. );
  3686. }
  3687. return (
  3688. g(e, t),
  3689. (e.prototype.setHoverStyle = function () {
  3690. (this.clipColor = "rgba(243, 255, 0, 0.8)"), (this.foorColor = "rgba(243, 255, 0, 0.8)");
  3691. }),
  3692. (e.prototype.setUnHoverStyle = function () {
  3693. (this.clipColor = "rgba(0,0,0,1)"), (this.foorColor = "rgba(255,255,255,0.5)");
  3694. }),
  3695. (e.prototype.grentNode = function () {
  3696. var t = this,
  3697. e = document.createElementNS(I.SVGURI, "g");
  3698. return (
  3699. (this.clip1 = document.createElementNS(I.SVGURI, "path")),
  3700. e.appendChild(this.clip1),
  3701. (this.clip2 = document.createElementNS(I.SVGURI, "path")),
  3702. e.appendChild(this.clip2),
  3703. (this.path1 = document.createElementNS(I.SVGURI, "path")),
  3704. e.appendChild(this.path1),
  3705. (this.path2 = document.createElementNS(I.SVGURI, "path")),
  3706. e.appendChild(this.path2),
  3707. (this.left = document.createElementNS(I.SVGURI, "rect")),
  3708. this.left.setAttribute("width", "0.00001"),
  3709. this.left.setAttribute("height", "0.00001"),
  3710. e.appendChild(this.left),
  3711. (this.right = document.createElementNS(I.SVGURI, "rect")),
  3712. this.right.setAttribute("width", "0.00001"),
  3713. this.right.setAttribute("height", "0.00001"),
  3714. e.appendChild(this.right),
  3715. this.nextTick(function () {
  3716. e.appendChild(t.linePoints[0].real),
  3717. e.appendChild(t.linePoints[1].real),
  3718. t.linePoints.forEach(function (e) {
  3719. e.changeSelect = function (e) {
  3720. e && t.changeSelect(e);
  3721. };
  3722. });
  3723. }),
  3724. e
  3725. );
  3726. }),
  3727. (e.prototype.update = function () {
  3728. var t,
  3729. e,
  3730. i,
  3731. n,
  3732. g = this.foorWidth * this.multiple,
  3733. A = s.lineDis({ points: this.linePoints }),
  3734. r = 2 * this.multiple,
  3735. o = 0.6 * A;
  3736. if ((this.within ? ((i = (t = this.linePoints)[0]), (n = t[1])) : ((n = (e = this.linePoints)[0]), (i = e[1])), !isNaN(i.x))) {
  3737. var C = s.getLineDisSelectPoint({ points: this.linePoints }, i, o),
  3738. I = s.getLineDisSelectPoint({ points: this.linePoints }, i, o - r),
  3739. a = s.getLineDisSelectPoint({ points: this.linePoints }, n, o),
  3740. l = s.getLineDisSelectPoint({ points: this.linePoints }, n, o - r),
  3741. u = s.verticalLine({ points: this.linePoints }),
  3742. c = g / 2,
  3743. h = (g - c) / 2 - 1e-4 * this.multiple,
  3744. p = i.x + u.x * h,
  3745. d = i.y + u.y * h,
  3746. f = C.x + u.x * h,
  3747. y = C.y + u.y * h,
  3748. v = I.x + u.x * h,
  3749. m = I.y + u.y * h,
  3750. b = n.x - u.x * h,
  3751. x = n.y - u.y * h,
  3752. _ = a.x - u.x * h,
  3753. w = a.y - u.y * h,
  3754. P = l.x - u.x * h,
  3755. O = l.y - u.y * h;
  3756. this.path1.setAttribute("stroke", this.foorColor),
  3757. this.path1.setAttribute("stroke-width", c.toString()),
  3758. this.path1.setAttribute("d", "M " + p + " " + d + " L " + f + " " + y),
  3759. this.clip1.setAttribute("stroke", this.clipColor),
  3760. this.clip1.setAttribute("stroke-width", (c - this.bwithin * this.multiple).toString()),
  3761. this.clip1.setAttribute("d", "M " + p + " " + d + " L " + v + " " + m),
  3762. this.path2.setAttribute("stroke", this.foorColor),
  3763. this.path2.setAttribute("stroke-width", c.toString()),
  3764. this.path2.setAttribute("d", "M " + b + " " + x + " L " + _ + " " + w),
  3765. this.clip2.setAttribute("stroke", this.clipColor),
  3766. this.clip2.setAttribute("stroke-width", (c - this.bwithin * this.multiple).toString()),
  3767. this.clip2.setAttribute("d", "M " + b + " " + x + " L " + P + " " + O),
  3768. this.left.setAttribute("x", i.x.toString()),
  3769. this.left.setAttribute("y", i.y.toString()),
  3770. this.left.setAttribute("stroke-width", g.toString()),
  3771. this.left.setAttribute("stroke", "rgba(0,0,0,0)"),
  3772. this.right.setAttribute("x", n.x.toString()),
  3773. this.right.setAttribute("y", n.y.toString()),
  3774. this.right.setAttribute("stroke-width", g.toString()),
  3775. this.right.setAttribute("stroke", "rgba(0,0,0,0)"),
  3776. this.attachment.update();
  3777. }
  3778. }),
  3779. e
  3780. );
  3781. })(C.default);
  3782. e.default = a;
  3783. },
  3784. function (t, e, i) {
  3785. "use strict";
  3786. var n,
  3787. g =
  3788. (this && this.__extends) ||
  3789. ((n = function (t, e) {
  3790. return (n =
  3791. Object.setPrototypeOf ||
  3792. ({ __proto__: [] } instanceof Array &&
  3793. function (t, e) {
  3794. t.__proto__ = e;
  3795. }) ||
  3796. function (t, e) {
  3797. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  3798. })(t, e);
  3799. }),
  3800. function (t, e) {
  3801. function i() {
  3802. this.constructor = t;
  3803. }
  3804. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  3805. }),
  3806. A =
  3807. (this && this.__importDefault) ||
  3808. function (t) {
  3809. return t && t.__esModule ? t : { default: t };
  3810. };
  3811. Object.defineProperty(e, "__esModule", { value: !0 });
  3812. var r = A(i(8)),
  3813. o = i(1),
  3814. C = i(0),
  3815. I = (function (t) {
  3816. function e(e) {
  3817. return t.call(this, e) || this;
  3818. }
  3819. return (
  3820. g(e, t),
  3821. (e.prototype.grentNode = function () {
  3822. var t = this,
  3823. e = document.createElementNS(o.SVGURI, "g");
  3824. return (
  3825. (this.arc1 = document.createElementNS(o.SVGURI, "path")),
  3826. (this.outLine1 = document.createElementNS(o.SVGURI, "path")),
  3827. (this.arc2 = document.createElementNS(o.SVGURI, "path")),
  3828. (this.outLine2 = document.createElementNS(o.SVGURI, "path")),
  3829. e.appendChild(this.outLine1),
  3830. e.appendChild(this.arc1),
  3831. e.appendChild(this.outLine2),
  3832. e.appendChild(this.arc2),
  3833. this.nextTick(function () {
  3834. e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real);
  3835. }),
  3836. e
  3837. );
  3838. }),
  3839. (e.prototype.update = function () {
  3840. var t;
  3841. this.real.style.display = this.show ? "initial" : "none";
  3842. var e = C.lineCenter({ points: this.linePoints }),
  3843. i = this.getDrawArgs.call({ linePoints: [this.linePoints[0], e], within: 1 === this.within ? 2 : this.within, attachment: this.attachment }),
  3844. n = i[0],
  3845. g = i[1],
  3846. A = i[2],
  3847. r = i[3],
  3848. o = i[4];
  3849. isNaN(A.x)
  3850. ? this.destroy()
  3851. : (this.arc1.setAttribute(
  3852. "d",
  3853. "M " + n.x + " " + n.y + " L " + A.x + " " + A.y + " A " + r + " " + r + " 0 0 " + (o ? "1" : "0") + " " + g.x + " " + g.y + " Z"
  3854. ),
  3855. this.arc1.setAttribute("stroke-width", (this.outWidth * this.multiple).toString()),
  3856. this.arc1.setAttribute("stroke", this.stroke),
  3857. this.arc1.setAttribute("fill", this.fill),
  3858. this.outLine1.setAttribute("stroke", this.foorColor),
  3859. this.outLine1.setAttribute("fill", this.fill),
  3860. this.outLine1.setAttribute("stroke-width", (this.foorWidth * this.multiple).toString()),
  3861. this.outLine1.setAttribute("stroke-linecap", this.linecap),
  3862. this.outLine1.setAttribute(
  3863. "d",
  3864. "M " + this.linePoints[0].x + " " + this.linePoints[0].y + " L " + this.linePoints[1].x + " " + this.linePoints[1].y
  3865. ),
  3866. (n = (t = this.getDrawArgs.call({
  3867. linePoints: [this.linePoints[1], e],
  3868. within: 1 === this.within ? 2 : this.within,
  3869. attachment: this.attachment,
  3870. }))[0]),
  3871. (g = t[1]),
  3872. (A = t[2]),
  3873. (r = t[3]),
  3874. (o = t[4]),
  3875. isNaN(A.x)
  3876. ? this.destroy()
  3877. : (this.arc2.setAttribute(
  3878. "d",
  3879. "M " + n.x + " " + n.y + " L " + A.x + " " + A.y + " A " + r + " " + r + " 0 0 " + (o ? "1" : "0") + " " + g.x + " " + g.y + " Z"
  3880. ),
  3881. this.arc2.setAttribute("stroke-width", (this.outWidth * this.multiple).toString()),
  3882. this.arc2.setAttribute("stroke", this.stroke),
  3883. this.arc2.setAttribute("fill", this.fill),
  3884. this.outLine2.setAttribute("stroke", this.foorColor),
  3885. this.outLine2.setAttribute("fill", this.fill),
  3886. this.outLine2.setAttribute("stroke-width", (this.foorWidth * this.multiple).toString()),
  3887. this.outLine2.setAttribute("stroke-linecap", this.linecap),
  3888. this.outLine2.setAttribute(
  3889. "d",
  3890. "M " + this.linePoints[0].x + " " + this.linePoints[0].y + " L " + this.linePoints[1].x + " " + this.linePoints[1].y
  3891. ),
  3892. this.attachment.update()));
  3893. }),
  3894. e
  3895. );
  3896. })(r.default);
  3897. e.default = I;
  3898. },
  3899. function (t, e, i) {
  3900. "use strict";
  3901. var n,
  3902. g =
  3903. (this && this.__extends) ||
  3904. ((n = function (t, e) {
  3905. return (n =
  3906. Object.setPrototypeOf ||
  3907. ({ __proto__: [] } instanceof Array &&
  3908. function (t, e) {
  3909. t.__proto__ = e;
  3910. }) ||
  3911. function (t, e) {
  3912. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  3913. })(t, e);
  3914. }),
  3915. function (t, e) {
  3916. function i() {
  3917. this.constructor = t;
  3918. }
  3919. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  3920. }),
  3921. A =
  3922. (this && this.__importDefault) ||
  3923. function (t) {
  3924. return t && t.__esModule ? t : { default: t };
  3925. };
  3926. Object.defineProperty(e, "__esModule", { value: !0 });
  3927. var r = A(i(13)),
  3928. o = i(1),
  3929. C = (function (t) {
  3930. function e() {
  3931. return (null !== t && t.apply(this, arguments)) || this;
  3932. }
  3933. return (
  3934. g(e, t),
  3935. (e.prototype.grentNode = function () {
  3936. var e = t.prototype.grentNode.call(this);
  3937. return (
  3938. (this.path1 = document.createElementNS(o.SVGURI, "path")),
  3939. (this.path2 = document.createElementNS(o.SVGURI, "path")),
  3940. this.path1.setAttribute("stroke", this.stroke),
  3941. this.path2.setAttribute("stroke", this.stroke),
  3942. e.insertBefore(this.path1, e.childNodes[0]),
  3943. e.insertBefore(this.path2, e.childNodes[0]),
  3944. e
  3945. );
  3946. }),
  3947. (e.prototype.update = function () {
  3948. t.prototype.update.call(this),
  3949. this.path1.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  3950. this.path2.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  3951. this.path1.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[2].x + " " + this.points[2].y),
  3952. this.path2.setAttribute("d", "M " + this.points[1].x + " " + this.points[1].y + " L " + this.points[3].x + " " + this.points[3].y),
  3953. this.path1.setAttribute("stroke", this.stroke),
  3954. this.path2.setAttribute("stroke", this.stroke);
  3955. }),
  3956. e
  3957. );
  3958. })(r.default);
  3959. e.default = C;
  3960. },
  3961. function (t, e, i) {
  3962. "use strict";
  3963. var n,
  3964. g =
  3965. (this && this.__extends) ||
  3966. ((n = function (t, e) {
  3967. return (n =
  3968. Object.setPrototypeOf ||
  3969. ({ __proto__: [] } instanceof Array &&
  3970. function (t, e) {
  3971. t.__proto__ = e;
  3972. }) ||
  3973. function (t, e) {
  3974. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  3975. })(t, e);
  3976. }),
  3977. function (t, e) {
  3978. function i() {
  3979. this.constructor = t;
  3980. }
  3981. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  3982. }),
  3983. A =
  3984. (this && this.__importDefault) ||
  3985. function (t) {
  3986. return t && t.__esModule ? t : { default: t };
  3987. };
  3988. Object.defineProperty(e, "__esModule", { value: !0 });
  3989. var r = A(i(13)),
  3990. o = i(1),
  3991. C = i(0),
  3992. I = (function (t) {
  3993. function e() {
  3994. return (null !== t && t.apply(this, arguments)) || this;
  3995. }
  3996. return (
  3997. g(e, t),
  3998. (e.prototype.grentNode = function () {
  3999. var e = t.prototype.grentNode.call(this);
  4000. return (
  4001. (this.g = document.createElementNS(o.SVGURI, "g")),
  4002. (this.path1 = document.createElementNS(o.SVGURI, "path")),
  4003. (this.path2 = document.createElementNS(o.SVGURI, "path")),
  4004. this.path1.setAttribute("stroke", this.stroke),
  4005. this.path1.setAttribute("fill", "rgba(0,0,0,0)"),
  4006. this.path2.setAttribute("stroke", this.stroke),
  4007. this.path2.setAttribute("fill", "rgba(0,0,0,0)"),
  4008. this.g.appendChild(this.path1),
  4009. this.g.appendChild(this.path2),
  4010. e.insertBefore(this.g, e.children[0]),
  4011. e
  4012. );
  4013. }),
  4014. (e.prototype.update = function () {
  4015. t.prototype.update.call(this);
  4016. var e = C.faceCenter(this.points),
  4017. i = C.lineDis({ points: [this.points[1], this.points[2]] }) / this.multiple,
  4018. n = C.lineDis({ points: [this.points[2], this.points[3]] }) / this.multiple,
  4019. g = (n - 5 * this.width) / n,
  4020. A = (i - 5 * this.width) / i;
  4021. (g = g <= 0 ? 1 : g),
  4022. (A = A <= 0 ? 1 : A),
  4023. this.g.setAttribute("transform", "translate(" + e.x + "," + e.y + ") scale(" + (g < A ? A : g) + ") translate(" + -e.x + "," + -e.y + ")"),
  4024. this.path1.setAttribute("stroke-width", ((this.width * this.multiple) / (g < A ? A : g)).toString()),
  4025. this.path1.setAttribute(
  4026. "d",
  4027. "M " +
  4028. this.points
  4029. .map(function (t) {
  4030. return t.x + " " + t.y;
  4031. })
  4032. .join(" L ") +
  4033. " Z"
  4034. ),
  4035. this.path2.setAttribute("stroke", this.stroke);
  4036. var r = this.points[2],
  4037. o = { points: [this.points[1], this.points[3]] },
  4038. I = C.lineCenter(o),
  4039. s = C.lineDis({ points: [I, r] }) * (1 / 3),
  4040. a = C.getDisVerticalLinePoints(o, I, s),
  4041. l = a[0],
  4042. u = a[1],
  4043. c = C.lineDis({ points: [r, l] }) > C.lineDis({ points: [r, u] }) ? u : l;
  4044. C.pointInside(this.points, c) || (c = C.lineCenter(o)),
  4045. this.path2.setAttribute("stroke", this.stroke),
  4046. this.path2.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  4047. this.path2.setAttribute(
  4048. "d",
  4049. "M " + this.points[1].x + " " + this.points[1].y + " L " + c.x + " " + c.y + " L " + this.points[3].x + " " + this.points[3].y
  4050. );
  4051. }),
  4052. e
  4053. );
  4054. })(r.default);
  4055. e.default = I;
  4056. },
  4057. function (t, e, i) {
  4058. "use strict";
  4059. var n,
  4060. g =
  4061. (this && this.__extends) ||
  4062. ((n = function (t, e) {
  4063. return (n =
  4064. Object.setPrototypeOf ||
  4065. ({ __proto__: [] } instanceof Array &&
  4066. function (t, e) {
  4067. t.__proto__ = e;
  4068. }) ||
  4069. function (t, e) {
  4070. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  4071. })(t, e);
  4072. }),
  4073. function (t, e) {
  4074. function i() {
  4075. this.constructor = t;
  4076. }
  4077. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  4078. }),
  4079. A =
  4080. (this && this.__assign) ||
  4081. function () {
  4082. return (A =
  4083. Object.assign ||
  4084. function (t) {
  4085. for (var e, i = 1, n = arguments.length; i < n; i++)
  4086. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  4087. return t;
  4088. }).apply(this, arguments);
  4089. },
  4090. r =
  4091. (this && this.__rest) ||
  4092. function (t, e) {
  4093. var i = {};
  4094. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  4095. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  4096. var g = 0;
  4097. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  4098. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  4099. }
  4100. return i;
  4101. };
  4102. Object.defineProperty(e, "__esModule", { value: !0 });
  4103. var o = i(2),
  4104. C = i(1),
  4105. I = i(9),
  4106. s = (function (t) {
  4107. function e(e) {
  4108. var i = e.pos,
  4109. n = e.renderer,
  4110. g = e.fontSize,
  4111. o = void 0 === g ? 12 : g,
  4112. C = e.color,
  4113. I = void 0 === C ? "#fff" : C,
  4114. s = r(e, ["pos", "renderer", "fontSize", "color"]),
  4115. a = t.call(this, A(A({}, s), { x: i.x, y: i.y, fontSize: o, renderer: n, color: I })) || this;
  4116. return (a.zIndex = -1), a;
  4117. }
  4118. return (
  4119. g(e, t),
  4120. (e.prototype.changeSelect = function (e) {
  4121. t.prototype.changeSelect.call(this, e);
  4122. }),
  4123. (e.prototype.dragStart = function () {
  4124. this.dragStartPoint = { x: this.x, y: this.y };
  4125. }),
  4126. (e.prototype.drag = function (t) {
  4127. (this.x = this.dragStartPoint.x + t.x * this.multiple), (this.y = this.dragStartPoint.y + t.y * this.multiple);
  4128. }),
  4129. (e.prototype.grentNode = function () {
  4130. var t = this,
  4131. e = document.createElementNS(C.SVGURI, "g");
  4132. return (
  4133. (this.titleNode = document.createElementNS(C.SVGURI, "text")),
  4134. this.titleNode.setAttribute("fill", "#fff"),
  4135. this.titleNode.setAttribute("text-anchor", "middle"),
  4136. this.titleNode.setAttribute("dy", ".4em"),
  4137. (this.contentNode = document.createElementNS(C.SVGURI, "text")),
  4138. this.contentNode.setAttribute("fill", "#fff"),
  4139. this.contentNode.setAttribute("text-anchor", "middle"),
  4140. this.contentNode.setAttribute("dy", ".4em"),
  4141. e.appendChild(this.titleNode),
  4142. e.appendChild(this.contentNode),
  4143. this.nextTick(function () {
  4144. return t.update();
  4145. }),
  4146. e
  4147. );
  4148. }),
  4149. (e.prototype.setHoverStyle = function () {}),
  4150. (e.prototype.setUnHoverStyle = function () {}),
  4151. (e.prototype.update = function () {
  4152. var t = this.fontSize * this.multiple;
  4153. this.titleNode.setAttribute("x", this.x.toString()),
  4154. this.titleNode.setAttribute("y", this.y.toString()),
  4155. this.titleNode.setAttribute("font-size", t.toString()),
  4156. (this.titleNode.style.display = this.show && this.showTitle ? "inherit" : "none"),
  4157. (this.titleNode.textContent = this.title || I.i18n.t("modules.model.tagging_name_tips")),
  4158. this.contentNode.setAttribute("x", this.x.toString()),
  4159. this.contentNode.setAttribute("y", (this.y + t + t / 5).toString()),
  4160. this.contentNode.setAttribute("font-size", t.toString()),
  4161. (this.contentNode.style.display = this.show && this.showContent ? "inherit" : "none"),
  4162. (this.contentNode.textContent = this.content),
  4163. this.select
  4164. ? (this.titleNode.setAttribute("fill", "rgb(0, 200, 175)"), this.contentNode.setAttribute("fill", "rgb(0, 200, 175)"))
  4165. : (this.titleNode.setAttribute("fill", this.color), this.contentNode.setAttribute("fill", this.color));
  4166. }),
  4167. (e.prototype.destroy = function () {
  4168. t.prototype.destroy.call(this);
  4169. }),
  4170. e
  4171. );
  4172. })(o.CADElement);
  4173. e.default = s;
  4174. },
  4175. function (t, e, i) {
  4176. "use strict";
  4177. var n,
  4178. g =
  4179. (this && this.__extends) ||
  4180. ((n = function (t, e) {
  4181. return (n =
  4182. Object.setPrototypeOf ||
  4183. ({ __proto__: [] } instanceof Array &&
  4184. function (t, e) {
  4185. t.__proto__ = e;
  4186. }) ||
  4187. function (t, e) {
  4188. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  4189. })(t, e);
  4190. }),
  4191. function (t, e) {
  4192. function i() {
  4193. this.constructor = t;
  4194. }
  4195. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  4196. }),
  4197. A =
  4198. (this && this.__assign) ||
  4199. function () {
  4200. return (A =
  4201. Object.assign ||
  4202. function (t) {
  4203. for (var e, i = 1, n = arguments.length; i < n; i++)
  4204. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  4205. return t;
  4206. }).apply(this, arguments);
  4207. },
  4208. r =
  4209. (this && this.__rest) ||
  4210. function (t, e) {
  4211. var i = {};
  4212. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  4213. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  4214. var g = 0;
  4215. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  4216. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  4217. }
  4218. return i;
  4219. },
  4220. o =
  4221. (this && this.__importDefault) ||
  4222. function (t) {
  4223. return t && t.__esModule ? t : { default: t };
  4224. };
  4225. Object.defineProperty(e, "__esModule", { value: !0 });
  4226. var C = i(1),
  4227. I = o(i(4)),
  4228. s = i(0),
  4229. a = (function (t) {
  4230. function e(e) {
  4231. var i = e.points,
  4232. n = e.width,
  4233. g = void 0 === n ? 3 : n,
  4234. o = r(e, ["points", "width"]);
  4235. return t.call(this, A({ linePoints: i, fill: "rgba(255,255,255,0.5)", width: g }, o)) || this;
  4236. }
  4237. return (
  4238. g(e, t),
  4239. (e.prototype.grentNode = function () {
  4240. var t = this,
  4241. e = document.createElementNS(C.SVGURI, "g");
  4242. return (
  4243. (this.clip1 = document.createElementNS(C.SVGURI, "path")),
  4244. (this.clip2 = document.createElementNS(C.SVGURI, "path")),
  4245. (this.clip3 = document.createElementNS(C.SVGURI, "path")),
  4246. (this.clip4 = document.createElementNS(C.SVGURI, "path")),
  4247. (this.clip5 = document.createElementNS(C.SVGURI, "path")),
  4248. this.clip1.setAttribute("stroke", this.fill),
  4249. this.clip2.setAttribute("stroke", this.fill),
  4250. this.clip3.setAttribute("stroke", this.fill),
  4251. this.clip4.setAttribute("stroke", this.fill),
  4252. this.clip5.setAttribute("stroke", this.fill),
  4253. e.appendChild(this.clip1),
  4254. e.appendChild(this.clip2),
  4255. e.appendChild(this.clip3),
  4256. e.appendChild(this.clip4),
  4257. e.appendChild(this.clip5),
  4258. this.nextTick(function () {
  4259. e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real);
  4260. }),
  4261. e
  4262. );
  4263. }),
  4264. (e.prototype.setHoverStyle = function () {
  4265. this.fill = "rgba(243, 255, 0, 0.8)";
  4266. }),
  4267. (e.prototype.setUnHoverStyle = function () {
  4268. this.fill = "rgba(255,255,255,0.5)";
  4269. }),
  4270. (e.prototype.update = function () {
  4271. var t = s.getDisVerticalLinePoints(this.attachment, this.linePoints[0], 0.4 * this.width * this.multiple),
  4272. e = t[0],
  4273. i = t[1],
  4274. n = s.getDisVerticalLinePoints(this.attachment, this.linePoints[1], 0.4 * this.width * this.multiple),
  4275. g = n[0],
  4276. A = n[1],
  4277. r = s.getDisVerticalLinePoints(this.attachment, this.linePoints[0], 0.15 * this.width * this.multiple),
  4278. o = r[0],
  4279. C = r[1],
  4280. I = s.getDisVerticalLinePoints(this.attachment, this.linePoints[1], 0.15 * this.width * this.multiple),
  4281. a = I[0],
  4282. l = I[1],
  4283. u = s.lineCenter({ points: [o, a] }),
  4284. c = s.lineCenter({ points: [C, l] });
  4285. isNaN(e.x) ||
  4286. (this.clip1.setAttribute("stroke-width", this.multiple.toString()),
  4287. this.clip1.setAttribute("d", "M " + e.x + " " + e.y + " L " + g.x + " " + g.y),
  4288. this.clip2.setAttribute("stroke-width", this.multiple.toString()),
  4289. this.clip2.setAttribute("d", "M " + i.x + " " + i.y + " L " + A.x + " " + A.y),
  4290. this.clip3.setAttribute("stroke-width", this.multiple.toString()),
  4291. this.clip3.setAttribute("d", "M " + o.x + " " + o.y + " L " + a.x + " " + a.y),
  4292. this.clip4.setAttribute("stroke-width", this.multiple.toString()),
  4293. this.clip4.setAttribute("d", "M " + C.x + " " + C.y + " L " + l.x + " " + l.y),
  4294. this.clip5.setAttribute("stroke-width", (6 * this.multiple).toString()),
  4295. this.clip5.setAttribute("d", "M " + u.x + " " + u.y + " L " + c.x + " " + c.y),
  4296. this.clip1.setAttribute("stroke", this.fill),
  4297. this.clip2.setAttribute("stroke", this.fill),
  4298. this.clip3.setAttribute("stroke", this.fill),
  4299. this.clip4.setAttribute("stroke", this.fill),
  4300. this.clip5.setAttribute("stroke", this.fill),
  4301. this.attachment.update());
  4302. }),
  4303. (e.prototype.dragStart = function (t) {
  4304. (this.move = this.linePoints[0].real === t.target || this.linePoints[1].real === t.target),
  4305. (this.dragStartPoints = this.linePoints.map(function (t) {
  4306. return { x: t.x, y: t.y };
  4307. }));
  4308. }),
  4309. (e.prototype.drag = function (t) {
  4310. var e = this;
  4311. this.move ||
  4312. this.linePoints.forEach(function (i, n) {
  4313. (i.x = e.dragStartPoints[n].x + t.x * e.multiple), (i.y = e.dragStartPoints[n].y + t.y * e.multiple);
  4314. });
  4315. }),
  4316. (e.prototype.dragEnd = function () {
  4317. (this.move = !1), delete this.dragStartPoints;
  4318. }),
  4319. e
  4320. );
  4321. })(I.default);
  4322. e.default = a;
  4323. },
  4324. function (t, e, i) {
  4325. "use strict";
  4326. var n,
  4327. g =
  4328. (this && this.__extends) ||
  4329. ((n = function (t, e) {
  4330. return (n =
  4331. Object.setPrototypeOf ||
  4332. ({ __proto__: [] } instanceof Array &&
  4333. function (t, e) {
  4334. t.__proto__ = e;
  4335. }) ||
  4336. function (t, e) {
  4337. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  4338. })(t, e);
  4339. }),
  4340. function (t, e) {
  4341. function i() {
  4342. this.constructor = t;
  4343. }
  4344. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  4345. }),
  4346. A =
  4347. (this && this.__assign) ||
  4348. function () {
  4349. return (A =
  4350. Object.assign ||
  4351. function (t) {
  4352. for (var e, i = 1, n = arguments.length; i < n; i++)
  4353. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  4354. return t;
  4355. }).apply(this, arguments);
  4356. },
  4357. r =
  4358. (this && this.__rest) ||
  4359. function (t, e) {
  4360. var i = {};
  4361. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  4362. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  4363. var g = 0;
  4364. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  4365. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  4366. }
  4367. return i;
  4368. },
  4369. o =
  4370. (this && this.__importDefault) ||
  4371. function (t) {
  4372. return t && t.__esModule ? t : { default: t };
  4373. };
  4374. Object.defineProperty(e, "__esModule", { value: !0 });
  4375. var C = i(1),
  4376. I = o(i(4)),
  4377. s = i(0),
  4378. a = (function (t) {
  4379. function e(e) {
  4380. var i = e.points,
  4381. n = e.within,
  4382. g = void 0 === n ? 0 : n,
  4383. o = e.width,
  4384. C = void 0 === o ? 1 : o,
  4385. I = r(e, ["points", "within", "width"]);
  4386. return (
  4387. (i[0].fillColor = "rgba(0,0,0,0)"),
  4388. (i[1].fillColor = "rgba(0,0,0,0)"),
  4389. t.call(this, A({ linePoints: i, fill: "rgba(243, 255, 0, 0)", stroke: "rgba(255,255,255,0.5)", within: g, width: C }, I)) || this
  4390. );
  4391. }
  4392. return (
  4393. g(e, t),
  4394. (e.prototype.grentNode = function () {
  4395. var t = this,
  4396. e = document.createElementNS(C.SVGURI, "g");
  4397. return (
  4398. (e.innerHTML =
  4399. '\n <path class="ground-case-out" stroke="' +
  4400. this.stroke +
  4401. '" fill="rgba(0,0,0,0)"/>\n <path class="ground-case-in" stroke="' +
  4402. this.stroke +
  4403. '" fill="rgba(0,0,0,0)" />\n <rect width="0.00001" height="0.00001" class="ground-case-left" stroke="rgba(255,255,255,0)" />\n <rect width="0.00001" height="0.00001" class="ground-case-right" stroke="rgba(255,255,255,0)" />\n '),
  4404. (this.out = e.querySelector(".ground-case-out")),
  4405. (this.in = e.querySelector(".ground-case-in")),
  4406. (this.left = e.querySelector(".ground-case-left")),
  4407. (this.right = e.querySelector(".ground-case-right")),
  4408. this.nextTick(function () {
  4409. e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real);
  4410. }),
  4411. e
  4412. );
  4413. }),
  4414. (e.prototype.setHoverStyle = function () {
  4415. this.fill = "rgba(243, 255, 0, 0.8)";
  4416. }),
  4417. (e.prototype.setUnHoverStyle = function () {
  4418. this.fill = "rgba(0,0,0,0)";
  4419. }),
  4420. (e.prototype.getOutInPath = function (t, e, i, n, g, A, r) {
  4421. var o = this;
  4422. void 0 === A && (A = 0), void 0 === r && (r = 0);
  4423. var C,
  4424. I = i,
  4425. a = s.getDisVerticalLinePoints(this.attachment, t, I),
  4426. l = s.getDisVerticalLinePoints(this.attachment, e, I),
  4427. u = { x: 0, y: 0 },
  4428. c = s.lineDis({ points: [a[0], u] }) < s.lineDis({ points: [a[1], u] }),
  4429. h = this.within ? (c ? a[1] : a[0]) : c ? a[0] : a[1];
  4430. h
  4431. ? (C = l[a.indexOf(h)])
  4432. : (C = this.within
  4433. ? l.find(function (t) {
  4434. return o.rooms.find(function (e) {
  4435. return !s.pointInside(e, t);
  4436. });
  4437. })
  4438. : l.find(function (t) {
  4439. return o.rooms.find(function (e) {
  4440. return s.pointInside(e, t);
  4441. });
  4442. }))
  4443. ? (h = a[l.indexOf(C)])
  4444. : ((h = a[0]), (C = l[0])),
  4445. (A = A || h),
  4446. (r = r || C);
  4447. var p = s.getDisVerticalLinePoints(this.attachment, t, g).sort(function (t, e) {
  4448. return s.lineDis({ points: [A, t] }) - s.lineDis({ points: [A, e] });
  4449. })[1];
  4450. return [
  4451. h,
  4452. C,
  4453. s.getDisVerticalLinePoints(this.attachment, e, g).sort(function (t, e) {
  4454. return s.lineDis({ points: [r, t] }) - s.lineDis({ points: [r, e] });
  4455. })[1],
  4456. p,
  4457. h,
  4458. ];
  4459. }),
  4460. (e.prototype.update = function () {
  4461. var t = 3 * this.width * this.multiple,
  4462. e = this.width * this.multiple,
  4463. i = 0.4 * s.lineDis({ points: this.linePoints });
  4464. i / this.multiple > 30 && (i = 30 * this.multiple);
  4465. var n = this.linePoints[0],
  4466. g = this.linePoints[1],
  4467. A = s.getDisPointLinePoints(this.attachment, n, t),
  4468. r = A[0],
  4469. o = A[1],
  4470. C = s.getDisPointLinePoints(this.attachment, g, t),
  4471. I = C[0],
  4472. a = C[1];
  4473. if (
  4474. ((n = s.lineDis({ points: [r, g] }) > s.lineDis({ points: [o, g] }) ? r : o),
  4475. (g = s.lineDis({ points: [I, n] }) > s.lineDis({ points: [a, n] }) ? I : a),
  4476. !isNaN(r.x))
  4477. ) {
  4478. this.left.setAttribute("stroke-width", t.toString()),
  4479. this.left.setAttribute("x", this.linePoints[0].x.toString()),
  4480. this.left.setAttribute("y", this.linePoints[0].y.toString()),
  4481. this.right.setAttribute("stroke-width", t.toString()),
  4482. this.right.setAttribute("x", this.linePoints[1].x.toString()),
  4483. this.right.setAttribute("y", this.linePoints[1].y.toString());
  4484. var l = this.getOutInPath(n, g, t, e, i);
  4485. (this.ctl = [l[2], l[3]]),
  4486. this.out.setAttribute("fill", this.fill),
  4487. this.out.setAttribute("stroke-width", e.toString()),
  4488. this.out.setAttribute("stroke", this.stroke),
  4489. this.out.setAttribute(
  4490. "d",
  4491. l
  4492. .map(function (t, e) {
  4493. return (e ? "L " : "M ") + t.x + " " + t.y;
  4494. })
  4495. .join(" ")
  4496. );
  4497. var u = s.getLineDisSelectPoint({ points: this.linePoints }, n, t),
  4498. c = s.getLineDisSelectPoint({ points: this.linePoints }, g, t);
  4499. this.in.setAttribute("fill", this.fill),
  4500. this.in.setAttribute("stroke-width", e.toString()),
  4501. this.in.setAttribute("stroke", this.stroke),
  4502. this.in.setAttribute(
  4503. "d",
  4504. this.getOutInPath(u, c, t, e, i - s.lineDis({ points: [u, n] }), l[0], l[1])
  4505. .map(function (t, e) {
  4506. return (e ? "L " : "M ") + t.x + " " + t.y;
  4507. })
  4508. .join(" ")
  4509. ),
  4510. this.attachment.update();
  4511. }
  4512. }),
  4513. (e.prototype.dragStart = function (t) {
  4514. (this.move = this.linePoints[0].real === t.target || this.linePoints[1].real === t.target),
  4515. (this.dragStartPoints = this.linePoints.map(function (t) {
  4516. return { x: t.x, y: t.y };
  4517. }));
  4518. }),
  4519. (e.prototype.drag = function (t) {
  4520. var e = this;
  4521. this.move ||
  4522. this.linePoints.forEach(function (i, n) {
  4523. (i.x = e.dragStartPoints[n].x + t.x * e.multiple), (i.y = e.dragStartPoints[n].y + t.y * e.multiple);
  4524. });
  4525. }),
  4526. (e.prototype.dragEnd = function () {
  4527. (this.move = !1), delete this.dragStartPoints;
  4528. }),
  4529. e
  4530. );
  4531. })(I.default);
  4532. e.default = a;
  4533. },
  4534. function (t, e, i) {
  4535. "use strict";
  4536. var n =
  4537. (this && this.__assign) ||
  4538. function () {
  4539. return (n =
  4540. Object.assign ||
  4541. function (t) {
  4542. for (var e, i = 1, n = arguments.length; i < n; i++)
  4543. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  4544. return t;
  4545. }).apply(this, arguments);
  4546. },
  4547. g =
  4548. (this && this.__awaiter) ||
  4549. function (t, e, i, n) {
  4550. return new (i || (i = Promise))(function (g, A) {
  4551. function r(t) {
  4552. try {
  4553. C(n.next(t));
  4554. } catch (t) {
  4555. A(t);
  4556. }
  4557. }
  4558. function o(t) {
  4559. try {
  4560. C(n.throw(t));
  4561. } catch (t) {
  4562. A(t);
  4563. }
  4564. }
  4565. function C(t) {
  4566. var e;
  4567. t.done
  4568. ? g(t.value)
  4569. : ((e = t.value),
  4570. e instanceof i
  4571. ? e
  4572. : new i(function (t) {
  4573. t(e);
  4574. })).then(r, o);
  4575. }
  4576. C((n = n.apply(t, e || [])).next());
  4577. });
  4578. },
  4579. A =
  4580. (this && this.__generator) ||
  4581. function (t, e) {
  4582. var i,
  4583. n,
  4584. g,
  4585. A,
  4586. r = {
  4587. label: 0,
  4588. sent: function () {
  4589. if (1 & g[0]) throw g[1];
  4590. return g[1];
  4591. },
  4592. trys: [],
  4593. ops: [],
  4594. };
  4595. return (
  4596. (A = { next: o(0), throw: o(1), return: o(2) }),
  4597. "function" == typeof Symbol &&
  4598. (A[Symbol.iterator] = function () {
  4599. return this;
  4600. }),
  4601. A
  4602. );
  4603. function o(A) {
  4604. return function (o) {
  4605. return (function (A) {
  4606. if (i) throw new TypeError("Generator is already executing.");
  4607. for (; r; )
  4608. try {
  4609. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  4610. return g;
  4611. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  4612. case 0:
  4613. case 1:
  4614. g = A;
  4615. break;
  4616. case 4:
  4617. return r.label++, { value: A[1], done: !1 };
  4618. case 5:
  4619. r.label++, (n = A[1]), (A = [0]);
  4620. continue;
  4621. case 7:
  4622. (A = r.ops.pop()), r.trys.pop();
  4623. continue;
  4624. default:
  4625. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  4626. r = 0;
  4627. continue;
  4628. }
  4629. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  4630. r.label = A[1];
  4631. break;
  4632. }
  4633. if (6 === A[0] && r.label < g[1]) {
  4634. (r.label = g[1]), (g = A);
  4635. break;
  4636. }
  4637. if (g && r.label < g[2]) {
  4638. (r.label = g[2]), r.ops.push(A);
  4639. break;
  4640. }
  4641. g[2] && r.ops.pop(), r.trys.pop();
  4642. continue;
  4643. }
  4644. A = e.call(t, r);
  4645. } catch (t) {
  4646. (A = [6, t]), (n = 0);
  4647. } finally {
  4648. i = g = 0;
  4649. }
  4650. if (5 & A[0]) throw A[1];
  4651. return { value: A[0] ? A[1] : void 0, done: !0 };
  4652. })([A, o]);
  4653. };
  4654. }
  4655. },
  4656. r =
  4657. (this && this.__spreadArrays) ||
  4658. function () {
  4659. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  4660. var n = Array(t),
  4661. g = 0;
  4662. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  4663. return n;
  4664. },
  4665. o =
  4666. (this && this.__importDefault) ||
  4667. function (t) {
  4668. return t && t.__esModule ? t : { default: t };
  4669. };
  4670. Object.defineProperty(e, "__esModule", { value: !0 });
  4671. var C = o(i(49)),
  4672. I = o(i(5)),
  4673. s = o(i(11)),
  4674. a = o(i(8)),
  4675. l = o(i(7)),
  4676. u = o(i(20)),
  4677. c = o(i(15)),
  4678. h = o(i(21)),
  4679. p = o(i(17)),
  4680. d = o(i(18)),
  4681. f = i(3),
  4682. y = o(i(12)),
  4683. v = o(i(14)),
  4684. m = o(i(16)),
  4685. b = o(i(19)),
  4686. x = o(i(50));
  4687. (e.roateDataY = function (t) {
  4688. return (
  4689. [
  4690. (t = n(n({}, t), {
  4691. vertex: t.vertex.map(function (t) {
  4692. return n(n({}, t), { y: -t.y });
  4693. }),
  4694. window: r(t.window),
  4695. column: r(t.column),
  4696. door: r(t.door),
  4697. groundCase: r(t.groundCase),
  4698. slideDoor: r(t.slideDoor),
  4699. bayCase: r(t.bayCase),
  4700. tagging: r(t.tagging),
  4701. furnColumn: r(t.furnColumn),
  4702. furnFlue: r(t.furnFlue),
  4703. doubleDoor: r(t.doubleDoor),
  4704. })).window,
  4705. t.column,
  4706. t.door,
  4707. t.slideDoor,
  4708. t.tagging,
  4709. t.groundCase,
  4710. t.bayCase,
  4711. t.furnColumn,
  4712. t.furnFlue,
  4713. t.doubleDoor,
  4714. ].forEach(function (t) {
  4715. t.forEach(function (e, i) {
  4716. t[i] = n(n({}, e), {
  4717. pos: e.pos.map(function (t, e) {
  4718. return e % 2 ? -t : t;
  4719. }),
  4720. });
  4721. });
  4722. }),
  4723. t
  4724. );
  4725. }),
  4726. (e.attchTransform = function (t) {
  4727. (t.getData = function (i) {
  4728. return (
  4729. void 0 === i && (i = !1),
  4730. {
  4731. floors: t.processings.map(function (n) {
  4732. var g = e.roateDataY(n.toData());
  4733. return (g.dire = n.direction.angle), i && (g = x.default(g, t)), g;
  4734. }),
  4735. }
  4736. );
  4737. }),
  4738. (t.loadData = function (i) {
  4739. i.floors || ((i.show = !0), (i = { floors: [i] }));
  4740. var n = JSON.parse(JSON.stringify(i));
  4741. n.floors.some(function (t) {
  4742. return t.show;
  4743. }) || (n.floors[0].show = !0),
  4744. (n.floors = n.floors.map(function (t) {
  4745. return e.roateDataY(
  4746. (function (t) {
  4747. (t.column = t.column || []),
  4748. (t.window = t.window || []),
  4749. (t.doubleDoor = t.doubleDoor || []),
  4750. (t.door = t.door || []),
  4751. (t.groundCase = t.groundCase || []),
  4752. (t.bayCase = t.bayCase || []),
  4753. (t.slideDoor = t.slideDoor || []),
  4754. (t.tagging = t.tagging || []),
  4755. (t.furnColumn = t.furnColumn || []),
  4756. (t.furnFlue = t.furnFlue || []);
  4757. var e = ["column", "window", "door", "groundCase", "bayCase", "slideDoor", "tagging", "furnColumn", "furnFlue"];
  4758. t["vertex-xy"] &&
  4759. ((t.vertex = t["vertex-xy"]),
  4760. (t.wall = t.segment.map(function (t) {
  4761. return { id: t.id, p1: t.a, p2: t.b, border: t.border, exterior: t.exterior };
  4762. }))),
  4763. t["outdoor-segment"] &&
  4764. ((t.wall = t.wall.concat(
  4765. t["outdoor-segment"].map(function (t) {
  4766. return { id: t.id, p1: t.a, p2: t.b, border: t.border, exterior: !0 };
  4767. })
  4768. )),
  4769. (t.vertex = t.vertex.concat(t["outdoor-vertex"])));
  4770. for (
  4771. var i,
  4772. n = function (n) {
  4773. var g = t.wall
  4774. .filter(function (e) {
  4775. return e !== t.wall[n];
  4776. })
  4777. .find(function (e) {
  4778. var i = e.p1,
  4779. g = e.p2;
  4780. return (i === t.wall[n].p1 && g === t.wall[n].p2) || (g === t.wall[n].p1 && i === t.wall[n].p2);
  4781. });
  4782. g &&
  4783. (e.forEach(function (e) {
  4784. t[e].forEach(function (e) {
  4785. e.line === t.wall[n].id && ((e.line = g.id), console.log("update", e));
  4786. });
  4787. }),
  4788. t.wall.splice(n--, 1)),
  4789. (i = n);
  4790. },
  4791. g = 0;
  4792. g < t.wall.length;
  4793. g++
  4794. )
  4795. n(g), (g = i);
  4796. return (
  4797. (t.vertex = t.vertex.filter(function (e) {
  4798. return t.wall.some(function (t) {
  4799. var i = t.p1,
  4800. n = t.p2;
  4801. return e.id === i || e.id === n;
  4802. });
  4803. })),
  4804. t
  4805. );
  4806. })(t)
  4807. );
  4808. })),
  4809. !0,
  4810. t.processings.forEach(function (t) {
  4811. t.attrs.forEach(function (e) {
  4812. for (; t[e].length; ) t[e][0].ele.destroy(!0, !0);
  4813. });
  4814. }),
  4815. n.floors.forEach(function (e) {
  4816. var i = t.processings.find(function (t) {
  4817. return t.id === e.id;
  4818. });
  4819. i || ((i = t.addProcessing()).id = e.id);
  4820. });
  4821. for (
  4822. var g,
  4823. A = function (e) {
  4824. n.floors.some(function (i) {
  4825. var n = i.id;
  4826. return t.processings[e].id === n;
  4827. }) || t.delProcessing(t.processings[e--]),
  4828. (g = e);
  4829. },
  4830. r = 0;
  4831. r < t.processings.length;
  4832. r++
  4833. )
  4834. A(r), (r = g);
  4835. t.processings.forEach(function (t) {
  4836. for (
  4837. var e,
  4838. i = function (i) {
  4839. var n = t.render.elements[i];
  4840. [s.default, a.default, c.default, m.default, l.default, v.default, I.default, u.default, b.default, h.default, p.default, d.default].some(
  4841. function (t) {
  4842. return n instanceof t;
  4843. }
  4844. ) && (t.render.remove(n), i--),
  4845. (e = i);
  4846. },
  4847. n = 0;
  4848. n < t.render.elements.length;
  4849. n++
  4850. )
  4851. i(n), (n = e);
  4852. }),
  4853. n.floors.forEach(function (e) {
  4854. var i = t.processings.find(function (t) {
  4855. return t.id === e.id;
  4856. });
  4857. (e.surplus = []),
  4858. i.toEles(e),
  4859. (i.direction.__state.direct = !0),
  4860. (i.direction.angle = e.dire || 0),
  4861. (i.direction.__state.direct = !1),
  4862. i.direction.update(),
  4863. t.adapt(e, void 0, void 0, n.floors[0]);
  4864. }),
  4865. setTimeout(function () {
  4866. return !1;
  4867. }, 5e3);
  4868. });
  4869. }),
  4870. (e.attchStack = function (t) {
  4871. sessionStorage.clear();
  4872. var e = 0,
  4873. i = new C.default("cad_" + Date.now());
  4874. t.stack = i;
  4875. var n = function (t) {
  4876. void 0 === t && (t = e);
  4877. var n = i.getLength();
  4878. return { previous: (1 !== n || 1 !== e) && t > 0, next: t < n - 1 };
  4879. };
  4880. (t.clearStack = function () {
  4881. sessionStorage.clear(), i.setLength((e = 0));
  4882. }),
  4883. (t.getCurrentData = function () {
  4884. return i.get(e - 1);
  4885. }),
  4886. (t.preservation = f.debounce(function () {
  4887. if (!t.stoppreservation) {
  4888. var n = t.getData(),
  4889. g = i.getLength() - 1;
  4890. (0 !== g && JSON.stringify(n) === JSON.stringify(i.get(g))) || (i.push(n), ++e);
  4891. }
  4892. }, 500));
  4893. var g;
  4894. Date.now();
  4895. (t.previous = function () {
  4896. return n().previous
  4897. ? (--e,
  4898. clearTimeout(g),
  4899. (g = setTimeout(function () {
  4900. t.loadData(i.get(e));
  4901. }, 500)),
  4902. n())
  4903. : n();
  4904. }),
  4905. (t.next = function () {
  4906. return n().next
  4907. ? (++e,
  4908. clearTimeout(g),
  4909. (g = setTimeout(function () {
  4910. t.loadData(i.get(e));
  4911. }, 500)),
  4912. n())
  4913. : n();
  4914. }),
  4915. (t.getStackState = n);
  4916. var A = t.destroy;
  4917. t.destroy = function () {
  4918. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  4919. (i = null), A.apply(this, t);
  4920. };
  4921. }),
  4922. (e.autoPreservation = function (t) {
  4923. [I.default, s.default, a.default, l.default, u.default, c.default, h.default, p.default, y.default, d.default, v.default, m.default].forEach(function (
  4924. e
  4925. ) {
  4926. var i = e.prototype.dragEnd;
  4927. e.prototype.dragEnd = function () {
  4928. for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
  4929. return g(this, void 0, void 0, function () {
  4930. return A(this, function (n) {
  4931. switch (n.label) {
  4932. case 0:
  4933. return i ? [4, i.call.apply(i, r([this], e))] : [3, 2];
  4934. case 1:
  4935. n.sent(), (n.label = 2);
  4936. case 2:
  4937. return (
  4938. setTimeout(function () {
  4939. t.preservation();
  4940. }, 100),
  4941. [2]
  4942. );
  4943. }
  4944. });
  4945. });
  4946. };
  4947. var n = t.destroy;
  4948. t.destroy = function () {
  4949. for (var t = [], g = 0; g < arguments.length; g++) t[g] = arguments[g];
  4950. n.apply(this, t), (e.prototype.dragEnd = i);
  4951. };
  4952. });
  4953. var e = t.increase;
  4954. (t.increase = function () {
  4955. for (var i = [], n = 0; n < arguments.length; n++) i[n] = arguments[n];
  4956. var g = e.call.apply(e, r([t], i));
  4957. return (
  4958. g.error ||
  4959. setTimeout(function () {
  4960. t.preservation();
  4961. }, 100),
  4962. g
  4963. );
  4964. }),
  4965. t.preservation();
  4966. });
  4967. },
  4968. function (t, e, i) {
  4969. "use strict";
  4970. var n,
  4971. g =
  4972. (this && this.__extends) ||
  4973. ((n = function (t, e) {
  4974. return (n =
  4975. Object.setPrototypeOf ||
  4976. ({ __proto__: [] } instanceof Array &&
  4977. function (t, e) {
  4978. t.__proto__ = e;
  4979. }) ||
  4980. function (t, e) {
  4981. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  4982. })(t, e);
  4983. }),
  4984. function (t, e) {
  4985. function i() {
  4986. this.constructor = t;
  4987. }
  4988. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  4989. }),
  4990. A =
  4991. (this && this.__spreadArrays) ||
  4992. function () {
  4993. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  4994. var n = Array(t),
  4995. g = 0;
  4996. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  4997. return n;
  4998. };
  4999. Object.defineProperty(e, "__esModule", { value: !0 });
  5000. var r = i(2),
  5001. o = i(1),
  5002. C = i(0),
  5003. I = function (t, e) {
  5004. return t.contains
  5005. ? t.contains(e)
  5006. : Array.from(t.childNodes).some(function (t) {
  5007. return t === e;
  5008. });
  5009. },
  5010. s = (function (t) {
  5011. function e(e) {
  5012. var i = e.local,
  5013. n = e.renderer,
  5014. g = e.active,
  5015. A = void 0 === g ? 0 : g,
  5016. r = e.show,
  5017. o = void 0 === r || r,
  5018. C = t.call(this, { local: i, renderer: n, dialog: 0, active: A, show: o }) || this;
  5019. return (
  5020. (C.items = []),
  5021. (C.layerClick = function () {
  5022. return (C.dialog = 0);
  5023. }),
  5024. n.layer.addEventListener("click", C.layerClick),
  5025. C
  5026. );
  5027. }
  5028. return (
  5029. g(e, t),
  5030. (e.prototype.grentImage = function (t) {
  5031. var e = document.createElementNS(o.SVGURI, "image");
  5032. return (
  5033. (e.href.baseVal = i(54)),
  5034. e.setAttribute("x", (-t / 2).toString()),
  5035. e.setAttribute("y", (-t / 2).toString()),
  5036. e.setAttribute("width", t.toString()),
  5037. e.setAttribute("height", t.toString()),
  5038. e
  5039. );
  5040. }),
  5041. (e.prototype.grentNode = function () {
  5042. var t = document.createElementNS(o.SVGURI, "g");
  5043. (this.path = document.createElementNS(o.SVGURI, "path")),
  5044. this.path.setAttribute("stroke", "rgb(0, 200, 175)"),
  5045. this.path.setAttribute("fill", "transparent");
  5046. var e = document.createElementNS(o.SVGURI, "circle");
  5047. e.setAttribute("fill", "rgb(0, 200, 175)"), e.setAttribute("stroke", "#fff");
  5048. var i = document.createElementNS(o.SVGURI, "text");
  5049. return (
  5050. i.setAttribute("fill", "#fff"),
  5051. i.setAttribute("text-anchor", "middle"),
  5052. i.setAttribute("dy", ".4em"),
  5053. (this.temp = document.createElementNS(o.SVGURI, "g")),
  5054. this.temp.appendChild(e),
  5055. this.temp.appendChild(i),
  5056. (this.temp.style.cursor = "pointer"),
  5057. (this.dialogLayer = document.createElementNS(o.SVGURI, "g")),
  5058. (this.itemsLayout = document.createElementNS(o.SVGURI, "path")),
  5059. this.itemsLayout.setAttribute("fill", "rgba(255,255,255,0.7)"),
  5060. this.dialogLayer.appendChild(this.itemsLayout),
  5061. t.appendChild(this.path),
  5062. t
  5063. );
  5064. }),
  5065. (e.prototype.update = function () {
  5066. var t = this,
  5067. e = 9 * this.multiple,
  5068. i = 2 * this.multiple;
  5069. if (
  5070. ((this.real.style.display = this.show ? "initial" : "none"),
  5071. this.path.setAttribute("stroke-width", (2 * this.multiple).toString()),
  5072. this.local.length > 0)
  5073. )
  5074. this.path.setAttribute(
  5075. "d",
  5076. "M " +
  5077. this.local
  5078. .map(function (t) {
  5079. return t.x + " " + t.y;
  5080. })
  5081. .join(" L ")
  5082. );
  5083. else if ((this.path.setAttribute("d", ""), this.dialog)) return (this.dialog = 0);
  5084. this.items.forEach(function (e) {
  5085. try {
  5086. t.real.removeChild(e);
  5087. } catch (t) {}
  5088. }),
  5089. (this.items = []),
  5090. (this.temp.style.display = this.show ? "initial" : "none");
  5091. var n = this.local.length - this.items.length;
  5092. if (n > 0)
  5093. for (var g = 0; g < n; g++) {
  5094. var A = this.temp.cloneNode(!0);
  5095. this.real.appendChild(A), this.items.push(A);
  5096. }
  5097. else if (n < 0)
  5098. for (g = 0; g > n; g--) {
  5099. var r = this.items.shift();
  5100. this.real.removeChild(r);
  5101. }
  5102. var o = 0;
  5103. for (g = 0; g < this.local.length; g++) {
  5104. var C = this.items[g].querySelector("circle"),
  5105. I = this.items[g].querySelector("text");
  5106. this.items[g].setAttribute("transform", "translate(" + this.local[g].x + "," + this.local[g].y + ")"),
  5107. (this.items[g].style.display = "inherit"),
  5108. C.setAttribute("stroke-width", i.toString()),
  5109. C.setAttribute("r", e.toString()),
  5110. I.setAttribute("font-size", (10 * this.multiple).toString()),
  5111. this.local[g].rangn
  5112. ? (C.setAttribute("fill", "#666666"), this.items[g].appendChild(this.grentImage(e + i)))
  5113. : (I.textContent = (++o).toString()),
  5114. this.local[g] === this.active &&
  5115. (I.setAttribute("fill", "rgb(250,250,0)"), C.setAttribute("stroke", "rgb(250,250,0)"), this.items[g].setAttribute("class", "active"));
  5116. }
  5117. var s = this.calcGroup();
  5118. for (g = 0; g < s.length; g++)
  5119. s[g].body.forEach(function (e) {
  5120. var i = t.local.indexOf(e);
  5121. t.items[i].style.display = "none";
  5122. });
  5123. this.showDialog(2 * (e + i));
  5124. }),
  5125. (e.prototype.showDialog = function (t) {
  5126. var e = this;
  5127. if (0 !== this.dialog) {
  5128. for (var i = 0; i < this.dialogLayer.childNodes.length; i++)
  5129. this.dialogLayer.childNodes[i] !== this.itemsLayout && (this.dialogLayer.removeChild(this.dialogLayer.childNodes[i]), i--);
  5130. this.itemsLayout.innerHTML = "";
  5131. var n = 5 * this.multiple,
  5132. g = (t + n) * this.dialog.items.length,
  5133. A = t + 2 * n,
  5134. r = this.dialog.pos.x - g / 2,
  5135. o = this.dialog.pos.y - A - t,
  5136. C = 8 * this.multiple;
  5137. this.itemsLayout.setAttribute(
  5138. "d",
  5139. "\n M " +
  5140. r +
  5141. " " +
  5142. (o + A) +
  5143. "\n A " +
  5144. A / 2 +
  5145. " " +
  5146. A / 2 +
  5147. " 0 1 1 " +
  5148. r +
  5149. " " +
  5150. o +
  5151. "\n L " +
  5152. (r + g) +
  5153. " " +
  5154. o +
  5155. "\n A " +
  5156. A / 2 +
  5157. " " +
  5158. A / 2 +
  5159. " 0 1 1 " +
  5160. (r + g) +
  5161. " " +
  5162. (o + A) +
  5163. "\n L " +
  5164. (r + g / 2 + C) +
  5165. " " +
  5166. (o + A) +
  5167. "\n L " +
  5168. (r + g / 2) +
  5169. " " +
  5170. (o + A + C) +
  5171. "\n L " +
  5172. (r + g / 2 - C) +
  5173. " " +
  5174. (o + A) +
  5175. "\n L " +
  5176. r +
  5177. " " +
  5178. (o + A) +
  5179. "\n "
  5180. );
  5181. var I = function (i, g) {
  5182. i.setAttribute("transform", "translate(" + (r + (t + n) * g) + "," + (o + (t / 2 + n)) + ")"),
  5183. (i.style.display = "inline"),
  5184. e.dialogLayer.appendChild(i);
  5185. };
  5186. this.dialog.items.forEach(function (t, i) {
  5187. I(e.items[e.local.indexOf(t)], i + 1);
  5188. }),
  5189. I(this.items[this.local.indexOf(this.dialog.pos)].cloneNode(!0), 0);
  5190. }
  5191. }),
  5192. (e.prototype.calcGroup = function () {
  5193. var t = this,
  5194. e = 18 * this.multiple,
  5195. i = [];
  5196. return (
  5197. this.local.forEach(function (n) {
  5198. if (
  5199. !i.find(function (t) {
  5200. return ~t.body.indexOf(n);
  5201. })
  5202. ) {
  5203. var g = t.local.filter(function (t) {
  5204. return n !== t && C.lineDis({ points: [n, t] }) < e;
  5205. });
  5206. g.length > 0 && i.push({ head: n, body: g });
  5207. }
  5208. }),
  5209. i
  5210. );
  5211. }),
  5212. (e.prototype.notice = function () {
  5213. 0 !== this.dialog ? this.real.appendChild(this.dialogLayer) : I(this.real, this.dialogLayer) && this.real.removeChild(this.dialogLayer);
  5214. }),
  5215. (e.prototype.intercept = function (t, e) {
  5216. var i = this,
  5217. n = e.active;
  5218. if (!n) return !0;
  5219. var g = this.calcGroup().find(function (t) {
  5220. var e = t.head,
  5221. i = t.body;
  5222. return e === n || ~i.indexOf(n);
  5223. });
  5224. if (
  5225. (this.nextTick(function () {
  5226. i.dialog = g ? { pos: g.head, items: A(g.body) } : 0;
  5227. }),
  5228. this.active && this.items[this.local.indexOf(this.active)])
  5229. ) {
  5230. var r = this.items[this.local.indexOf(this.active)],
  5231. o = r.querySelector("circle");
  5232. r.querySelector("text").setAttribute("fill", "#fff"), o.setAttribute("stroke", "#fff"), r.setAttribute("class", "active");
  5233. }
  5234. return !0;
  5235. }),
  5236. (e.prototype.setActive = function (t) {
  5237. this.active = t;
  5238. }),
  5239. (e.prototype.click = function (t) {
  5240. t.stopPropagation();
  5241. for (var e = 0; e < this.items.length; e++)
  5242. if (I(this.items[e], t.target) || t.target === this.items[e]) {
  5243. this.setActive(this.local[e]);
  5244. break;
  5245. }
  5246. }),
  5247. (e.prototype.destroy = function () {
  5248. this.renderer.layer.removeEventListener("click", this.layerClick);
  5249. }),
  5250. e
  5251. );
  5252. })(r.CADElement);
  5253. e.default = s;
  5254. },
  5255. function (t, e, i) {
  5256. "use strict";
  5257. var n =
  5258. (this && this.__spreadArrays) ||
  5259. function () {
  5260. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  5261. var n = Array(t),
  5262. g = 0;
  5263. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  5264. return n;
  5265. },
  5266. g =
  5267. (this && this.__importDefault) ||
  5268. function (t) {
  5269. return t && t.__esModule ? t : { default: t };
  5270. };
  5271. Object.defineProperty(e, "__esModule", { value: !0 }), i(25);
  5272. var A = g(i(26)),
  5273. r = i(39),
  5274. o = i(40),
  5275. C = i(46),
  5276. I = i(48),
  5277. s = i(22),
  5278. a = i(51),
  5279. l = i(52),
  5280. u = i(53),
  5281. c = i(55),
  5282. h = i(56),
  5283. p = g(i(57)),
  5284. d = i(58),
  5285. f = g(i(7));
  5286. e.Column = f.default;
  5287. var y = g(i(8));
  5288. e.Door = y.default;
  5289. var v = g(i(11));
  5290. e.Casement = v.default;
  5291. var m = i(2),
  5292. b = g(i(23)),
  5293. x = g(i(59)),
  5294. _ = g(i(63)),
  5295. w = m.CADElement.prototype.listen;
  5296. m.CADElement.prototype.listen = function () {
  5297. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  5298. var g = this.render.processing.cad.edits.some(function (e) {
  5299. return t instanceof e;
  5300. });
  5301. (g || this.render.processing.cad.edit || this instanceof b.default) && w.call.apply(w, n([this], e));
  5302. };
  5303. var P = f.default.prototype.addEvent;
  5304. function O(t) {
  5305. var e = t.data,
  5306. i = t.layer,
  5307. n = t.edit,
  5308. g = void 0 === n || n,
  5309. f = t.padding,
  5310. y = void 0 === f ? 20 : f,
  5311. v = new A.default({ dom: i, padding: y });
  5312. return (
  5313. (v.edit = g),
  5314. r.attachInsert(v),
  5315. g
  5316. ? (s.attchTransform(v), s.attchStack(v), s.autoPreservation(v), a.attchDOMTranform(v), l.attachDisabled(v), p.default(v))
  5317. : (s.attchTransform(v), a.attchDOMTranform(v)),
  5318. h.attchCustom(v),
  5319. c.attachStyle(v),
  5320. I.attachScreenshot(v),
  5321. C.attachSign(v),
  5322. o.attachGauge(v),
  5323. u.attachRote(v),
  5324. g && (v.openMouseHandle(), v.showGauge()),
  5325. d.other(v),
  5326. x.default(v),
  5327. v.loadData(e),
  5328. (v.toCanvas = function (t) {
  5329. return _.default(v, t);
  5330. }),
  5331. v
  5332. );
  5333. }
  5334. (f.default.prototype.addEvent = function () {
  5335. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  5336. var g = this.render.processing.cad.edits.some(function (e) {
  5337. return t instanceof e;
  5338. });
  5339. (g || this.render.processing.cad.edit) && P.call.apply(P, n([this], e));
  5340. }),
  5341. (e.structureCAD = O),
  5342. (e.default = O),
  5343. (window.structureCAD = O);
  5344. },
  5345. function (t, e) {
  5346. !(function () {
  5347. try {
  5348. if ("undefined" == typeof SVGElement || Boolean(SVGElement.prototype.innerHTML)) return;
  5349. } catch (t) {
  5350. return;
  5351. }
  5352. function t(e) {
  5353. switch (e.nodeType) {
  5354. case 1:
  5355. return (function (e) {
  5356. var i = "";
  5357. (i += "<" + e.tagName),
  5358. e.hasAttributes() &&
  5359. [].forEach.call(e.attributes, function (t) {
  5360. i += " " + t.name + '="' + t.value + '"';
  5361. });
  5362. (i += ">"),
  5363. e.hasChildNodes() &&
  5364. [].forEach.call(e.childNodes, function (e) {
  5365. i += t(e);
  5366. });
  5367. return (i += "</" + e.tagName + ">");
  5368. })(e);
  5369. case 3:
  5370. return (function (t) {
  5371. return t.textContent.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
  5372. })(e);
  5373. case 8:
  5374. return (function (t) {
  5375. return "\x3c!--" + t.nodeValue + "--\x3e";
  5376. })(e);
  5377. }
  5378. }
  5379. Object.defineProperty(SVGElement.prototype, "innerHTML", {
  5380. get: function () {
  5381. var e = "";
  5382. return (
  5383. [].forEach.call(this.childNodes, function (i) {
  5384. e += t(i);
  5385. }),
  5386. e
  5387. );
  5388. },
  5389. set: function (t) {
  5390. for (; this.firstChild; ) this.removeChild(this.firstChild);
  5391. try {
  5392. var e = new DOMParser();
  5393. e.async = !1;
  5394. var i = "<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>" + t + "</svg>",
  5395. n = e.parseFromString(i, "text/xml").documentElement;
  5396. [].forEach.call(
  5397. n.childNodes,
  5398. function (t) {
  5399. this.appendChild(this.ownerDocument.importNode(t, !0));
  5400. }.bind(this)
  5401. );
  5402. } catch (t) {
  5403. throw new Error("Error parsing markup string");
  5404. }
  5405. },
  5406. }),
  5407. Object.defineProperty(SVGElement.prototype, "innerSVG", {
  5408. get: function () {
  5409. return this.innerHTML;
  5410. },
  5411. set: function (t) {
  5412. this.innerHTML = t;
  5413. },
  5414. });
  5415. })();
  5416. },
  5417. function (t, e, i) {
  5418. "use strict";
  5419. var n =
  5420. (this && this.__importDefault) ||
  5421. function (t) {
  5422. return t && t.__esModule ? t : { default: t };
  5423. };
  5424. Object.defineProperty(e, "__esModule", { value: !0 });
  5425. var g = i(3),
  5426. A = n(i(27)),
  5427. r = i(2),
  5428. o = (function () {
  5429. function t(t) {
  5430. var e = this,
  5431. i = t.dom,
  5432. n = t.padding,
  5433. g = void 0 === n ? 20 : n;
  5434. (this.processings = []),
  5435. Object.defineProperty(this, "processing", {
  5436. get: function () {
  5437. return this.processings.find(function (t) {
  5438. return t.show;
  5439. });
  5440. },
  5441. }),
  5442. (this.layer = i),
  5443. (this.padding = g),
  5444. (this.isDestroy = !1),
  5445. (this.resizeHandle = function () {
  5446. return e.processing.data && e.adapt(e.processing.data);
  5447. }),
  5448. this.init();
  5449. }
  5450. return (
  5451. (t.prototype.addProcessing = function () {
  5452. var t = new A.default({ dom: this.layer });
  5453. return (t.cad = this), this.processings.push(t), t;
  5454. }),
  5455. (t.prototype.delProcessing = function (t) {
  5456. t.render.elements.forEach(function (t) {
  5457. return t.destroy();
  5458. }),
  5459. this.processings.splice(this.processings.indexOf(t), 1);
  5460. }),
  5461. (t.prototype.adapt = function (t, e, i, n) {
  5462. void 0 === t && (t = this.processing.data);
  5463. var A = this.processings.find(function (e) {
  5464. return e.data.id === t.id;
  5465. });
  5466. (e = e || A.render.layer.offsetWidth || parseInt(getComputedStyle(A.render.layer).width) || 100),
  5467. (i = i || A.render.layer.offsetHeight || parseInt(getComputedStyle(A.render.layer).height) || 100),
  5468. 0 === t.vertex.length
  5469. ? (A.render.props = g.getMapMultipleWH(
  5470. e,
  5471. i,
  5472. {
  5473. vertex: [
  5474. { x: -15, y: -15 },
  5475. { x: -15, y: 15 },
  5476. { x: 15, y: -15 },
  5477. { x: 15, y: 15 },
  5478. ],
  5479. },
  5480. this.padding
  5481. ))
  5482. : (e && i && (A.render.props = g.getMapMultipleWH(e, i, t, this.padding)),
  5483. A.render.props.scale <= 0 && (A.render.props = { width: 0, height: 0, multiple: 0, scale: 1, top: 0, left: 0 })),
  5484. A.render.adaptLayer(e, i),
  5485. r.CADElement.update(A.render);
  5486. }),
  5487. (t.prototype.init = function () {
  5488. window.addEventListener("resize", this.resizeHandle, !1);
  5489. }),
  5490. (t.prototype.destroy = function () {
  5491. for (var t in (window.removeEventListener("resize", this.resizeHandle, !1),
  5492. this.processing.destroy(),
  5493. (this.processing = null),
  5494. (this.isDestroy = !0),
  5495. this))
  5496. "function" == typeof this[t] ? (this[t] = function () {}) : delete this[t];
  5497. }),
  5498. t
  5499. );
  5500. })();
  5501. e.default = o;
  5502. },
  5503. function (t, e, i) {
  5504. "use strict";
  5505. var n =
  5506. (this && this.__assign) ||
  5507. function () {
  5508. return (n =
  5509. Object.assign ||
  5510. function (t) {
  5511. for (var e, i = 1, n = arguments.length; i < n; i++)
  5512. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  5513. return t;
  5514. }).apply(this, arguments);
  5515. },
  5516. g =
  5517. (this && this.__spreadArrays) ||
  5518. function () {
  5519. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  5520. var n = Array(t),
  5521. g = 0;
  5522. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  5523. return n;
  5524. },
  5525. A =
  5526. (this && this.__importDefault) ||
  5527. function (t) {
  5528. return t && t.__esModule ? t : { default: t };
  5529. };
  5530. Object.defineProperty(e, "__esModule", { value: !0 });
  5531. var r = A(i(28)),
  5532. o = i(31),
  5533. C = i(36),
  5534. I = i(37),
  5535. s = i(38),
  5536. a = (function () {
  5537. function t(t) {
  5538. var e = t.dom;
  5539. (this.render = new r.default({ layer: e, processing: this })),
  5540. (this.id = 1),
  5541. (this.points = []),
  5542. (this.lines = []),
  5543. (this.cases = []),
  5544. (this.doors = []),
  5545. (this.columns = []),
  5546. (this.slideDoors = []),
  5547. (this.groundCases = []),
  5548. (this.taggings = []),
  5549. (this.bayCases = []),
  5550. (this.furnColumns = []),
  5551. (this.furnFlues = []),
  5552. (this.doubleDoors = []),
  5553. this.manageShow();
  5554. }
  5555. return (
  5556. (t.prototype.manageShow = function () {
  5557. var t = this,
  5558. e = !1;
  5559. Object.defineProperty(this, "show", {
  5560. get: function () {
  5561. return e;
  5562. },
  5563. set: function (i) {
  5564. console.log("---------", e), (e = i), (t.render.svg.style.display = e ? "block" : "none");
  5565. },
  5566. });
  5567. }),
  5568. (t.prototype.rep = function (t) {
  5569. var e = this;
  5570. this.attrs.forEach(function (i) {
  5571. var n = e[i].findIndex(function (e) {
  5572. return e.ele === t;
  5573. });
  5574. ~n && ((t.__id = e[i][n] && e[i][n].id), e[i].splice(n, 1));
  5575. }),
  5576. this.render || console.error("掉用 rep"),
  5577. this.render && this.render.remove(t);
  5578. }),
  5579. (t.prototype.retrofitElementDestroy = function (t) {
  5580. var e = this,
  5581. i = t.destroy;
  5582. t.__load_destroy ||
  5583. ((t.__load_destroy = !0),
  5584. (t.destroy = function () {
  5585. for (var n = [], A = 0; A < arguments.length; A++) n[A] = arguments[A];
  5586. n[0]
  5587. ? e.rep(t)
  5588. : t.nextTick(function () {
  5589. return e.rep(t);
  5590. }),
  5591. i.call.apply(i, g([t], n)),
  5592. (t.__load_destroy = !1);
  5593. }));
  5594. }),
  5595. (t.prototype.updateWallPoints = function (t, e, i) {}),
  5596. (t.prototype.retrofitElementIntercept = function (t) {}),
  5597. (t.prototype.depLines = function () {
  5598. for (
  5599. var t,
  5600. e = g(this.lines),
  5601. i = function (i) {
  5602. var n = e[i].ele,
  5603. g = e.some(function (t) {
  5604. var e = t.ele;
  5605. return (
  5606. n !== e &&
  5607. ((n.points[0] === e.points[0] && n.points[1] === e.points[1]) || (n.points[1] === e.points[0] && n.points[0] === e.points[1]))
  5608. );
  5609. });
  5610. (n.points[0] === n.points[1] || g) && (e[i].ele.destroy(), e.splice(i--, 1)), (t = i);
  5611. },
  5612. n = 0;
  5613. n < e.length;
  5614. n++
  5615. )
  5616. i(n), (n = t);
  5617. }),
  5618. (t.prototype.destroy = function () {
  5619. var t = this,
  5620. e = this.attrs.map(function (e) {
  5621. return t[e];
  5622. });
  5623. (this.data = {
  5624. id: 1,
  5625. show: !0,
  5626. vertex: [],
  5627. wall: [],
  5628. window: [],
  5629. column: [],
  5630. door: [],
  5631. surplus: [],
  5632. slideDoor: [],
  5633. tagging: [],
  5634. groundCase: [],
  5635. bayCase: [],
  5636. doubleDoor: [],
  5637. furnColumn: [],
  5638. furnFlue: [],
  5639. dire: 0,
  5640. }),
  5641. e.forEach(function (t) {
  5642. for (; t.length; ) t[0].ele.destroy(!0);
  5643. }),
  5644. this.render.destroy(),
  5645. (this.render = null);
  5646. }),
  5647. t
  5648. );
  5649. })();
  5650. (e._Processing = a), (e.default = a);
  5651. var l = n(n(n(n({}, o.methods), C.methods), I.methods), s.methods);
  5652. Object.keys(l).forEach(function (t) {
  5653. return (a.prototype[t] = l[t]);
  5654. });
  5655. },
  5656. function (t, e, i) {
  5657. "use strict";
  5658. Object.defineProperty(e, "__esModule", { value: !0 });
  5659. var n = i(2),
  5660. g = i(1),
  5661. A = (function () {
  5662. function t(t) {
  5663. var e = this,
  5664. i = t.layer,
  5665. g = t.width,
  5666. A = void 0 === g ? i.offsetWidth : g,
  5667. r = t.height,
  5668. o = void 0 === r ? i.offsetHeight : r,
  5669. C = t.processing;
  5670. (this.clickHandle = function () {
  5671. e.elements.forEach(function (t) {
  5672. return t.changeSelect(!1);
  5673. });
  5674. }),
  5675. n.CADElement.init(this),
  5676. (this.props = { left: 0, top: 0, width: A, height: o, multiple: 1, scale: 1 }),
  5677. (this.elements = []),
  5678. (this.processing = C),
  5679. this.init(i);
  5680. }
  5681. return (
  5682. (t.prototype.init = function (t) {
  5683. (this.svg = document.createElementNS(g.SVGURI, "svg")),
  5684. (this.g = document.createElementNS(g.SVGURI, "g")),
  5685. this.svg.appendChild(this.g),
  5686. (this.layer = t),
  5687. (this.layer.style.position = "relative"),
  5688. (this.svg.style.position = "absolute"),
  5689. (this.svg.style.left = "0"),
  5690. (this.svg.style.top = "0"),
  5691. (this.svg.style.right = "0"),
  5692. (this.svg.style.bottom = "0"),
  5693. this.svg.setAttribute("version", "1.0"),
  5694. this.svg.setAttribute("xmlns", "http://www.w3.org/2000/svg"),
  5695. this.svg.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"),
  5696. this.svg.addEventListener("click", this.clickHandle, !1),
  5697. this.layer.appendChild(this.svg);
  5698. }),
  5699. (t.prototype.adaptLayer = function (t, e) {
  5700. void 0 === t && (t = this.layer.offsetWidth), void 0 === e && (e = this.layer.offsetHeight);
  5701. var i = this.props.width / 2 - this.props.left,
  5702. g = this.props.height / 2 - this.props.top;
  5703. this.g.setAttribute(
  5704. "transform",
  5705. "\n translate(" +
  5706. this.props.left +
  5707. "," +
  5708. this.props.top +
  5709. ")\n translate(" +
  5710. i +
  5711. "," +
  5712. g +
  5713. ")\n scale(" +
  5714. this.props.scale +
  5715. "," +
  5716. this.props.scale +
  5717. ")\n translate(" +
  5718. -i +
  5719. "," +
  5720. -g +
  5721. ")\n "
  5722. ),
  5723. this.svg.setAttribute("width", t.toString()),
  5724. this.svg.setAttribute("height", e.toString()),
  5725. this.svg.setAttribute("viewBox", "0 0 " + this.props.width + " " + this.props.height),
  5726. (this.realWidth = t),
  5727. (this.realHeight = e),
  5728. n.CADElement.update(this);
  5729. }),
  5730. (t.prototype.render = function () {
  5731. n.CADElement.update(this);
  5732. }),
  5733. (t.prototype.screenToRealPoint = function (t) {
  5734. var e = t.x,
  5735. i = t.y,
  5736. n = this.props.width / 2 - this.props.left,
  5737. g = this.props.height / 2 - this.props.top,
  5738. A = this.props.width / this.props.multiple,
  5739. r = this.props.height / this.props.multiple;
  5740. return 0 == A || 0 == r
  5741. ? { x: n, y: g }
  5742. : {
  5743. x: ((e * this.props.width) / A - this.props.left - n) / this.props.scale + n,
  5744. y: ((i * this.props.height) / r - this.props.top - g) / this.props.scale + g,
  5745. };
  5746. }),
  5747. (t.prototype.realPointToScreen = function (t) {
  5748. var e = t.x,
  5749. i = t.y,
  5750. n = this.props.width / 2 - this.props.left,
  5751. g = this.props.height / 2 - this.props.top,
  5752. A = this.props.width / this.props.multiple,
  5753. r = this.props.height / this.props.multiple;
  5754. return {
  5755. x: (((e - n) * this.props.scale + n + this.props.left) * A) / this.props.width,
  5756. y: (((i - g) * this.props.scale + g + this.props.top) * r) / this.props.height,
  5757. };
  5758. }),
  5759. (t.prototype.push = function () {
  5760. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  5761. e.forEach(function (e) {
  5762. var i = t.elements.find(function (t) {
  5763. return t.zIndex > e.zIndex;
  5764. });
  5765. if (i) {
  5766. try {
  5767. t.g.insertBefore(e.real, i.real);
  5768. } catch (i) {
  5769. t.g.appendChild(e.real);
  5770. }
  5771. t.elements.splice(t.elements.indexOf(i), 0, e);
  5772. } else t.g.appendChild(e.real), t.elements.push(e);
  5773. });
  5774. }),
  5775. (t.prototype.remove = function () {
  5776. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  5777. e.forEach(function (e) {
  5778. try {
  5779. t.g.removeChild(e.real);
  5780. } catch (t) {}
  5781. ~t.elements.indexOf(e) && t.elements.splice(t.elements.indexOf(e), 1);
  5782. });
  5783. }),
  5784. (t.prototype.destroy = function () {
  5785. this.svg.removeEventListener("click", this.clickHandle, !1), this.layer.removeChild(this.svg);
  5786. }),
  5787. t
  5788. );
  5789. })();
  5790. e.default = A;
  5791. },
  5792. function (t, e, i) {
  5793. "use strict";
  5794. var n =
  5795. (this && this.__assign) ||
  5796. function () {
  5797. return (n =
  5798. Object.assign ||
  5799. function (t) {
  5800. for (var e, i = 1, n = arguments.length; i < n; i++)
  5801. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  5802. return t;
  5803. }).apply(this, arguments);
  5804. },
  5805. g =
  5806. (this && this.__awaiter) ||
  5807. function (t, e, i, n) {
  5808. return new (i || (i = Promise))(function (g, A) {
  5809. function r(t) {
  5810. try {
  5811. C(n.next(t));
  5812. } catch (t) {
  5813. A(t);
  5814. }
  5815. }
  5816. function o(t) {
  5817. try {
  5818. C(n.throw(t));
  5819. } catch (t) {
  5820. A(t);
  5821. }
  5822. }
  5823. function C(t) {
  5824. var e;
  5825. t.done
  5826. ? g(t.value)
  5827. : ((e = t.value),
  5828. e instanceof i
  5829. ? e
  5830. : new i(function (t) {
  5831. t(e);
  5832. })).then(r, o);
  5833. }
  5834. C((n = n.apply(t, e || [])).next());
  5835. });
  5836. },
  5837. A =
  5838. (this && this.__generator) ||
  5839. function (t, e) {
  5840. var i,
  5841. n,
  5842. g,
  5843. A,
  5844. r = {
  5845. label: 0,
  5846. sent: function () {
  5847. if (1 & g[0]) throw g[1];
  5848. return g[1];
  5849. },
  5850. trys: [],
  5851. ops: [],
  5852. };
  5853. return (
  5854. (A = { next: o(0), throw: o(1), return: o(2) }),
  5855. "function" == typeof Symbol &&
  5856. (A[Symbol.iterator] = function () {
  5857. return this;
  5858. }),
  5859. A
  5860. );
  5861. function o(A) {
  5862. return function (o) {
  5863. return (function (A) {
  5864. if (i) throw new TypeError("Generator is already executing.");
  5865. for (; r; )
  5866. try {
  5867. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  5868. return g;
  5869. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  5870. case 0:
  5871. case 1:
  5872. g = A;
  5873. break;
  5874. case 4:
  5875. return r.label++, { value: A[1], done: !1 };
  5876. case 5:
  5877. r.label++, (n = A[1]), (A = [0]);
  5878. continue;
  5879. case 7:
  5880. (A = r.ops.pop()), r.trys.pop();
  5881. continue;
  5882. default:
  5883. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  5884. r = 0;
  5885. continue;
  5886. }
  5887. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  5888. r.label = A[1];
  5889. break;
  5890. }
  5891. if (6 === A[0] && r.label < g[1]) {
  5892. (r.label = g[1]), (g = A);
  5893. break;
  5894. }
  5895. if (g && r.label < g[2]) {
  5896. (r.label = g[2]), r.ops.push(A);
  5897. break;
  5898. }
  5899. g[2] && r.ops.pop(), r.trys.pop();
  5900. continue;
  5901. }
  5902. A = e.call(t, r);
  5903. } catch (t) {
  5904. (A = [6, t]), (n = 0);
  5905. } finally {
  5906. i = g = 0;
  5907. }
  5908. if (5 & A[0]) throw A[1];
  5909. return { value: A[0] ? A[1] : void 0, done: !0 };
  5910. })([A, o]);
  5911. };
  5912. }
  5913. },
  5914. r =
  5915. (this && this.__spreadArrays) ||
  5916. function () {
  5917. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  5918. var n = Array(t),
  5919. g = 0;
  5920. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  5921. return n;
  5922. };
  5923. Object.defineProperty(e, "__esModule", { value: !0 });
  5924. var o = i(3),
  5925. C = (function () {
  5926. function t(t, e) {
  5927. var i = this,
  5928. n = e.notice,
  5929. C = e.intercept,
  5930. I = e.childAttr,
  5931. s = e.afferent;
  5932. return (
  5933. (this.updateNotices = []),
  5934. (this.changeNotices = []),
  5935. (this.getSubAll = function () {
  5936. var t = [];
  5937. return (
  5938. i.subscribe.forEach(function (e) {
  5939. t.push.apply(t, e.getSubAll());
  5940. }),
  5941. r(i.subscribe, t)
  5942. );
  5943. }),
  5944. (this.data = t),
  5945. (this.subscribe = []),
  5946. (this.updateKeys = new Set()),
  5947. (this.attrs = []),
  5948. (this.intercept = C),
  5949. (this.afferent = s),
  5950. (this.notice = n),
  5951. (this.direct = !1),
  5952. (this.childAttr = I),
  5953. (this.deleteUpdateKey = this.deleteUpdateKey.bind(this)),
  5954. (this.addUpdateKey = this.addUpdateKey.bind(this)),
  5955. (this.changeNotices = []),
  5956. (this.setHandle = o.debounce(
  5957. function (t) {
  5958. return g(i, void 0, void 0, function () {
  5959. var e;
  5960. return A(this, function (i) {
  5961. switch (i.label) {
  5962. case 0:
  5963. return [4, this.setVal.apply(this, t)];
  5964. case 1:
  5965. return (
  5966. (e = i.sent()),
  5967. Object.keys(t[4]).forEach(this.deleteUpdateKey),
  5968. this.noticeTick(),
  5969. this.noticeAll(e || { args: {} }),
  5970. e && this.noticeChange(),
  5971. [2]
  5972. );
  5973. }
  5974. });
  5975. });
  5976. },
  5977. 0,
  5978. function (t) {
  5979. var e = t[0][0],
  5980. i = e.sub,
  5981. n = e.current,
  5982. g = e.state,
  5983. A = e.childAttr,
  5984. r = {};
  5985. return (
  5986. t.forEach(function (t) {
  5987. var e = t[0],
  5988. i = e.key,
  5989. n = e.val;
  5990. return (r[i] = n);
  5991. }),
  5992. [i, n, g, A, r]
  5993. );
  5994. },
  5995. function () {
  5996. i.changeNotices = [];
  5997. }
  5998. )),
  5999. this
  6000. );
  6001. }
  6002. return (
  6003. (t.prototype.addUpdateKey = function (t) {
  6004. var e = this;
  6005. this.updateKeys.add(t),
  6006. this.subscribe.forEach(function (t) {
  6007. t.updateKeys.has(e) || t.addUpdateKey(e);
  6008. });
  6009. }),
  6010. (t.prototype.deleteUpdateKey = function (t) {
  6011. var e = this;
  6012. this.updateKeys.delete(t),
  6013. 0 === this.updateKeys.size &&
  6014. (this.subscribe.forEach(function (t) {
  6015. t.deleteUpdateKey(e);
  6016. }),
  6017. this.test && this.test());
  6018. }),
  6019. (t.prototype.noticeTick = function () {
  6020. if (0 === this.updateKeys.size) for (; this.updateNotices.length; ) this.updateNotices.shift()();
  6021. this.subscribe.forEach(function (t) {
  6022. return t.noticeTick();
  6023. });
  6024. }),
  6025. (t.prototype.noticeChange = function () {
  6026. for (; this.changeNotices.length; ) this.changeNotices.shift()();
  6027. this.subscribe.forEach(function (t) {
  6028. return t.noticeChange();
  6029. });
  6030. }),
  6031. (t.prototype.nextTick = function (t) {
  6032. var e = this;
  6033. setTimeout(function () {
  6034. 0 === e.updateKeys.size
  6035. ? t()
  6036. : (e.updateNotices.push(t),
  6037. setTimeout(function () {
  6038. if (~e.updateNotices.indexOf(t)) {
  6039. e.updateNotices.slice(e.updateNotices.indexOf(t), 1);
  6040. t();
  6041. }
  6042. }, 200));
  6043. });
  6044. }),
  6045. (t.prototype.nextChange = function (t) {
  6046. this.changeNotices.push(t);
  6047. }),
  6048. (t.prototype.interceptAll = function (t) {
  6049. return g(this, void 0, void 0, function () {
  6050. var e, i, n, g, C, I;
  6051. return A(this, function (A) {
  6052. for (e = [], i = [], g = r([this], this.getSubAll()), C = void 0, I = 0; (C = g[I]); I++)
  6053. if ((i.push(C.afferent), C.intercept)) {
  6054. if (((n = C.intercept(i, t, e)), e.push(n), o.type.isBoolean(n) && !n)) return [2, !1];
  6055. } else e.push(void 0);
  6056. return [2, e];
  6057. });
  6058. });
  6059. }),
  6060. (t.prototype.noticeAll = function (t) {
  6061. t = n(n({}, t), { state: { data: this.afferent || this, trigger: t.state, ret: void 0 } });
  6062. var e = this.notice(t);
  6063. t.state.ret = e;
  6064. for (var i = 0; i < this.subscribe.length; i++) this.subscribe[i].noticeAll(t);
  6065. return t;
  6066. }),
  6067. (t.prototype.bindDataChange = function () {
  6068. var t = this;
  6069. (this.__firstBind = !0),
  6070. Object.keys(this.data).forEach(function (e) {
  6071. t.attrs.push(e), t.bindItem(t, t, t.data, e, t.childAttr);
  6072. }),
  6073. (this.__firstBind = !1);
  6074. }),
  6075. (t.prototype.getSeftSub = function () {
  6076. return [
  6077. this,
  6078. this.subscribe.flatMap(function (t) {
  6079. return t.getSeftSub();
  6080. }),
  6081. ];
  6082. }),
  6083. (t.prototype.setVal = function (t, e, i, r, C) {
  6084. return g(this, void 0, void 0, function () {
  6085. var g,
  6086. I,
  6087. s,
  6088. a = this;
  6089. return A(this, function (A) {
  6090. switch (A.label) {
  6091. case 0:
  6092. return (
  6093. (g = { args: C }),
  6094. !o.type.isUndefined(C.x) && o.type.isUndefined(C.y)
  6095. ? (C.y = this.afferent.y)
  6096. : !o.type.isUndefined(C.y) && o.type.isUndefined(C.x) && (C.x = this.afferent.x),
  6097. [4, t.interceptAll(C)]
  6098. );
  6099. case 1:
  6100. return (I = A.sent())
  6101. ? ((s = n({}, C)),
  6102. I.forEach(function (t) {
  6103. return (s = n(n({}, s), t));
  6104. }),
  6105. Object.keys(i).forEach(function (n) {
  6106. s.hasOwnProperty(n) && i[n] !== s[n] && (a.relieveOldSubs(i[n], r), (i[n] = s[n]), a.continueListen(t, e, i, n, r, s[n]));
  6107. }),
  6108. [2, g])
  6109. : [2, null];
  6110. }
  6111. });
  6112. });
  6113. }),
  6114. (t.prototype.relieveOldSubs = function (e, i) {
  6115. var n = this;
  6116. o.type.isUndefined(e) ||
  6117. (e instanceof t || (i && e[i] instanceof t)
  6118. ? this.relieveOldSub(e, i)
  6119. : o.type.isArray(e)
  6120. ? e.forEach(function (t, e) {
  6121. n.relieveOldSub(t, i);
  6122. })
  6123. : o.type.isObject(e) &&
  6124. Object.values(e).forEach(function (t) {
  6125. n.relieveOldSub(t, i);
  6126. }));
  6127. }),
  6128. (t.prototype.relieveOldSub = function (e, i) {
  6129. e instanceof t
  6130. ? e.subscribe.splice(e.subscribe.indexOf(this), 1)
  6131. : i && e[i] instanceof t && e[i].subscribe.splice(e[i].subscribe.indexOf(this), 1);
  6132. }),
  6133. (t.prototype.continueListen = function (e, i, n, g, A, r) {
  6134. var C = this;
  6135. o.type.isNull(r) ||
  6136. o.type.isUndefined(r) ||
  6137. (r instanceof t || (A && r[A] instanceof t)
  6138. ? ~(r instanceof t ? r : r[A]).subscribe.indexOf(e) || this.bindItem(e, i[g], n, g, A, !0)
  6139. : o.type.isArray(r)
  6140. ? r.forEach(function (t, n) {
  6141. C.bindItem(e, i[g], r, n, A, !0);
  6142. })
  6143. : o.type.isObject(r) &&
  6144. Object.keys(n[g]).forEach(function (t) {
  6145. C.bindItem(e, i[g], r, t, A, !0);
  6146. }));
  6147. }),
  6148. (t.prototype.bindItem = function (e, i, n, g, A, r) {
  6149. void 0 === r && (r = !1),
  6150. n instanceof t ? n.subscribe.push(e) : A && n[g] && n[g][A] instanceof t && n[g][A].subscribe.push(e),
  6151. r ||
  6152. (Object.defineProperty(i, g, {
  6153. get: function () {
  6154. return n[g];
  6155. },
  6156. set: function (t) {
  6157. this.__firstBind || this.direct
  6158. ? ((n[g] = t), this.continueListen(e, i, n, g, A, t))
  6159. : (this.addUpdateKey(g), this.setHandle({ sub: e, current: i, state: n, key: g, childAttr: A, val: t }));
  6160. },
  6161. }),
  6162. this.continueListen(e, i, n, g, A, n[g]));
  6163. }),
  6164. t
  6165. );
  6166. })();
  6167. (e._State = C),
  6168. (e.getter = function (t, e) {
  6169. e.attrs.forEach(function (i) {
  6170. Object.defineProperty(t, i, {
  6171. configurable: !0,
  6172. get: function () {
  6173. return e[i];
  6174. },
  6175. });
  6176. });
  6177. }),
  6178. (e.setter = function (t, e) {
  6179. e.attrs.forEach(function (i) {
  6180. Object.defineProperty(t, i, {
  6181. configurable: !0,
  6182. set: function (t) {
  6183. e[i] = t;
  6184. },
  6185. });
  6186. });
  6187. }),
  6188. (e.State = C);
  6189. },
  6190. function (t, e, i) {
  6191. "use strict";
  6192. Object.defineProperty(e, "__esModule", { value: !0 }),
  6193. (e.default = {
  6194. menu: {
  6195. __name: "菜单",
  6196. music: "背景音乐",
  6197. base: "基础设置",
  6198. information: "场景信息",
  6199. screen: "初始画面",
  6200. hotspot: "添加热点",
  6201. guide: "自动导览",
  6202. sign: "地面Logo",
  6203. walk: "漫游可行",
  6204. model: "3D模型",
  6205. cad: "户型图",
  6206. data: "数据对接",
  6207. custom: "上传下载",
  6208. videos: "添加视频",
  6209. vrhouse: "看房 4Dkankan",
  6210. business: "看店 4Dkankan",
  6211. scene: "场景跳转",
  6212. video: "添加视频",
  6213. decor: "一键换装",
  6214. link: "场景关联",
  6215. },
  6216. modules: {
  6217. __name: "模块",
  6218. base: {
  6219. __name: "基础设置",
  6220. qrcode: "场景二维码",
  6221. qrcode_download: "下载二维码",
  6222. qrcode_tips: "自定义logo",
  6223. scene_link: "场景地址",
  6224. scene_link_copy: "复制链接",
  6225. scene_link_copy_tips: "场景链接复制成功",
  6226. bgm: "背景音乐",
  6227. pano_text: "漫游视角可视",
  6228. mode_2d_text: "平面图可视",
  6229. mode_3d_text: "三维模型可视",
  6230. map_text: "小地图预览可视",
  6231. vr_text: "VR模式可视",
  6232. vr_tips: "请在手机展示页面观看VR效果",
  6233. guide_text: "自动导览可视",
  6234. rule_text: "标尺可视",
  6235. cad_text: "俯视图户型可视",
  6236. measure_text: "测量工具可视",
  6237. measure_tips: "编辑模式下无法使用测距功能,请在展示页面操作",
  6238. turned_vr: "VR功能已{status}",
  6239. turned_map: "小地图功能已{status}",
  6240. turned_cad: "俯视图户型功能已{status}",
  6241. turned_m2d: "平面视角功能已{status}",
  6242. turned_m3d: "三维视角功能已{status}",
  6243. turned_pano: "漫游视角功能已{status}",
  6244. turned_rule: "标尺功能已{status}",
  6245. turned_guide: "自动导览功能已{status}",
  6246. turned_measure: "测距功能已{status}",
  6247. shortcut_copy: "一键复制",
  6248. share_link: "分享链接给好友",
  6249. measure_show_tips: "请在展示页面使用测距功能",
  6250. delete_measure_line: "删除测量线",
  6251. please_click_tips: "'请点击“允许”'",
  6252. vr_fail_app_tips: "浏览器未能检测到转动。请在手机或浏览器设置中开启了运动和方向访问等设置,然后刷新此页面。",
  6253. vr_fail_safari_tips: "浏览器未能检测到转动。为完整体验VR效果,请打开 “设置” > “Safari” > “隐私和安全” 下的 “运动和方向访问” 开关,然后刷新此页面。",
  6254. loading_bottom_text: "四维时代提供技术支持",
  6255. vr_fail_reopen_tips: "运动和方向访问失败。您需要完全关闭此应用,然后再次打开,并允许访问运动与方向",
  6256. add_music_title: "添加背景音乐",
  6257. add_music_tips: "支持MP3、WAV等音频格式,不超过5MB",
  6258. re_add_music: "重新添加",
  6259. re_add_title: "重新添加背景音乐",
  6260. re_add_tips: "新添加的音乐会替换已添加的音乐,<br>确定继续添加吗?",
  6261. re_add_mobile_tips: "重新添加将会覆盖已添加音乐",
  6262. delete_tips: "您确定删除当前音乐吗?",
  6263. delete_title: "删除背景音乐",
  6264. bgm_empty_tips: "请选择背景音乐",
  6265. wechat: "微信",
  6266. friend_circle: "朋友圈",
  6267. },
  6268. information: {
  6269. __name: "场景信息",
  6270. title: "标题",
  6271. title_tips: "请填写标题",
  6272. title_require: "请添加标题({limit}字以内)",
  6273. description: "简介",
  6274. description_tips: "请填写简介",
  6275. link: "添加链接",
  6276. link_text_tips: "请填写链接文本",
  6277. link_href_tips: "请填写链接地址",
  6278. link_text_require: "请填写链接文本",
  6279. link_href_require: "请填写链接地址",
  6280. classify: "分类",
  6281. upload_time: "上传时间",
  6282. record: "未记录",
  6283. shoot_count: "拍摄数量",
  6284. password: "访问密码",
  6285. password_tips: "访问密码",
  6286. password_desc: "设置完密码后,当其他人访问您的场景时,需要输入您设置的密码才能访问。如无需设置点击“公开”即可。",
  6287. password_require: "请输入{limit}位数的密码",
  6288. logo_edit: "编辑页面Logo",
  6289. logo_exit: "退出页面Logo编辑",
  6290. logo_show_bottom: "显示初始Logo",
  6291. logo_style1: "顶部Logo-方",
  6292. logo_style2: "顶部Logo-长",
  6293. logo_delete: "是否删除已上传Logo?",
  6294. },
  6295. screen: { __name: "初始画面", current: "当前初始视角", current_set: "设置为初始画面", tips: "移动屏幕,点击保存您的初始画面。" },
  6296. hotspot: {
  6297. __name: "添加热点",
  6298. add: "添加热点",
  6299. edit: "编辑热点",
  6300. count: "已添加热点",
  6301. location: "热点定位",
  6302. location_tips: "将热点标记并拖动到合适的位置。",
  6303. location_modify: "修改热点位置",
  6304. location_confirm: "确定热点位置",
  6305. location_desc: "请于左方两个场景区域拖动热点并对准所需标记的位置。",
  6306. style: "选择热点样式",
  6307. style_desc: "选择默认样式,或者手动上传图片自定义样式,上传图片格式PNG/JPG",
  6308. style_name: "样式",
  6309. style_dele: "是否删除该样式?",
  6310. style_manage: "管理",
  6311. style_exit: "退出",
  6312. media_photo: "可添加图片以丰富热点内容",
  6313. media_video: "可上传本地视频,进行更多的展示",
  6314. media_voice: "可上传本地音频内容进行热点讲解",
  6315. media_link: "可添加视频的超链接,视频将在热点里播放",
  6316. title: "标题",
  6317. title_tips: "请填写标题",
  6318. title_require: "请添加标题({limit}字以内)",
  6319. description: "简介",
  6320. description_tips: "请填写简介",
  6321. text_link: "添加链接",
  6322. text_link_text_tips: "请填写链接文本",
  6323. text_link_href_tips: "请填写链接地址",
  6324. text_link_text_require: "链接文本不能为空",
  6325. text_link_href_require: "链接地址不能为空",
  6326. link: "嵌入式链接",
  6327. link_require: "请添加外链",
  6328. photo: "图片",
  6329. voice: "音频",
  6330. video: "视频",
  6331. photo_tips: "支持JPG、PNG等图片格式,不超过{size}MB",
  6332. voice_tips: "支持MP3、WAV等音频格式,不超过{size}MB",
  6333. video_tips: "支持MP4、MOV等视频格式,不超过{size}MB",
  6334. photo_require: "请添加图片",
  6335. voice_require: "请添加音频",
  6336. video_require: "请添加视频",
  6337. m_location_tips1: "将上下分屏热点对准同一个所标记目标",
  6338. m_location_tips2: "确定热点位置,点击下一步编辑内容",
  6339. m_location_up: "上方",
  6340. m_location_left: "左侧",
  6341. m_location_move_tips: "辅助校准位置可能不准确,<br>请检查并拖动到{direction}相同位置",
  6342. set_visible_btn: "设置热点可视",
  6343. save_visible_btn: "保存当前设置",
  6344. save_hotspot_done: "保存热点成功",
  6345. save_hotspot_fail: "保存热点失败",
  6346. delete_hotspot_tips: "是否删除当前热点?",
  6347. delete_hotspot_done: "热点删除成功",
  6348. delete_hotspot_fail: "热点删除失败",
  6349. cant_add_hotspot_tips: "无法添加热点",
  6350. cant_add_hotspot_content: "热点数目已达最大:{limit}",
  6351. link_text_tips: "链接标题",
  6352. link_href_tips: "链接",
  6353. link_text_require: "请填写链接文本",
  6354. link_href_require: "请填写链接地址",
  6355. add_media: "添加多媒体",
  6356. },
  6357. guide: {
  6358. __name: "自动导览",
  6359. route: "导航路线",
  6360. view: "切换视角",
  6361. record: "开始录制",
  6362. record_audio: "录音",
  6363. pause: "暂停",
  6364. stop: "停止",
  6365. end: "结束",
  6366. delete: "删除",
  6367. continue: "继续录制",
  6368. preview: "预览",
  6369. clear: "清空",
  6370. sync: "声画同步",
  6371. sound: "录制音频",
  6372. file: "上传音频",
  6373. file_add: "添加音频",
  6374. tips: "点击开始录制导览",
  6375. start: "开始",
  6376. finish: "完成录制",
  6377. less: "小于",
  6378. replace_tips: "是否重新录制导览?",
  6379. replace_content: "重新录制将覆盖之前的数据",
  6380. sound_open_fail_tips: "麦克风开启失败",
  6381. sound_tips: "麦克风开启失败,是否继续录制?",
  6382. sound_content: "您需要在浏览器的设置中允许此网站使用麦克风,并且添加麦克风设备,然后刷新该页面。",
  6383. upload_sound_done: "上传语音讲解成功",
  6384. upload_sound_fail: "上传语音讲解失败",
  6385. delete_sound_done: "删除语音讲解成功",
  6386. delete_sound_fail: "删除语音讲解失败",
  6387. room_title: "标题",
  6388. room_title_tips: "请输入导览标题",
  6389. room_title_require: "请输入标题",
  6390. room_panel_title: "导览信息",
  6391. room_sound_title: "录制音频",
  6392. delete_video_content: "您当前录制的画面将会被删除",
  6393. delete_file_content: "您当前上传的语音讲解将会被删除",
  6394. delete_sound_content: "已录制配音将会被删除",
  6395. camera_save_success: "镜头保存成功",
  6396. clear_video_tip: "您当前录制的内容将会被清空",
  6397. saving_sound: "正在保存录音",
  6398. save_sound_done: "录音保存成功",
  6399. save_sound_fail: "录音保存失败",
  6400. no_sound_tips: "当前不支持录音<br>可在微信或电脑端录音",
  6401. sound_success_tips: "麦克风开启成功",
  6402. sound_fail_tips: "当前不支持录音<br>公众号信息配置错误",
  6403. wechat_sound_fail_tips: "微信麦克风开启失败",
  6404. open_sound_guide_tips: "可能您若要开启录音,请于微信的设置—隐私—授权管理中开启。且保证录音设备正常",
  6405. sound_cant_open_tips: "此浏览器不支持录音。<br>建议更换其他主流浏览器,体验更佳",
  6406. replace_sound_tips: "是否重新录制?",
  6407. replace_sound_content: "已有语音讲解将会被替换",
  6408. merge_sound_fail: "合并语音讲解失败",
  6409. sound_limit: "录制时长为{time}分钟,当前已经达到上限",
  6410. select_to_record: "请选择对应点位进行本区域的导览录制",
  6411. },
  6412. sign: { title: "Logo样式", size: "Logo大小", style0: "样式一", style1: "样式二", style2: "样式三", style3: "手动上传" },
  6413. walk: {
  6414. title: "漫游可行",
  6415. tips1: "通过设置漫游可行,进一步优化在漫游时出现的体验;例如,您在漫游时,出现穿透房间的情况。",
  6416. tips2: "通过点选各个漫游点的连线即可设置漫游点的可行性。",
  6417. save: "保存当前设置",
  6418. hide: "隐藏该点位置",
  6419. show: "显示该点位置",
  6420. pano_tips: "提示:您隐藏了初始画面点位,此操作将使进入场景后无法漫游。",
  6421. },
  6422. model: {
  6423. __name: "3D模型",
  6424. cad: "CAD视角",
  6425. cad_download: "平面图下载",
  6426. view: "切换视角",
  6427. title: "增添结构",
  6428. title_door: "门窗类",
  6429. title_component: "构建类",
  6430. title_other: "其他",
  6431. attribute: "属性",
  6432. door: "门",
  6433. double_door: "门",
  6434. slideDoor: "移门",
  6435. casement: "窗",
  6436. bayCase: "飘窗",
  6437. groundCase: "落地窗",
  6438. column: "柱子",
  6439. furnColumn: "框架柱",
  6440. furnFlue: "烟道",
  6441. point: "点",
  6442. line: "墙",
  6443. tagging: "标注",
  6444. tagging_name_tips: "请输入名称",
  6445. tagging_area_tips: "输入面积,支持小数点后面两位",
  6446. direction: "指南针",
  6447. wallLine: "墙属性",
  6448. widget_delete: "{widget}将被删除",
  6449. panel_btn_default: "恢复默认",
  6450. panel_btn_delete: "删除部件",
  6451. attr_angle: "旋转角度",
  6452. attr_within: "翻转方向",
  6453. attr_ewidth: "宽度",
  6454. attr_eheight: "高度",
  6455. attr_tick: "厚度",
  6456. attr_showTitle: "标注名称",
  6457. attr_showContent: "标注面积",
  6458. attr_top: "顶部",
  6459. attr_bottom: "底部",
  6460. attr_estart: "入户门",
  6461. success: "成功添加{widget}",
  6462. error_location: "当前位置无法添加{widget}",
  6463. error_outdoor: "户外无法添加{widget}",
  6464. error_something: "当前位置点有建筑,无法添加{widget}",
  6465. error_widget: "当前位置不可添加{widget}",
  6466. enter_adjust_floor: "进入地面高度调节模式",
  6467. exit_adjust_floor: "退出地面高度调节模式",
  6468. color_title: "量角器颜色:",
  6469. },
  6470. cad: {
  6471. __name: "户型图",
  6472. name: "户型图",
  6473. no_tip: "不再提示",
  6474. reset: "重置",
  6475. cad_download: "户型图下载",
  6476. cad_download_ing: "下载中…",
  6477. label_tip: "点击右键或Esc键可以退出添加标注。",
  6478. wall_tip: "点击右键或Esc键可以退出画墙。",
  6479. save_undf_tip: "无法保存空户型图。",
  6480. reload_tip: "即将导入由模型生成的户型图,此操作会清空现有户型,是否继续?",
  6481. reset_tip: "此操作会清空现有户型,是否继续?",
  6482. title_door: "门窗",
  6483. title_component: "构建",
  6484. title_wall: "画墙",
  6485. title_other: "标注",
  6486. border_wall: "外墙",
  6487. wall: "内墙",
  6488. attribute: "属性",
  6489. door: "门",
  6490. slideDoor: "移门",
  6491. doubleDoor: "双开门",
  6492. casement: "窗",
  6493. bayCase: "飘窗",
  6494. groundCase: "落地窗",
  6495. column: "柱子",
  6496. furnColumn: "框架柱",
  6497. furnFlue: "烟道",
  6498. point: "点",
  6499. line: "墙",
  6500. tagging: "单个",
  6501. un_data_tip: "无法下载空户型图,请先绘制。",
  6502. taggings: "多个",
  6503. tagging_name_tips: "请输入名称",
  6504. tagging_custom_name_tips: "自定义房间名称",
  6505. tagging_area_tips: "输入面积,支持小数点后面两位",
  6506. direction: "指南针",
  6507. wallLine: "墙属性",
  6508. widget_delete: "{widget}将被删除",
  6509. panel_btn_default: "恢复默认",
  6510. panel_btn_delete: "删除部件",
  6511. attr_angle: "旋转角度",
  6512. attr_within: "翻转方向",
  6513. attr_ewidth: "宽度",
  6514. attr_eheight: "高度",
  6515. attr_tick: "厚度",
  6516. attr_showTitle: "标注名称",
  6517. attr_showContent: "标注面积",
  6518. attr_top: "顶部",
  6519. attr_bottom: "底部",
  6520. attr_estart: "入户门",
  6521. success: "成功添加{widget}",
  6522. error_location: "当前位置无法添加{widget}",
  6523. error_outdoor: "户外无法添加{widget}",
  6524. error_something: "当前位置点有建筑,无法添加{widget}",
  6525. error_widget: "当前位置不可添加{widget}",
  6526. enter_adjust_floor: "进入地面高度调节模式",
  6527. exit_adjust_floor: "退出地面高度调节模式",
  6528. color_title: "量角器颜色:",
  6529. hall_tests: "整套,客厅,走廊,餐厅,起居室,客餐厅,玄关,门厅",
  6530. room_tests: "主卧,儿童房,次卧,客卧,老人房,卧室",
  6531. other_tests: "书房,厨房,卫生间,多功能室,阳台,储物间,步入式衣柜,外景,露台(无顶),影视间,入房花园",
  6532. rotate: "旋转",
  6533. },
  6534. videos: {
  6535. __name: "添加视频",
  6536. tips: "请先点击场景的基准面,确定视频位置",
  6537. panel_title: "视频属性",
  6538. panel_preview: "预览",
  6539. panel_upload: "上传视频",
  6540. panel_upload_tips: "支持MP4视频格式",
  6541. panel_move: "位移",
  6542. panel_zoom: "缩放",
  6543. panel_thickness: "厚度",
  6544. recoverRatio: "恢复原始比例",
  6545. recoverRatioTip: "恢复视频文件原始长宽比",
  6546. },
  6547. custom: {
  6548. model_title: "模型下载",
  6549. uploading: "文件上传中...",
  6550. download: "原始模型下载",
  6551. download_panos: "下载点位图",
  6552. upload: "修改模型上传",
  6553. title1: "模型下载/上传功能教程",
  6554. tips11: "1.下载场景模型的压缩包后,使用三维软件打开解压后文件“mesh.obj”,即可开展编辑;",
  6555. tips12: "2.编辑完成后,建议将模型贴图进行烘焙,烘焙贴图需控制在1.5M以内,同时,保存的obj文件需要控制在3M以内;",
  6556. tips13: "3.完成1、2步骤后,将obj,mtl,贴图打包为zip压缩包上传即可。",
  6557. title2: "注:",
  6558. tips21: "1.请尽量控制文件大小,以免浏览的时候卡顿,影响体验。",
  6559. tips22: "2.请将obj及压缩包的名称保持一致,否则会替换失败。",
  6560. get_image_fail: "获取贴图失败,可能网络状态不佳,请检查您的网络设置并重新尝试。",
  6561. download_model_fail: "模型下载失败",
  6562. reupload_tips: "上传后点击保存并发布生效",
  6563. panoramic_upload: "全景照片上传",
  6564. panoramic_upload_tips: "上传后点击“保存并发布”即生效",
  6565. panoramic_upload_box_tips: "请上传对应点位名称的JPG图片",
  6566. panoramic_download: "全景照片下载",
  6567. panoramic_download_tips: "请勿修改照片名称和格式",
  6568. panoramic: "全景图片",
  6569. ball_video: "球幕视频",
  6570. ball_video_upload_tips: "上传后点击“保存并发布”即生效",
  6571. ball_video_download_tips: "请勿修改视频名称和格式",
  6572. ball_video_upload_box_tips: "球幕视频支持MP4格式,不超过1024M",
  6573. upload_title: "上传文件",
  6574. upload_format_error: "文件格式错误,请重新上传",
  6575. upload_name_error: "文件名称错误,请重新上传",
  6576. upload_success: "上传成功,保存并发布后才能生效",
  6577. upload_code_5017: "上传模型失败,请参照右侧教程",
  6578. upload_code_5018: "zip文件只能有一层目录或无目录",
  6579. upload_code_5019: "必须有且仅有一个obj和mtl文件",
  6580. upload_code_5020: "贴图需控制在1.5M以内,obj文件需要控制在20M以内。",
  6581. upload_code_5012: "数据不正常",
  6582. upload_code_5023: "上传文件格式不正确,只能是jpg或mp4格式",
  6583. download_tips: "下载后名称与格式请勿修改",
  6584. download_fail: "下载失败",
  6585. },
  6586. vrhouse: { __name: "VR看房", linkto_management: "前往看房管理后台", refer: "刷新", scene_link: "场景链接" },
  6587. business: {
  6588. __name: "商圈模块",
  6589. list_title: "场景热点列表",
  6590. list_unf: "当前场景没有热点",
  6591. add_tip_info: "请在场景中添加热点后,再绑定热点",
  6592. linkto_management: "前往看店管理后台",
  6593. refer: "刷新",
  6594. scene_link: "场景链接",
  6595. explain: "说明",
  6596. shopexplain: { 1: "当前商品数据来源于场景绑定的4DKanKan店铺商品数据,如需增加请点击", 2: "此处跳转" },
  6597. select_style: "选择热点样式",
  6598. join_info: "关联商品信息",
  6599. add_com: "添加商品",
  6600. join_info_show: "关联商品会在热点中展示",
  6601. select_com: "选择商品",
  6602. },
  6603. link: {
  6604. __name: "跳转关联",
  6605. title1: "锁定关联点",
  6606. title2: "编辑关联点",
  6607. title3: "全景图关联",
  6608. list_text: " 已关联场景({l_count}), 全景图({p_count})",
  6609. btn_new_text: "添加关联点",
  6610. btn_add_title: "关联点定位",
  6611. btn_add_text: "确定关联点位置",
  6612. btn_add_desc: "将关联点标记并拖动到合适的位置。",
  6613. btn_edit_text: "修改关联点位置",
  6614. style: "关联点样式",
  6615. style_name: "样式",
  6616. style_desc: "支持自定义图标,建议尺寸为128x128 像素,格式为jpg/png。",
  6617. style_dele: "是否删除该样式?<br />如该样式在其它关联点使用,也将被删除",
  6618. desc_title: "描述",
  6619. desc_tips: "请输入描述内容",
  6620. desc_require: "请输入描述内容",
  6621. type: "选择关联类型",
  6622. type_photo: "支持上传宽高比为2:1的单张全景图片,建议像素不小于6000x3000像素,文件不超过120M。",
  6623. type_photo_require: "请上传全景图",
  6624. type_link: "请输入目标场景链接",
  6625. type_link_tips: "http(s)://",
  6626. type_link_require: "请输入需要跳转的场景链接",
  6627. enter_title: "进入画面",
  6628. enter_require: "请设置进入画面",
  6629. enter_btn_text: "设置进入画面",
  6630. outer_title: "跳出点位置",
  6631. outer_style: "跳出点样式",
  6632. outer_desc: "支持自定义图标,建议尺寸为128x128像素,格式为jpg/png。",
  6633. outer_require: "请设置跳出点位置",
  6634. outer_btn_text: "设置跳出点位置",
  6635. links_title: "选择全景图",
  6636. links_tips: "选择全景图,拖动到左侧画面相应位置,进行跳转设置。",
  6637. links_cancel_tips: "取消关联设置",
  6638. },
  6639. },
  6640. login: { __name: "登录", title: "提示", login: "去登录", logon: "登录完毕,继续", login_tips: "您没有登录,请于主页登录后再编辑" },
  6641. common: {
  6642. __name: "公用",
  6643. on: "打开",
  6644. off: "关闭",
  6645. add: "添加",
  6646. set: "确定",
  6647. ok: "确定",
  6648. save: "保存",
  6649. cancel: "取消",
  6650. complete: "完成",
  6651. edit: "修改",
  6652. giveup: "放弃",
  6653. commit: "提交",
  6654. photo: "图片",
  6655. voice: "音频",
  6656. video: "视频",
  6657. bgm: "音乐",
  6658. crop: "裁剪",
  6659. upload: "上传",
  6660. download: "下载",
  6661. change: "更改",
  6662. unnamed: "未命名",
  6663. publish: "保存并发布",
  6664. publish_text: "保存并发布成功!",
  6665. publish_tips: "是否立刻前往观看您的场景?",
  6666. publish_btn_ok: "立刻前往",
  6667. publish_btn_no: "暂时不去",
  6668. public: "公开",
  6669. private: "加密",
  6670. waiting: "请稍等...",
  6671. audio: "音频",
  6672. second: "秒",
  6673. delete: "删除",
  6674. prev: "上一步",
  6675. next: "下一步",
  6676. meter: "约{meter}米",
  6677. guide: "导览",
  6678. rule: "测量工具",
  6679. roaming: "漫游",
  6680. continue: "继续",
  6681. ensure_delete: "确定删除",
  6682. text_limit: "限制{limit}字内",
  6683. default: "默认",
  6684. custom: "自定义",
  6685. back: "返回",
  6686. will_delete: "将被删除",
  6687. setup: "设置",
  6688. exit: "退出",
  6689. size: "大小",
  6690. music: {
  6691. __name: "背景音乐",
  6692. none: "无",
  6693. cheerfu: "欢快",
  6694. ethereal: "空灵",
  6695. rhythmic: "节奏",
  6696. nostalgic: "怀旧",
  6697. missing: "想念",
  6698. retro: "复古",
  6699. strings: "琴弦",
  6700. happy: "愉快",
  6701. },
  6702. category: { __name: "分类", museum: "文博", estate: "地产", eshop: "电商", catering: "餐饮", home: "家居", other: "其他" },
  6703. uploads: {
  6704. __name: "文件上传",
  6705. uploading: "上传中",
  6706. uploaded: "已上传",
  6707. wait: "等待上传...",
  6708. error: "上传出错",
  6709. add: "添加文件",
  6710. start: "开始上传",
  6711. file_require: "请添加文件",
  6712. cant_upload: "您的浏览器不支持上传文件",
  6713. not_support: "您选择的不是浏览器支持的{fileType}文件,请重新选择",
  6714. too_large: "文件过大,不能大于{size}MB",
  6715. too_large_reupload_tips: "上传视频过大,请重新上传",
  6716. },
  6717. tips: { __name: "提示", wait: "请等待..." },
  6718. },
  6719. tips: {
  6720. __name: "弹窗、提示",
  6721. title: "提示",
  6722. set_done: "设置成功",
  6723. set_fail: "设置失败",
  6724. save_done: "保存成功",
  6725. save_fail: "保存失败",
  6726. delete: "是否删除?",
  6727. delete_done: "删除成功",
  6728. delete_fail: "删除失败",
  6729. upload_done: "上传成功",
  6730. upload_fail: "上传失败",
  6731. exception: "异常错误",
  6732. network_error: "网络连接失败,请稍后再试",
  6733. file_notfound: "文件不存在",
  6734. scene_notfound: "场景不存在",
  6735. params_notfound: "缺少必要参数",
  6736. camera_notfound: "找不到该场景对应的相机",
  6737. password_error: "密码错误",
  6738. data_error: "数据不正常",
  6739. auth_deny: "无权操作该场景",
  6740. clear: "是否清空?",
  6741. upload_pic_fail: "上传图片失败",
  6742. wait: "请稍后...",
  6743. house_type_save_fail: "户型保存失败",
  6744. },
  6745. show: {
  6746. __name: "展示页面",
  6747. on: "开启",
  6748. off: "关闭",
  6749. measure: "测距工具",
  6750. measure_start: "起点",
  6751. measure_end: "终点",
  6752. measure_button: "确定{status}",
  6753. location_up: "上方",
  6754. location_left: "左侧",
  6755. location_start_tips: "请先在{direction}点击",
  6756. location_end_tips: "起点确定完毕,请定位终点",
  6757. vr: "VR模式",
  6758. share: "分享",
  6759. music: "{status}音乐",
  6760. password_tips: "密码",
  6761. password_require: "请输入密码",
  6762. },
  6763. components: {
  6764. user_guid: {
  6765. __name: "用户引导",
  6766. title: "操作提示",
  6767. pano: "行走<br />点击任意方向移动",
  6768. rotate: "旋转视角<br />左右滑动屏幕,旋转视觉",
  6769. zoom: "缩放<br />双指滑动放大或缩小视图",
  6770. set: "我知道了",
  6771. },
  6772. },
  6773. });
  6774. },
  6775. function (t, e, i) {
  6776. "use strict";
  6777. var n =
  6778. (this && this.__assign) ||
  6779. function () {
  6780. return (n =
  6781. Object.assign ||
  6782. function (t) {
  6783. for (var e, i = 1, n = arguments.length; i < n; i++)
  6784. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  6785. return t;
  6786. }).apply(this, arguments);
  6787. },
  6788. g =
  6789. (this && this.__spreadArrays) ||
  6790. function () {
  6791. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  6792. var n = Array(t),
  6793. g = 0;
  6794. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  6795. return n;
  6796. },
  6797. A =
  6798. (this && this.__importDefault) ||
  6799. function (t) {
  6800. return t && t.__esModule ? t : { default: t };
  6801. };
  6802. Object.defineProperty(e, "__esModule", { value: !0 });
  6803. var r = A(i(5)),
  6804. o = A(i(14)),
  6805. C = A(i(11)),
  6806. I = A(i(8)),
  6807. s = A(i(15)),
  6808. a = A(i(7)),
  6809. l = A(i(16)),
  6810. u = A(i(17)),
  6811. c = A(i(18)),
  6812. h = A(i(19)),
  6813. p = A(i(20)),
  6814. d = A(i(21));
  6815. (e.methods = {
  6816. addPoint: function (t) {
  6817. var e = t.id,
  6818. i = t.x,
  6819. n = t.y,
  6820. g = { id: e, ele: new r.default({ x: i, y: n, renderer: this.render }) };
  6821. return this.points.push(g), this.generateElement(g.ele), g;
  6822. },
  6823. addLine: function (t) {
  6824. var e = t.id,
  6825. i = t.p1,
  6826. n = t.p2,
  6827. g = t.border,
  6828. A = t.exterior,
  6829. r = t.isOut,
  6830. C = {
  6831. id: e,
  6832. ele: new o.default({
  6833. border: g,
  6834. exterior: A,
  6835. points: [
  6836. this.points.find(function (t) {
  6837. return t.id === i;
  6838. }).ele,
  6839. this.points.find(function (t) {
  6840. return t.id === n;
  6841. }).ele,
  6842. ],
  6843. renderer: this.render,
  6844. isOut: r,
  6845. }),
  6846. border: g,
  6847. isOut: r,
  6848. exterior: A,
  6849. };
  6850. return (
  6851. this.lines.push(C),
  6852. this.generateElement(C.ele),
  6853. A &&
  6854. (C.ele.points.forEach(function (t) {
  6855. return t.real.setAttribute("pointer-events", "none");
  6856. }),
  6857. (C.ele.zIndex = -1)),
  6858. C
  6859. );
  6860. },
  6861. addCase: function (t) {
  6862. var e = t.pos,
  6863. i = t.line,
  6864. n = t.top,
  6865. g = void 0 === n ? null : n,
  6866. A = t.bottom,
  6867. r = void 0 === A ? null : A,
  6868. o = {
  6869. ele: new C.default({
  6870. renderer: this.render,
  6871. attachment: this.lines.find(function (t) {
  6872. return t.id === i;
  6873. }).ele,
  6874. points: [
  6875. { x: e[0], y: e[1] },
  6876. { x: e[2], y: e[3] },
  6877. ],
  6878. top: g,
  6879. bottom: r,
  6880. }),
  6881. };
  6882. return this.cases.push(o), this.generateElement(o.ele), o;
  6883. },
  6884. addDoor: function (t) {
  6885. var e = t.pos,
  6886. i = t.line,
  6887. n = t.top,
  6888. g = void 0 === n ? null : n,
  6889. A = t.bottom,
  6890. r = void 0 === A ? null : A,
  6891. o = t.within,
  6892. C = t.show,
  6893. s = t.start,
  6894. a = {
  6895. ele: new I.default({
  6896. show: C,
  6897. renderer: this.render,
  6898. attachment: this.lines.find(function (t) {
  6899. return t.id === i;
  6900. }).ele,
  6901. points: [
  6902. { x: e[0], y: e[1] },
  6903. { x: e[2], y: e[3] },
  6904. ],
  6905. top: g,
  6906. bottom: r,
  6907. within: o,
  6908. start: s,
  6909. }),
  6910. };
  6911. return this.doors.push(a), this.generateElement(a.ele), a;
  6912. },
  6913. adddDoubleDoor: function (t) {
  6914. var e = t.pos,
  6915. i = t.line,
  6916. n = t.top,
  6917. g = void 0 === n ? null : n,
  6918. A = t.bottom,
  6919. r = void 0 === A ? null : A,
  6920. o = t.within,
  6921. C = t.show,
  6922. I = t.start,
  6923. s = {
  6924. ele: new l.default({
  6925. show: C,
  6926. renderer: this.render,
  6927. attachment: this.lines.find(function (t) {
  6928. return t.id === i;
  6929. }).ele,
  6930. points: [
  6931. { x: e[0], y: e[1] },
  6932. { x: e[2], y: e[3] },
  6933. ],
  6934. top: g,
  6935. bottom: r,
  6936. within: o,
  6937. start: I,
  6938. }),
  6939. };
  6940. return this.doubleDoors.push(s), this.generateElement(s.ele), s;
  6941. },
  6942. addSlideDoor: function (t) {
  6943. var e = t.pos,
  6944. i = t.line,
  6945. n = t.top,
  6946. g = void 0 === n ? null : n,
  6947. A = t.bottom,
  6948. r = void 0 === A ? null : A,
  6949. o = t.within,
  6950. C = void 0 === o ? 0 : o,
  6951. I = {
  6952. ele: new s.default({
  6953. within: C,
  6954. bwithin: 1.5,
  6955. renderer: this.render,
  6956. attachment: this.lines.find(function (t) {
  6957. return t.id === i;
  6958. }).ele,
  6959. points: [
  6960. { x: e[0], y: e[1] },
  6961. { x: e[2], y: e[3] },
  6962. ],
  6963. top: g,
  6964. bottom: r,
  6965. }),
  6966. };
  6967. return this.slideDoors.push(I), this.generateElement(I.ele), I;
  6968. },
  6969. addBayCase: function (t) {
  6970. var e = t.pos,
  6971. i = t.line,
  6972. n = t.top,
  6973. g = void 0 === n ? null : n,
  6974. A = t.bottom,
  6975. r = void 0 === A ? null : A,
  6976. o = t.within,
  6977. C = {
  6978. ele: new d.default({
  6979. renderer: this.render,
  6980. attachment: this.lines.find(function (t) {
  6981. return t.id === i;
  6982. }).ele,
  6983. points: [
  6984. { x: e[0], y: e[1] },
  6985. { x: e[2], y: e[3] },
  6986. ],
  6987. top: g,
  6988. bottom: r,
  6989. within: o,
  6990. }),
  6991. };
  6992. return this.bayCases.push(C), this.generateElement(C.ele), C;
  6993. },
  6994. addGroundCase: function (t) {
  6995. var e = t.pos,
  6996. i = t.line,
  6997. n = t.top,
  6998. g = void 0 === n ? null : n,
  6999. A = t.bottom,
  7000. r = void 0 === A ? null : A,
  7001. o = {
  7002. ele: new p.default({
  7003. renderer: this.render,
  7004. attachment: this.lines.find(function (t) {
  7005. return t.id === i;
  7006. }).ele,
  7007. points: [
  7008. { x: e[0], y: e[1] },
  7009. { x: e[2], y: e[3] },
  7010. ],
  7011. top: g,
  7012. bottom: r,
  7013. }),
  7014. };
  7015. return this.groundCases.push(o), this.generateElement(o.ele), o;
  7016. },
  7017. addColumn: function (t) {
  7018. var e = t.pos,
  7019. i = t.line,
  7020. n = {
  7021. ele: new a.default({
  7022. renderer: this.render,
  7023. attachment: this.lines.find(function (t) {
  7024. return t.id === i;
  7025. }).ele,
  7026. points: [
  7027. { x: e[0], y: e[1] },
  7028. { x: e[2], y: e[3] },
  7029. { x: e[6], y: e[7] },
  7030. { x: e[4], y: e[5] },
  7031. ],
  7032. }),
  7033. };
  7034. return this.columns.push(n), this.generateElement(n.ele), n;
  7035. },
  7036. addFurnColumn: function (t) {
  7037. var e = t.pos,
  7038. i = t.angle,
  7039. n = {
  7040. ele: new u.default({
  7041. points: [
  7042. { x: e[0], y: e[1] },
  7043. { x: e[2], y: e[3] },
  7044. { x: e[4], y: e[5] },
  7045. { x: e[6], y: e[7] },
  7046. ],
  7047. renderer: this.render,
  7048. angle: i,
  7049. }),
  7050. };
  7051. return this.furnColumns.push(n), this.generateElement(n.ele), n;
  7052. },
  7053. addRoom: function (t) {
  7054. for (
  7055. var e,
  7056. i,
  7057. g = this,
  7058. A = t.points.map(function (t) {
  7059. return g.addPoint(n(n({}, t), { id: g.getNewPointId() }));
  7060. }),
  7061. r = [],
  7062. o = 0;
  7063. o < A.length - 1;
  7064. o++
  7065. )
  7066. r.push(this.addLine({ id: this.getNewLineId(), p1: A[o].id, p2: A[o + 1].id, isOut: !1, border: !1 }));
  7067. return (
  7068. r.forEach(function (t) {
  7069. return t.ele.update();
  7070. }),
  7071. (e = this.data.vertex).push.apply(
  7072. e,
  7073. A.map(function (t) {
  7074. return { id: t.id, x: t.ele.x, y: t.ele.y };
  7075. })
  7076. ),
  7077. (i = this.data.wall).push.apply(
  7078. i,
  7079. r.map(function (t) {
  7080. return t.id;
  7081. })
  7082. ),
  7083. r
  7084. );
  7085. },
  7086. addFurnFlue: function (t) {
  7087. var e = t.pos,
  7088. i = t.angle,
  7089. n = {
  7090. ele: new c.default({
  7091. points: [
  7092. { x: e[0], y: e[1] },
  7093. { x: e[2], y: e[3] },
  7094. { x: e[4], y: e[5] },
  7095. { x: e[6], y: e[7] },
  7096. ],
  7097. renderer: this.render,
  7098. angle: i,
  7099. }),
  7100. };
  7101. return this.furnFlues.push(n), this.generateElement(n.ele), n;
  7102. },
  7103. addTagging: function (t) {
  7104. var e = t.pos,
  7105. i = t.title,
  7106. n = t.content,
  7107. g = t.show,
  7108. A = void 0 === g || g,
  7109. r = t.showTitle,
  7110. o = t.showContent,
  7111. C = { ele: new h.default({ show: A, pos: { x: e[0], y: e[1] }, title: i, content: n, renderer: this.render, showTitle: r, showContent: o }) };
  7112. return this.taggings.push(C), this.generateElement(C.ele), C;
  7113. },
  7114. generateElement: function (t) {
  7115. this.render.push(t), this.retrofitElementDestroy(t), t instanceof o.default && this.retrofitElementIntercept(t);
  7116. },
  7117. generateElements: function () {
  7118. var t = this;
  7119. g(
  7120. this.lines.map(function (t) {
  7121. return t.ele;
  7122. }),
  7123. this.points.map(function (t) {
  7124. return t.ele;
  7125. }),
  7126. this.cases.map(function (t) {
  7127. return t.ele;
  7128. }),
  7129. this.doors.map(function (t) {
  7130. return t.ele;
  7131. }),
  7132. this.columns.map(function (t) {
  7133. return t.ele;
  7134. })
  7135. ).forEach(function (e) {
  7136. return t.generateElement(e);
  7137. });
  7138. },
  7139. toEles: function (t) {
  7140. var e,
  7141. i = this,
  7142. n = t.vertex,
  7143. g = t.wall,
  7144. A = t.window,
  7145. r = t.door,
  7146. o = t.column,
  7147. C = t.slideDoor,
  7148. I = t.tagging,
  7149. s = t.groundCase,
  7150. a = t.bayCase,
  7151. l = t.furnColumn,
  7152. u = t.furnFlue,
  7153. c = t.doubleDoor;
  7154. (this.data = t),
  7155. console.log(g),
  7156. n.forEach(function (t) {
  7157. return i.addPoint(t);
  7158. }),
  7159. g.forEach(function (t) {
  7160. var e = t.p1,
  7161. n = t.p2,
  7162. g = t.id,
  7163. A = t.border,
  7164. r = t.exterior;
  7165. i.addLine({ p1: e, p2: n, id: g, border: A, exterior: r, isOut: !1 });
  7166. }),
  7167. (e = [A, r, o, C, s, a, c].map(function (t) {
  7168. return (
  7169. t.forEach(function (t) {
  7170. var e = g.find(function (e) {
  7171. var i = e.id;
  7172. return t.line === i;
  7173. });
  7174. if (e) {
  7175. var n = e.p1,
  7176. A = e.p2,
  7177. r = i.lines.find(function (t) {
  7178. t.id;
  7179. var e = t.ele.points.map(function (t) {
  7180. return i.points.find(function (e) {
  7181. return e.ele === t;
  7182. }).id;
  7183. });
  7184. return ~e.indexOf(n) && ~e.indexOf(A);
  7185. });
  7186. t.line = r.id;
  7187. } else t.line = 0;
  7188. }),
  7189. (t = t.filter(function (t) {
  7190. return !t.pos.some(function (t) {
  7191. return null === t;
  7192. });
  7193. }))
  7194. );
  7195. })),
  7196. (A = e[0]),
  7197. (r = e[1]),
  7198. (o = e[2]),
  7199. (C = e[3]),
  7200. (s = e[4]),
  7201. (a = e[5]),
  7202. (c = e[6]),
  7203. A.forEach(function (t) {
  7204. return 0 !== t.line && i.addCase(t);
  7205. }),
  7206. r.forEach(function (t) {
  7207. return 0 !== t.line && i.addDoor(t);
  7208. }),
  7209. o.forEach(function (t) {
  7210. return 0 !== t.line && i.addColumn(t);
  7211. }),
  7212. C.forEach(function (t) {
  7213. return 0 !== t.line && i.addSlideDoor(t);
  7214. }),
  7215. s.forEach(function (t) {
  7216. return 0 !== t.line && i.addGroundCase(t);
  7217. }),
  7218. a.forEach(function (t) {
  7219. return 0 !== t.line && i.addBayCase(t);
  7220. }),
  7221. I.forEach(function (t) {
  7222. return i.addTagging(t);
  7223. }),
  7224. c.forEach(function (t) {
  7225. return i.adddDoubleDoor(t);
  7226. }),
  7227. l.forEach(function (t) {
  7228. i.addFurnColumn(t);
  7229. }),
  7230. u.forEach(function (t) {
  7231. i.addFurnFlue(t);
  7232. }),
  7233. this.referElements(),
  7234. (this.id = t.id),
  7235. (this.show = t.show);
  7236. },
  7237. referElements: function () {
  7238. var t = this;
  7239. g(this.lines, this.points, this.cases, this.doors, this.columns).forEach(function (e) {
  7240. var i = e.ele;
  7241. t.render.g.removeChild(i.real), t.render.elements.splice(t.render.elements.indexOf(i), 1);
  7242. }),
  7243. this.generateElements();
  7244. },
  7245. }),
  7246. (e.methods.attrs = [
  7247. "cases",
  7248. "doors",
  7249. "slideDoors",
  7250. "doubleDoors",
  7251. "columns",
  7252. "lines",
  7253. "points",
  7254. "groundCases",
  7255. "taggings",
  7256. "bayCases",
  7257. "furnColumns",
  7258. "furnFlues",
  7259. ]);
  7260. },
  7261. function (t, e, i) {
  7262. "use strict";
  7263. var n,
  7264. g =
  7265. (this && this.__extends) ||
  7266. ((n = function (t, e) {
  7267. return (n =
  7268. Object.setPrototypeOf ||
  7269. ({ __proto__: [] } instanceof Array &&
  7270. function (t, e) {
  7271. t.__proto__ = e;
  7272. }) ||
  7273. function (t, e) {
  7274. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  7275. })(t, e);
  7276. }),
  7277. function (t, e) {
  7278. function i() {
  7279. this.constructor = t;
  7280. }
  7281. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  7282. }),
  7283. A =
  7284. (this && this.__importDefault) ||
  7285. function (t) {
  7286. return t && t.__esModule ? t : { default: t };
  7287. };
  7288. Object.defineProperty(e, "__esModule", { value: !0 });
  7289. var r = A(i(5)),
  7290. o = i(3),
  7291. C = i(0),
  7292. I = (function (t) {
  7293. function e(e, i) {
  7294. var n = t.call(this, e) || this;
  7295. return (n.line = i), n;
  7296. }
  7297. return (
  7298. g(e, t),
  7299. (e.prototype.getLineInsertPoint = function (t) {
  7300. void 0 === t && (t = this);
  7301. var e = C.getLinePoint(this.line, t);
  7302. return e;
  7303. }),
  7304. (e.prototype.intercept = function (t, e) {
  7305. var i = e.x,
  7306. n = e.y;
  7307. return !(!o.type.isUndefined(i) && !o.type.isUndefined(n)) || this.getLineInsertPoint({ x: i, y: n });
  7308. }),
  7309. e
  7310. );
  7311. })(r.default);
  7312. e.default = I;
  7313. },
  7314. function (t, e, i) {
  7315. "use strict";
  7316. var n,
  7317. g =
  7318. (this && this.__extends) ||
  7319. ((n = function (t, e) {
  7320. return (n =
  7321. Object.setPrototypeOf ||
  7322. ({ __proto__: [] } instanceof Array &&
  7323. function (t, e) {
  7324. t.__proto__ = e;
  7325. }) ||
  7326. function (t, e) {
  7327. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  7328. })(t, e);
  7329. }),
  7330. function (t, e) {
  7331. function i() {
  7332. this.constructor = t;
  7333. }
  7334. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  7335. }),
  7336. A =
  7337. (this && this.__assign) ||
  7338. function () {
  7339. return (A =
  7340. Object.assign ||
  7341. function (t) {
  7342. for (var e, i = 1, n = arguments.length; i < n; i++)
  7343. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  7344. return t;
  7345. }).apply(this, arguments);
  7346. },
  7347. r =
  7348. (this && this.__awaiter) ||
  7349. function (t, e, i, n) {
  7350. return new (i || (i = Promise))(function (g, A) {
  7351. function r(t) {
  7352. try {
  7353. C(n.next(t));
  7354. } catch (t) {
  7355. A(t);
  7356. }
  7357. }
  7358. function o(t) {
  7359. try {
  7360. C(n.throw(t));
  7361. } catch (t) {
  7362. A(t);
  7363. }
  7364. }
  7365. function C(t) {
  7366. var e;
  7367. t.done
  7368. ? g(t.value)
  7369. : ((e = t.value),
  7370. e instanceof i
  7371. ? e
  7372. : new i(function (t) {
  7373. t(e);
  7374. })).then(r, o);
  7375. }
  7376. C((n = n.apply(t, e || [])).next());
  7377. });
  7378. },
  7379. o =
  7380. (this && this.__generator) ||
  7381. function (t, e) {
  7382. var i,
  7383. n,
  7384. g,
  7385. A,
  7386. r = {
  7387. label: 0,
  7388. sent: function () {
  7389. if (1 & g[0]) throw g[1];
  7390. return g[1];
  7391. },
  7392. trys: [],
  7393. ops: [],
  7394. };
  7395. return (
  7396. (A = { next: o(0), throw: o(1), return: o(2) }),
  7397. "function" == typeof Symbol &&
  7398. (A[Symbol.iterator] = function () {
  7399. return this;
  7400. }),
  7401. A
  7402. );
  7403. function o(A) {
  7404. return function (o) {
  7405. return (function (A) {
  7406. if (i) throw new TypeError("Generator is already executing.");
  7407. for (; r; )
  7408. try {
  7409. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  7410. return g;
  7411. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  7412. case 0:
  7413. case 1:
  7414. g = A;
  7415. break;
  7416. case 4:
  7417. return r.label++, { value: A[1], done: !1 };
  7418. case 5:
  7419. r.label++, (n = A[1]), (A = [0]);
  7420. continue;
  7421. case 7:
  7422. (A = r.ops.pop()), r.trys.pop();
  7423. continue;
  7424. default:
  7425. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  7426. r = 0;
  7427. continue;
  7428. }
  7429. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  7430. r.label = A[1];
  7431. break;
  7432. }
  7433. if (6 === A[0] && r.label < g[1]) {
  7434. (r.label = g[1]), (g = A);
  7435. break;
  7436. }
  7437. if (g && r.label < g[2]) {
  7438. (r.label = g[2]), r.ops.push(A);
  7439. break;
  7440. }
  7441. g[2] && r.ops.pop(), r.trys.pop();
  7442. continue;
  7443. }
  7444. A = e.call(t, r);
  7445. } catch (t) {
  7446. (A = [6, t]), (n = 0);
  7447. } finally {
  7448. i = g = 0;
  7449. }
  7450. if (5 & A[0]) throw A[1];
  7451. return { value: A[0] ? A[1] : void 0, done: !0 };
  7452. })([A, o]);
  7453. };
  7454. }
  7455. },
  7456. C =
  7457. (this && this.__rest) ||
  7458. function (t, e) {
  7459. var i = {};
  7460. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  7461. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  7462. var g = 0;
  7463. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  7464. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  7465. }
  7466. return i;
  7467. },
  7468. I =
  7469. (this && this.__spreadArrays) ||
  7470. function () {
  7471. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  7472. var n = Array(t),
  7473. g = 0;
  7474. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  7475. return n;
  7476. },
  7477. s =
  7478. (this && this.__importDefault) ||
  7479. function (t) {
  7480. return t && t.__esModule ? t : { default: t };
  7481. };
  7482. Object.defineProperty(e, "__esModule", { value: !0 });
  7483. var a = s(i(10)),
  7484. l = i(0),
  7485. u = (i(3), s(i(4))),
  7486. c = i(1),
  7487. h = (function (t) {
  7488. function e(e) {
  7489. var i = e.isOut,
  7490. n = e.hover,
  7491. g = e.width,
  7492. r = void 0 === g ? 3 : g,
  7493. o = e.border,
  7494. I = void 0 !== o && o,
  7495. s = e.exterior,
  7496. a = C(e, ["isOut", "hover", "width", "border", "exterior"]),
  7497. l = t.call(this, A(A({}, a), { width: r })) || this;
  7498. return (
  7499. (l.hover = n || A(A({}, l.init), { color: "rgba(243, 255, 0, 0.8)" })),
  7500. (l.isOut = i),
  7501. (l.adopt = !1),
  7502. (l.border = I),
  7503. (l.exterior = s),
  7504. l.listenPointDrag(),
  7505. Object.defineProperty(l, "wallLines", {
  7506. get: function () {
  7507. return a.renderer.processing.lines.map(function (t) {
  7508. return t.ele;
  7509. });
  7510. },
  7511. }),
  7512. l
  7513. );
  7514. }
  7515. return (
  7516. g(e, t),
  7517. (e.prototype.setHoverStyle = function () {
  7518. (this.color = this.hover.color), (this.width = this.hover.width), (this.linecap = this.hover.linecap);
  7519. }),
  7520. (e.prototype.setUnHoverStyle = function () {
  7521. (this.color = this.init.color), (this.width = this.init.width), (this.linecap = this.init.linecap);
  7522. }),
  7523. (e.prototype.destoryPoint = function (t) {
  7524. return r(this, void 0, void 0, function () {
  7525. return o(this, function (e) {
  7526. return t.destroy(), [2];
  7527. });
  7528. });
  7529. }),
  7530. (e.prototype.listenPointDrag = function (t) {
  7531. var e = this;
  7532. void 0 === t && (t = this.points),
  7533. t.forEach(function (t) {
  7534. t.__join_lines ? ~t.__join_lines.indexOf(e) || t.__join_lines.push(e) : (t.__join_lines = [e]);
  7535. });
  7536. }),
  7537. (e.prototype.getDelRetain = function () {
  7538. return { delIndex: 0, retainIndex: 1 };
  7539. }),
  7540. (e.prototype.judgeMerge = function () {
  7541. return r(this, void 0, void 0, function () {
  7542. var t,
  7543. i,
  7544. n,
  7545. g,
  7546. A,
  7547. r = this;
  7548. return o(this, function (o) {
  7549. switch (o.label) {
  7550. case 0:
  7551. if (
  7552. this.points[0] === this.points[1] ||
  7553. l.lineDis({ points: this.points }) > e.minWidth ||
  7554. (u.default.attaArch.get(this) && u.default.attaArch.get(this).length)
  7555. )
  7556. return [2];
  7557. t = this.wallLines;
  7558. try {
  7559. (g = this.getDelRetain()), (i = g.delIndex), (n = g.retainIndex);
  7560. } catch (t) {
  7561. return [2];
  7562. }
  7563. return (
  7564. (A = this.points[n]),
  7565. [
  7566. 4,
  7567. Promise.all(
  7568. t.map(function (t) {
  7569. var e;
  7570. if (t !== r && ~(e = t.points.indexOf(r.points[i])))
  7571. return new Promise(function (g) {
  7572. t.nextTick(function () {
  7573. var A = I(t.points);
  7574. (A[e] = r.points[n]),
  7575. A[i] === A[n]
  7576. ? t.destroy()
  7577. : (t.renderer.processing.updateWallPoints(t, t.points, A),
  7578. (t.points = A),
  7579. t.listenPointDrag(A),
  7580. t.update(),
  7581. t.nextTick(function () {
  7582. return t.updateJoin();
  7583. })),
  7584. g();
  7585. });
  7586. });
  7587. })
  7588. ),
  7589. ]
  7590. );
  7591. case 1:
  7592. return (
  7593. o.sent(),
  7594. (this.points[i].x = this.points[n].x),
  7595. (this.points[i].y = this.points[n].y),
  7596. (this.points[i].adopt = !0),
  7597. setTimeout(function () {
  7598. r.wallLines.some(function (t) {
  7599. return ~t.points.indexOf(A);
  7600. }) || r.points[n].destroy();
  7601. }, 500),
  7602. [2, this.points[i]]
  7603. );
  7604. }
  7605. });
  7606. });
  7607. }),
  7608. (e.prototype.judgePoint = function () {
  7609. return r(this, void 0, void 0, function () {
  7610. var t,
  7611. e,
  7612. i,
  7613. n = this;
  7614. return o(this, function (g) {
  7615. switch (g.label) {
  7616. case 0:
  7617. (t = function (t) {
  7618. var i, g, A, r, C;
  7619. return o(this, function (s) {
  7620. switch (s.label) {
  7621. case 0:
  7622. if (
  7623. ((i = e.points[t]),
  7624. !e.renderer.processing.points.some(function (t) {
  7625. return t.ele === i;
  7626. }))
  7627. )
  7628. return [2, "continue"];
  7629. (g = e.renderer.processing),
  7630. (A = I(e.wallLines).filter(function (t) {
  7631. return t !== n && !t.exterior;
  7632. })),
  7633. 0.1,
  7634. (A = A.filter(function (t) {
  7635. return l.pointLineDis(t, i) <= 0.1;
  7636. })),
  7637. (r = function (t) {
  7638. var e, r, C, I;
  7639. return o(this, function (o) {
  7640. switch (o.label) {
  7641. case 0:
  7642. return (
  7643. (e = A[t]),
  7644. (r = g.lines
  7645. .filter(function (t) {
  7646. var i = t.ele;
  7647. return ~i.points.indexOf(e.points[0]) && i.points.indexOf(e.points[1]);
  7648. })
  7649. .map(function (t) {
  7650. return t.ele;
  7651. })),
  7652. (C = []),
  7653. r.forEach(function (t) {
  7654. return (C = C.concat(u.default.attaArch.get(t) || []));
  7655. }),
  7656. (I = l.getLinePoint(e, i)),
  7657. C.find(function (t) {
  7658. return l.pointLineDis({ points: t.linePoints }, I) < 0.001;
  7659. })
  7660. ? [3, 5]
  7661. : [3, 1]
  7662. );
  7663. case 1:
  7664. if (!(l.pointLineDis(e, I) < 0.1)) return [3, 5];
  7665. (i.x = I.x), (i.y = I.y), (o.label = 2);
  7666. case 2:
  7667. return (
  7668. o.trys.push([2, 4, , 5]),
  7669. [
  7670. 4,
  7671. new Promise(function (t, A) {
  7672. i.nextTick(function () {
  7673. n.renderer.processing.points.some(function (t) {
  7674. return t.ele === i;
  7675. }) || A();
  7676. var r = g.lineInsertPoint(e, i),
  7677. o = r.promis;
  7678. if (!r.ret) return t();
  7679. o.then(function () {
  7680. (i.x = I.x), (i.y = I.y), i.wallPos && i.wallPos(), t();
  7681. }),
  7682. e.wallPos && e.wallPos();
  7683. });
  7684. }),
  7685. ]
  7686. );
  7687. case 3:
  7688. return o.sent(), [3, 5];
  7689. case 4:
  7690. return o.sent(), [2, "break"];
  7691. case 5:
  7692. return [2];
  7693. }
  7694. });
  7695. }),
  7696. (C = 0),
  7697. (s.label = 1);
  7698. case 1:
  7699. return C < A.length ? [5, r(C)] : [3, 4];
  7700. case 2:
  7701. if ("break" === s.sent()) return [3, 4];
  7702. s.label = 3;
  7703. case 3:
  7704. return C++, [3, 1];
  7705. case 4:
  7706. return [2];
  7707. }
  7708. });
  7709. }),
  7710. (e = this),
  7711. (i = 0),
  7712. (g.label = 1);
  7713. case 1:
  7714. return i < this.points.length ? [5, t(i)] : [3, 4];
  7715. case 2:
  7716. g.sent(), (g.label = 3);
  7717. case 3:
  7718. return i++, [3, 1];
  7719. case 4:
  7720. return [2];
  7721. }
  7722. });
  7723. });
  7724. }),
  7725. (e.prototype.updateJoin = function () {
  7726. var t = this,
  7727. e = this.wallLines;
  7728. (this.points[0].__join_lines = e.filter(function (e) {
  7729. return ~e.points.indexOf(t.points[0]);
  7730. })),
  7731. (this.points[1].__join_lines = e.filter(function (e) {
  7732. return ~e.points.indexOf(t.points[1]);
  7733. }));
  7734. }),
  7735. (e.prototype.removeJoin = function (t) {
  7736. void 0 === t && (t = this);
  7737. var e = t.points[0].__join_lines,
  7738. i = t.points[1].__join_lines;
  7739. e.splice(e.indexOf(t), 1), i.splice(i.indexOf(t), 1);
  7740. }),
  7741. (e.prototype.checkCross = function (t) {
  7742. var e = this;
  7743. void 0 === t && (t = this.points);
  7744. var i = this.renderer.processing;
  7745. return this.wallLines
  7746. .filter(function (t) {
  7747. return ~t.points.indexOf(e.points[0]) || ~t.points.indexOf(e.points[1]);
  7748. })
  7749. .some(function (n) {
  7750. var g = n.points.indexOf(e.points[0]),
  7751. A = n.points.indexOf(e.points[1]),
  7752. r = I(n.points);
  7753. return (
  7754. ~g && (r[g] = t[0]),
  7755. ~A && (r[A] = t[1]),
  7756. e.wallLines.some(function (g) {
  7757. if (!~g.points.indexOf(n.points[0]) && !~g.points.indexOf(n.points[1])) {
  7758. var A = l.segmentsIntr(g, { points: r });
  7759. if (!A) return !1;
  7760. if (
  7761. 0 !== l.lineDis({ points: [r[0], A] }) &&
  7762. 0 !== l.lineDis({ points: [r[1], A] }) &&
  7763. 0 !== l.lineDis({ points: [g.points[0], A] }) &&
  7764. 0 !== l.lineDis({ points: [g.points[1], A] })
  7765. )
  7766. return !0;
  7767. var o = i.getRoomsByLine(n);
  7768. o = (o = o.length ? o : i.getHolesByLine(n))[0].ground || o[0].pos;
  7769. var C = i.getRoomsByLine(g);
  7770. return (
  7771. o !== (C = (C = C.length ? C : i.getHolesByLine(g))[0].ground || C[0].pos) &&
  7772. ((o = o.map(function (n) {
  7773. var g = i.points.find(function (t) {
  7774. var e = t.id;
  7775. return n === e;
  7776. }).ele;
  7777. return g === e.points[0] ? t[0] : g === e.points[1] ? t[1] : g;
  7778. })),
  7779. (C = C.map(function (n) {
  7780. var g = i.points.find(function (t) {
  7781. var e = t.id;
  7782. return n === e;
  7783. }).ele;
  7784. return g === e.points[0] ? t[0] : g === e.points[1] ? t[1] : g;
  7785. })),
  7786. l.isFaceIntersect(o, C))
  7787. );
  7788. }
  7789. })
  7790. );
  7791. });
  7792. }),
  7793. (e.prototype.intercept = function (t, e, i) {
  7794. e.x, e.y, e.points;
  7795. return !0;
  7796. }),
  7797. (e.prototype.grentNode = function () {
  7798. var e = document.createElementNS(c.SVGURI, "g");
  7799. return (
  7800. (this.origin = t.prototype.grentNode.call(this)),
  7801. (this.ground = document.createElementNS(c.SVGURI, "g")),
  7802. (this.temp = document.createElementNS(c.SVGURI, "g")),
  7803. e.appendChild(this.ground),
  7804. e.appendChild(this.origin),
  7805. e.appendChild(this.temp),
  7806. this.temp.setAttribute("pointer-events", "none"),
  7807. e
  7808. );
  7809. }),
  7810. (e.prototype.update = function () {
  7811. var t = this,
  7812. e = u.default.attaArch.get(this),
  7813. i = this.multiple * this.width * (this.border ? 2 : 1.333);
  7814. this.origin.setAttribute("stroke-width", i.toString()), this.origin.setAttribute("stroke-linecap", this.linecap);
  7815. try {
  7816. this.origin.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[1].x + " " + this.points[1].y);
  7817. } catch (t) {}
  7818. if (
  7819. (this.exterior
  7820. ? (this.origin.setAttribute("stroke", this.color === this.hover.color ? this.color : "#5e5e5e"),
  7821. this.origin.setAttribute("stroke-dasharray", 10 * this.multiple + ", " + 10 * this.multiple))
  7822. : this.origin.setAttribute("stroke", this.color),
  7823. !this.exterior && e && e.length > 0)
  7824. ) {
  7825. this.origin.setAttribute("stroke", "rgba(0,0,0,0)");
  7826. for (
  7827. var n = [],
  7828. g = function (t) {
  7829. if (
  7830. n.some(function (e) {
  7831. return e.some(function (i) {
  7832. return i === e[t];
  7833. });
  7834. })
  7835. )
  7836. return "continue";
  7837. var i = e.filter(function (i) {
  7838. return (
  7839. i.linePoints &&
  7840. i.linePoints.length &&
  7841. (l.pointLineDis({ points: e[t].linePoints }, i.linePoints[0]) < 0.1 ||
  7842. l.pointLineDis({ points: e[t].linePoints }, i.linePoints[1]) < 0.1)
  7843. );
  7844. });
  7845. i.length && n.push(i);
  7846. },
  7847. A = 0;
  7848. A < e.length;
  7849. A++
  7850. )
  7851. g(A);
  7852. var r = [];
  7853. n.forEach(function (e) {
  7854. var i = e
  7855. .reduce(function (t, e) {
  7856. return t.concat(e.linePoints);
  7857. }, [])
  7858. .sort(function (e, i) {
  7859. return l.lineDis({ points: [e, t.points[0]] }) - l.lineDis({ points: [i, t.points[0]] });
  7860. }),
  7861. n = [];
  7862. l.pointLineDis(t, i[0]) < 0.1 && n.push(i[0]), l.pointLineDis(t, i[i.length - 1]) < 0.1 && n.push(i[i.length - 1]), n.length && r.push(n);
  7863. }),
  7864. (r = r.sort(function (e, i) {
  7865. return l.lineDis({ points: [e[0], t.points[0]] }) - l.lineDis({ points: [i[0], t.points[0]] });
  7866. })),
  7867. (this.ground.innerHTML = "");
  7868. var o = "";
  7869. for (A = 1; A < r.length; A++) {
  7870. var C = r[A - 1][r[A - 1].length - 1],
  7871. I = r[A][0];
  7872. o +=
  7873. '<path \n stroke="' +
  7874. (this.exterior && "rgba(243, 255, 0, 0.8)" !== this.color ? "rgb(150,150,150)" : this.color) +
  7875. '" \n stroke-width="' +
  7876. i +
  7877. '" \n stroke-linecap="butt" \n d="M ' +
  7878. C.x +
  7879. " " +
  7880. C.y +
  7881. " L " +
  7882. I.x +
  7883. " " +
  7884. I.y +
  7885. '"></path>';
  7886. }
  7887. if (
  7888. (r.length &&
  7889. 2 === r[0].length &&
  7890. (o =
  7891. '<path \n stroke="' +
  7892. (this.exterior && "rgba(243, 255, 0, 0.8)" !== this.color ? "rgb(150,150,150)" : this.color) +
  7893. '" \n stroke-width="' +
  7894. i +
  7895. '" \n stroke-linecap="butt" \n d="M ' +
  7896. this.points[0].x +
  7897. " " +
  7898. this.points[0].y +
  7899. " L " +
  7900. r[0][0].x +
  7901. " " +
  7902. r[0][0].y +
  7903. '"></path>' +
  7904. o),
  7905. r.length &&
  7906. 2 === r[r.length - 1].length &&
  7907. (o =
  7908. o +
  7909. '<path \n stroke="' +
  7910. (this.exterior && "rgba(243, 255, 0, 0.8)" !== this.color ? "rgb(150,150,150)" : this.color) +
  7911. '" \n stroke-width="' +
  7912. i +
  7913. '" \n stroke-linecap="butt" \n d="M ' +
  7914. r[r.length - 1][1].x +
  7915. " " +
  7916. r[r.length - 1][1].y +
  7917. " L " +
  7918. this.points[1].x +
  7919. " " +
  7920. this.points[1].y +
  7921. '"></path>'),
  7922. 1 === r.length && 1 === r[0].length)
  7923. ) {
  7924. var s = e.find(function (t) {
  7925. return ~t.linePoints.indexOf(r[0][0]);
  7926. }),
  7927. a = s.linePoints[Number(!s.linePoints.indexOf(r[0][0]))];
  7928. C = l.lineDis({ points: [a, this.points[0]] }) > l.lineDis({ points: [a, this.points[1]] }) ? this.points[0] : this.points[1];
  7929. o +=
  7930. '<path \n stroke="' +
  7931. (this.exterior && "rgba(243, 255, 0, 0.8)" !== this.color ? "rgb(150,150,150)" : this.color) +
  7932. '" \n stroke-width="' +
  7933. i +
  7934. '" \n stroke-linecap="butt" \n d="M ' +
  7935. C.x +
  7936. " " +
  7937. C.y +
  7938. " L " +
  7939. r[0][0].x +
  7940. " " +
  7941. r[0][0].y +
  7942. '"></path>';
  7943. }
  7944. 0 === r.length &&
  7945. (o +=
  7946. '<path \n stroke="' +
  7947. (this.exterior && "rgba(243, 255, 0, 0.8)" !== this.color ? "rgb(150,150,150)" : this.color) +
  7948. '" \n stroke-width="' +
  7949. i +
  7950. '" \n stroke-linecap="butt" \n d="M ' +
  7951. this.points[0].x +
  7952. " " +
  7953. this.points[0].y +
  7954. " L " +
  7955. this.points[1].x +
  7956. " " +
  7957. this.points[1].y +
  7958. '"></path>'),
  7959. (this.ground.innerHTML = o);
  7960. } else this.ground.innerHTML = "";
  7961. if (((this.temp.innerHTML = ""), this.showAngle || this.color === this.hover.color)) {
  7962. var h = this.renderer.processing.lines
  7963. .filter(function (e) {
  7964. return e.ele !== t && (~e.ele.points.indexOf(t.points[0]) || ~e.ele.points.indexOf(t.points[1]));
  7965. })
  7966. .map(function (t) {
  7967. return t.ele;
  7968. });
  7969. if (0 !== h.length) {
  7970. var p = this.renderer.screenToRealPoint({ x: 20, y: 0 }).x - this.renderer.screenToRealPoint({ x: 0, y: 0 }).x;
  7971. h.forEach(function (e) {
  7972. var i = l.getAngle(e, t),
  7973. n = ~e.points.indexOf(t.points[0]) ? t.points[0] : t.points[1],
  7974. g = l.getLineDisSelectPoint(e, n, p),
  7975. A = l.getLineDisSelectPoint(t, n, p),
  7976. r = l.lineCenter({ points: [g, A] });
  7977. if (!isNaN(r.x) && !isNaN(i) && i > 10 && i < 170) {
  7978. i = (i = Math.round(i)) >= 89 && i <= 91 ? 90 : i;
  7979. var o = document.createElementNS(c.SVGURI, "text");
  7980. o.setAttribute("fill", "#fff"),
  7981. o.setAttribute("text-anchor", "middle"),
  7982. o.setAttribute("dominant-baseline", "middle"),
  7983. o.setAttribute("x", r.x.toString()),
  7984. o.setAttribute("y", r.y.toString()),
  7985. o.setAttribute("font-size", (9 * t.multiple).toString()),
  7986. (o.textContent = parseInt(i + "").toString() + "°"),
  7987. t.temp.appendChild(o);
  7988. }
  7989. });
  7990. }
  7991. }
  7992. }),
  7993. (e.prototype.destroy = function () {
  7994. var e = this,
  7995. i = this.wallLines;
  7996. i.splice(i.indexOf(this), 1);
  7997. var n = u.default.attaArch.get(this);
  7998. if (n) {
  7999. n = I(n);
  8000. var g = i.find(function (t) {
  8001. return (t.points[0] === e.points[0] && t.points[1] === e.points[1]) || (t.points[1] === e.points[0] && t.points[0] === e.points[1]);
  8002. });
  8003. n.forEach(function (t) {
  8004. g ? t.setAttachment(g) : t.destroy();
  8005. });
  8006. }
  8007. this.nextTick(function () {
  8008. i.filter(function (t) {
  8009. return ~t.points.indexOf(e.points[0]) || ~t.points.indexOf(e.points[1]);
  8010. }).forEach(function (t) {
  8011. return t.updateJoin();
  8012. });
  8013. }),
  8014. t.prototype.destroy.call(this),
  8015. this.removeJoin(),
  8016. i.some(function (t) {
  8017. return ~t.points.indexOf(e.points[0]);
  8018. }) || this.points[0].destroy(),
  8019. i.some(function (t) {
  8020. return ~t.points.indexOf(e.points[1]);
  8021. }) || this.points[1].destroy();
  8022. }),
  8023. (e.minWidth = 0.1),
  8024. e
  8025. );
  8026. })(a.default);
  8027. e.default = h;
  8028. },
  8029. function (t, e) {
  8030. t.exports =
  8031. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAACECAYAAAAeNUIyAAAIPklEQVR4Xs2bZw8cNRCGXxN67y0gOqKDEIgiOkLwO/jAr0SiCRCRIggEEiAEUEivJIFUGPRsxqe9u123K8JSPiS3az87Mx6PXzvBzC6XdC6E8I/W3Mxsg6RLgpldKckknV0niANcKilECGwACBY5v2qDmNnFWAAAxupDrAVkFmAIYqUgQwBjECsBGQNIQSwVxAEIwsE2GxOzDy0crCkLxMFyENEi50MI52pnjZkxA/iTbCUQsQPySPH0LQXIxUSzaxyAXNDlgVyrsUTsi4Q26poaC9TExNCHDIK0ANS6ow/DrJkKVjNjCrIgFbmg3xnuuKLlRe+ks4gDEAMtzYCAvlvNWnrwhW+Rd892Ly8BpIV/Uj5MvsBBLmvpreGdqfplyoxrsshcATXnyxWDDFZwgwG1ItcAcCaE8O+s+0ajeskWGQXoklUqqJYEki2is/N7QZCkBSZrR8n0agTB98QAIMmWtUR8uxIEAOqPuSAcoimG8Mx6kSQSWuo9vvx0iQWq3DG1fJqlQIpdMLWK5vw19PuIa6pcsDDEgGuqXbAUCAchNigF/qmJgeKM2eKm1neqZkfrILn3qKzYnGDOojmd67Dmd7sw0zYA8aCko5KOLOLXmsF7gX2jpOuBeFQSVjgcQjhU21nr82Z2iyQgLooQsa/Dkg6t0jXugpsl3TTJmG6J+HcscsStsvQY6QHcgAXGIPh3Bj8aQjjQauqx98zsNmKgD8Czs+7ov78017gFbpWEBeZaCqKzyKIx4gAEIQCDeSkFEV1zLISwv9U1Zna7u2A0MeYg4tgE68GaWeMWiDGQ/IZSCFZJQIqmby8GCMLs0lAK0SU5SbhmX841ZnanpGtLAHKzY2wsgvXAkGu82CEGAChuNZaInWIRQKZixAGYhteVWiCVrEq+YMo1ZobfN0q6uhYguuMBF0lKBp99plt9JWGBa1o66LYGZgY9U2lU9k103im+/WODSpCzkvZHpQYQIpp6cV0NYXZvCOFkX6kB5A5JrQJYDTzW2xNC+LuLif6bZnaVu2aVstHpzgUOMAfRZaQLZ2K4JiuM13y6P4sFdocQTvXfHVNqVgFCEP4RQjgzC59SagBh1nBkuWjjy/eFEHDFXMspNai9JKFFXMOX44I5C0wyZu4T/fD2rkYQvnxX7pwku8x6sOISFiYsU9r+chcQC8lWBNEDwTUlmZUYwAVFR1bFEA4CwN0JENI4AMyC4rP3KggHIZGRWWddA8BJd0HxWdlgssr5rweCa/qZFQDWgiqAZggHYY3BNUxf1gBiICsXVueJnFX84BVrnKqpxIszZg5gmb9XB+YyB59kTDNDIzjeElCLArk7r6O8e4t5LemXmrm9BACqOFSijUC85xubHZJ+WweIbw/uk0SR3d2pAaKbdZJ+d4sUpdsWa/gZ6v2S7unfqYkQ9IkcsEvST6uwiMfAw5JYlaeUmj5E/LidknYuM1gd4CG3wJQR++6YtS4W2ZEqRkrd4TUJAKT6uZaCIEZ2S9q+iEVcrH3M65FRpWbIHX1aLPJjC4gH4eNeq44aLmWJ/kt7PFgHC9Wh3n0P84gk9KpkK4XANehW35dUS26Bp1wwzS4NpRDxSyLIaN1oZqyqz4zJhbWBOWZCRFaCtdtH9puZIQ8QhIN65ViHtZaImRUh/rsQwsQifiPl6Val5t0WdQX9W9K35BEHeLZRKOmuszwnCdW9pQFCLrm3VizrDXYQCOSAJ2r96J0wayjtWzUN5KatUakhoJhSrbpTixWPe1yd6Cs1TZHdMrrH0zakIt4fUmpaXVPKw8z6IafUoF3hmipVtpDgmM+oqRwzptQAwsJTlXQSIATwwbEkl1NqcA3V+KKNLIsLmpSaZbgGxZekNroCZ1c4V3xZD2otElde1plkCZCF6BaLC7IiIDWZda/HwKhWFX1cBOEgZNYn/TwrFSNYgGm4tbQ+LYbogXCsPWYRAKjCKAezWlW1JeILvmIyfWdBYmEMQNXmqcoSPRBihITGQVusMZiGuKAKYC5t1yQDD1YKWY6bKPvYtVVLRQtBeIzEG+rcLCtW62Y/tskdNRYrefb/AWFmrA+/hhCQgdfavKq7j/LuAyAkfT5Uxq+KygFeljSBiALJF7HaWdXgHtBUcS9FoSRaIo7JOfhHIYQTq4IwM6b0G/1N8iwEYyOifbYKEDOjWnt1VqcYgoggxMify7KIS5XEAId8U20Mgocoxz4OIbA3WKiZGdeZcMHkWlO/wxQEz7EifhpCYI/Q1NwCr6d0ihwEAxOsuIYtX1UzM85FmAXJYqgEgoEBwDXFIA7wmi9wSfhSiBgjn4QQKFyTze/VvVlQhXX91EDwPGUbCW30Xo2ZcRDDLCAfFLVaCDpl2mKRORAzQyp+RRL1aHFrgaBzpi2ZdXJ10mMAF7BXqWpAvN+oL7Cv/MJFEgTzF2st4KTngXjbJf8qen+YNQaxlWODmtPj/lg74p0aQLics84ih5Wb4vjDqNSwxWNh4arCuho7NJLgkb5SQ0S/4xZZNQhiG4E9eKcGv+Ia0u0qXIMLiCGy72STPDeQmSGMkGwGzyYWNBGHOZtmF8QxpQaLMOc5JlpW2y7pq9o7NYBQAwCyiGs4V/tZ0pdjm+TcnRry/wuu2LZaZJukzalKPvuFfn7F9CUh1TSCcIukr3Ob5CwEo/oZBgsTIJOjxAQR+9KtboHsJrkIwkHII89L4lwz1YgBLLClVCgphnAQ7tQQI6g1Qw2ATX5MVbxLr4LogbBiYpG+azD7N26BYgD6rIZwEKYv5yTRIgy62ZWabAzMmrAJwkEQSDhuIlixAFcfmv4nxH+8RMcvoX23QgAAAABJRU5ErkJggg==";
  8032. },
  8033. function (t, e) {
  8034. t.exports =
  8035. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAACECAYAAAAeNUIyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABphJREFUeNrsW2tTHEUU7enZAXYD4bkICCKaqNFUtPxiaUzUWH73H2sV5bt8lkETX2VFQiCoRBNY1rDrXHK6qtPOo++dnsEPuVUdyOzM9Nl7b3ffc7qJlVJjaRuiNW1x2kZ1+g+1EVxoGgD1qzUuRLjQaghAC/1Rv0pbH9CFpAEgLfQTmQvauaFuIP8BkAWiTiCZAFRBRwYI2f2AOZBpuuDBUB5pWV8o9wblAYR+/iMAkJQBKPNEVY94AfAFYb+0VcO9x7NW4nlvZM2qAw8PRL4gdOA4J4wv5Z2YZc/ZySpef2K8MGI+54ZmRPgesmFkrWaR0CvDis/2I2dZjVRzdgxgOBwemcQ8ogtNA0C/D40OunDYQIX1EICsIWo8MmwKQN48UVdohvD0ke9kFTo0BsCAO2OGCo0JwUA6bVcFkhsC7tohBULfvFey2LEWMC6QAed+zirqm6yFSRhiKR+UADEhYIVOUk/kuXogTWItzHo3NOwQhLSoQh3xAP3wJMSADBBa/U8sqZAbVY36TaiiegoXeicAYCZtCwTisbS18cF+gyDm0jZLid2yUHXxc7fmoaYtAJnzxDQ+1DUDmC6arEyc5moC0QUAXcbAtOWqUKGhd867HvCZtqfhER0AAHlgSrJ2aADpVgRhPBBJCbHJEbLbzNBoDP+pUKsoNzQmByZDLuURPDLvef8CPOC1unL0icjK7p2c0MQAcLruombKml1dAOSpiSYqK+OReefaInKAXeDEeDAWAGkjnH0AmBBWWP0YulNbqDfRhs04nhcBSNu2eZBetKSa3XghzXwrLe/u2ujH4dYmNl7I+zepfqEa03XhKcxyozUCoApu2xRQWYXuvbTdUjIx3dcDt9wKLmuI7sNVoYFQEt5I20HWUMuzDkIzFgDAATzQ4/KO/UChIXq4VVTNR55zwbISCOfo+IYq2MLKGh1FQBYsauBjJsn7oWhgz+eFTg5s+d7PnWpJ/15R+Tt7QwD4TZWIZZJw2DaKmbWdAeAuPOa9jSll5SbbD3NygL2PWmVroYXQJBjOmxKpKIRI0sJ6I+Ymj5Qa12ZUc4c3ssI5S5XUq6io9lSz52qozzNpO0u/PIsynnjEXw0BoX7XIFW1DBrDsOj/d2pWakbQ55rKOVPzBG6Ia8yBM+gncuNiAzEcMrRHCMDZtK26k6QLwmbhCXLkKACAMeTeCpcGLgN51eGbAMCShJVHAEKj5ZqSHfChJHwBtWolaWAFYbuueKovrSnP+chNvtP2Il6YMDxwTnlKkb7xjlBj0s+rJWUbFT0vqRy5sKpSoxBbAvK9ytbBSR54ngNAKpJ04Wq3zmwjCae4L9SCtSICkBct4kwAXuaIZXZJEcN1HYFHOpZAdo4rllm2axas00xiY4dgTvgs2Z9p29CokjfS9rdQRJPOqLQkbKTl3b2oamYL7fe0fUc8JU+pOV8zkF14vlCpuQpX1WF7NoAy8jOOMR/KIzQN3M6a5Mq4aAehmQkAYgceECk1GwFC80ceAA4XHceomRGEYBsh6IWQBjoAwtkl3AKAw1A0cB/jeo+ZhId1SAOnSooVAnAT5aCXVCRVasySPZcBYBMAvGVHKSs/QLbvOQB2uABCKDUd1J2TGAXXJRV5CJEkARgxbXyk1Lh2HkPvJOy4dKBYvouCps7NljwAr6XtginNnsRI+VA9UGXrtgnIVKs2+YkAhCj8e8J609doSL9pk2Q3MYnqXVKCrWZPo6r+dZel6xxd4pLyPHbAMCoFLqftcV8aSECuBCzv6IzOW3lCiS7hnBcrMCvXA7NSQryEJJoVAljE892qrHxBCGQRHiitxjQjppcZdWaXk9yctaMLjyx4aFxXODoFdwEj175RAGQVHmMNb8kqOglXz2XkwEXJYhhDceGCaaPTO5jinwawccGXuh8j2SRUz+wak2cuCNUesp9jcIR5uJFbc44iYSX76KY4XtdYutdxoUmj+mXdVWrIE+8o/6NtVWwTJUPmmRpKuLeRdHX8TRiFgI4yvG9IclahS8TmA1C5OuwXVG89H/LTxtK7HBAAEeRPXJJcxkXbmKaXK4aGtrB+SNtHWSS5jHccwHW/VvQA8dPPili675kamg3XBEn4ddq+LKISHGlgFAXqmvL/i6lv0/Z5GUnm0EBKpo/T9qNnDnwDD3ixdMmZmleg1uQB+FQ9EGS9z9RwxfE+hhmBf8YJDX3rrzgAqtQTfWT7NScHvkAY2Ju5VcZ/glpkDR74SQm2tSkc/wowABSuxDvxNYq7AAAAAElFTkSuQmCC";
  8036. },
  8037. function (t, e, i) {
  8038. "use strict";
  8039. Object.defineProperty(e, "__esModule", { value: !0 }),
  8040. (e.methods = {
  8041. getRoomEles: function (t) {
  8042. var e = this;
  8043. return {
  8044. ground: t.ground.map(function (t) {
  8045. return e.points.find(function (e) {
  8046. return e.id === t;
  8047. }).ele;
  8048. }),
  8049. hole: t.hole.map(function (t) {
  8050. return t.pos.map(function (t) {
  8051. return e.points.find(function (e) {
  8052. return e.id === t;
  8053. }).ele;
  8054. });
  8055. }),
  8056. };
  8057. },
  8058. });
  8059. },
  8060. function (t, e, i) {
  8061. "use strict";
  8062. var n =
  8063. (this && this.__assign) ||
  8064. function () {
  8065. return (n =
  8066. Object.assign ||
  8067. function (t) {
  8068. for (var e, i = 1, n = arguments.length; i < n; i++)
  8069. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  8070. return t;
  8071. }).apply(this, arguments);
  8072. },
  8073. g =
  8074. (this && this.__spreadArrays) ||
  8075. function () {
  8076. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  8077. var n = Array(t),
  8078. g = 0;
  8079. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  8080. return n;
  8081. };
  8082. Object.defineProperty(e, "__esModule", { value: !0 });
  8083. var A = function (t, e) {
  8084. return void 0 === e && (e = 2), Number(t.toFixed(e));
  8085. };
  8086. e.methods = {
  8087. baseArchToData: function (t) {
  8088. return {
  8089. line: this.getLineId(t.attachment),
  8090. pos: [A(t.linePoints[0].x), A(t.linePoints[0].y), A(t.linePoints[1].x), A(t.linePoints[1].y)],
  8091. top: t.top,
  8092. bottom: t.bottom,
  8093. };
  8094. },
  8095. roomArchToData: function (t) {
  8096. return {
  8097. pos: [A(t.points[0].x), A(t.points[0].y), A(t.points[1].x), A(t.points[1].y), A(t.points[2].x), A(t.points[2].y), A(t.points[3].x), A(t.points[3].y)],
  8098. top: t.top,
  8099. bottom: t.bottom,
  8100. angle: t.angle,
  8101. };
  8102. },
  8103. pointToData: function (t) {
  8104. var e = t.ele;
  8105. return { id: t.id, x: A(e.x), y: A(e.y) };
  8106. },
  8107. lineToData: function (t) {
  8108. var e = t.ele,
  8109. i = t.id,
  8110. n = t.border;
  8111. return { id: i, p1: this.getPointId(e.points[0]), p2: this.getPointId(e.points[1]), border: n, exterior: e.exterior };
  8112. },
  8113. doorToData: function (t) {
  8114. var e = t.ele,
  8115. i = this.baseArchToData(e);
  8116. return (i.within = e.within), (i.show = e.show), (i.ctl = [e.ctl[0].x, -e.ctl[0].y]), (i.start = e.start), i;
  8117. },
  8118. DoubleDoorToData: function (t) {
  8119. var e = t.ele,
  8120. i = this.baseArchToData(e);
  8121. return (i.within = e.within), (i.show = e.show), i;
  8122. },
  8123. slideDoorToData: function (t) {
  8124. var e = t.ele,
  8125. i = this.baseArchToData(e);
  8126. return (i.within = e.within), (i.show = e.show), i;
  8127. },
  8128. caseToData: function (t) {
  8129. var e = t.ele;
  8130. return this.baseArchToData(e);
  8131. },
  8132. groundCaseToData: function (t) {
  8133. var e = t.ele;
  8134. return this.baseArchToData(e);
  8135. },
  8136. BayCaseToData: function (t) {
  8137. var e = t.ele,
  8138. i = this.baseArchToData(e);
  8139. return (i.within = e.within), (i.ctl = [e.ctl[0].x, -e.ctl[0].y, e.ctl[1].x, -e.ctl[1].y]), i;
  8140. },
  8141. columnToData: function (t) {
  8142. var e = t.ele,
  8143. i = this.baseArchToData(e);
  8144. return n(n({}, i), { pos: g(i.pos, [A(e.points[3].x), A(e.points[3].y), A(e.points[2].x), A(e.points[2].y)]) });
  8145. },
  8146. taggingToData: function (t) {
  8147. var e = t.ele;
  8148. return { pos: [e.x, e.y], title: e.title, content: e.content, showTitle: e.showTitle, showContent: e.showContent };
  8149. },
  8150. furnColumnToData: function (t) {
  8151. var e = t.ele;
  8152. return this.roomArchToData(e);
  8153. },
  8154. furnFlueToData: function (t) {
  8155. var e = t.ele;
  8156. return this.roomArchToData(e);
  8157. },
  8158. getNewPointId: function () {
  8159. return 0 === this.points.length
  8160. ? 1
  8161. : Math.max.apply(
  8162. Math,
  8163. this.points.map(function (t) {
  8164. return t.id;
  8165. })
  8166. ) + 1;
  8167. },
  8168. getNewLineId: function () {
  8169. return 0 === this.lines.length
  8170. ? 1
  8171. : Math.max.apply(
  8172. Math,
  8173. this.lines.map(function (t) {
  8174. return t.id;
  8175. })
  8176. ) + 1;
  8177. },
  8178. getLineId: function (t) {
  8179. var e = this.lines.find(function (e) {
  8180. return e.ele === t;
  8181. });
  8182. return e ? e.id : 0;
  8183. },
  8184. getPointId: function (t) {
  8185. return this.points.find(function (e) {
  8186. return e.ele === t;
  8187. }).id;
  8188. },
  8189. toData: function () {
  8190. var t = this,
  8191. e = this.points.map(function (e) {
  8192. return t.pointToData(e);
  8193. }),
  8194. i = this.columns.map(function (e) {
  8195. return t.columnToData(e);
  8196. }),
  8197. n = this.cases.map(function (e) {
  8198. return t.caseToData(e);
  8199. }),
  8200. g = this.doors.map(function (e) {
  8201. return t.doorToData(e);
  8202. }),
  8203. A = this.slideDoors.map(function (e) {
  8204. return t.slideDoorToData(e);
  8205. }),
  8206. r = this.groundCases.map(function (e) {
  8207. return t.groundCaseToData(e);
  8208. }),
  8209. o = this.taggings.map(function (e) {
  8210. return t.taggingToData(e);
  8211. }),
  8212. C = this.bayCases.map(function (e) {
  8213. return t.BayCaseToData(e);
  8214. }),
  8215. I = this.doubleDoors.map(function (e) {
  8216. return t.DoubleDoorToData(e);
  8217. }),
  8218. s = this.furnColumns.map(function (e) {
  8219. return t.furnColumnToData(e);
  8220. }),
  8221. a = this.furnFlues.map(function (e) {
  8222. return t.furnFlueToData(e);
  8223. }),
  8224. l = [];
  8225. return (
  8226. this.lines.forEach(function (e) {
  8227. try {
  8228. l.push(t.lineToData(e));
  8229. } catch (t) {}
  8230. }),
  8231. {
  8232. id: this.id,
  8233. show: this.show,
  8234. vertex: e,
  8235. wall: l,
  8236. window: n,
  8237. door: g,
  8238. column: i,
  8239. surplus: this.data.surplus,
  8240. slideDoor: A,
  8241. groundCase: r,
  8242. tagging: o,
  8243. doubleDoor: I,
  8244. bayCase: C,
  8245. furnColumn: s,
  8246. furnFlue: a,
  8247. dire: this.data.dire,
  8248. }
  8249. );
  8250. },
  8251. };
  8252. },
  8253. function (t, e, i) {
  8254. "use strict";
  8255. var n =
  8256. (this && this.__spreadArrays) ||
  8257. function () {
  8258. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  8259. var n = Array(t),
  8260. g = 0;
  8261. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  8262. return n;
  8263. },
  8264. g =
  8265. (this && this.__importDefault) ||
  8266. function (t) {
  8267. return t && t.__esModule ? t : { default: t };
  8268. };
  8269. Object.defineProperty(e, "__esModule", { value: !0 });
  8270. var A = g(i(4)),
  8271. r = i(0),
  8272. o = i(1);
  8273. e.methods = {
  8274. lineInsertPoint: function (t, e) {
  8275. var i = this,
  8276. g = [],
  8277. C = [],
  8278. I = this,
  8279. s = I.points.find(function (t) {
  8280. return t.ele === e;
  8281. });
  8282. return s
  8283. ? (I.lines.forEach(function (a) {
  8284. var l = a.ele;
  8285. a.border;
  8286. if (
  8287. ~l.points.indexOf(t.points[0]) &&
  8288. ~l.points.indexOf(t.points[1]) &&
  8289. !I.lines.some(function (t) {
  8290. var i = t.ele;
  8291. return ~i.points.indexOf(e) && ~i.points.indexOf(l.points[0]);
  8292. })
  8293. ) {
  8294. var u = A.default.attaArch.get(l);
  8295. i.cad.increase;
  8296. var c = {
  8297. ele: i.cad.increase(o.SEFTLINE, {
  8298. id: i.getNewLineId(),
  8299. p1: I.getPointId(l.points[0]),
  8300. p2: s.id,
  8301. border: l.border,
  8302. exterior: l.exterior,
  8303. isOut: l.isOut,
  8304. }).obj,
  8305. };
  8306. C.push(c), c.ele.update();
  8307. var h = [s.ele, l.points[1]];
  8308. (l.points = h),
  8309. l.listenPointDrag([s.ele, l.points[1]]),
  8310. g.push(
  8311. new Promise(function (t) {
  8312. l.nextTick(function () {
  8313. l.updateJoin(),
  8314. c.ele.updateJoin(),
  8315. u &&
  8316. n(u).forEach(function (t) {
  8317. r.pointLineDis(c.ele, t.linePoints[0]) < 0.1 && r.pointLineDis(c.ele, t.linePoints[1]) < 0.1 && t.setAttachment(c.ele);
  8318. }),
  8319. setTimeout(t, 200);
  8320. });
  8321. })
  8322. );
  8323. }
  8324. }),
  8325. { lines: C, promis: Promise.all(g), ret: !0 })
  8326. : { ret: !1 };
  8327. },
  8328. };
  8329. },
  8330. function (t, e, i) {
  8331. "use strict";
  8332. var n =
  8333. (this && this.__assign) ||
  8334. function () {
  8335. return (n =
  8336. Object.assign ||
  8337. function (t) {
  8338. for (var e, i = 1, n = arguments.length; i < n; i++)
  8339. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  8340. return t;
  8341. }).apply(this, arguments);
  8342. },
  8343. g =
  8344. (this && this.__spreadArrays) ||
  8345. function () {
  8346. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  8347. var n = Array(t),
  8348. g = 0;
  8349. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  8350. return n;
  8351. },
  8352. A =
  8353. (this && this.__importDefault) ||
  8354. function (t) {
  8355. return t && t.__esModule ? t : { default: t };
  8356. };
  8357. Object.defineProperty(e, "__esModule", { value: !0 });
  8358. var r = A(i(4)),
  8359. o = A(i(13)),
  8360. C = i(3),
  8361. I = i(0),
  8362. s = i(1),
  8363. a = i(9),
  8364. l = [s.TAGGING, s.LINE, s.SEFTLINE],
  8365. u = [s.POINT, s.DOOR, s.COLUMN, s.CASEMENT, s.ARCH, s.SLIDEDOOR, s.GROUNDCASE, s.BAYCASE, s.DOUBLEDOOR],
  8366. c = [s.FURNCOLUMN, s.FURNFLUE];
  8367. e.attachInsert = function (t) {
  8368. var e,
  8369. i = function (e, i) {
  8370. var n = t.processing,
  8371. g = n.lines
  8372. .map(function (t) {
  8373. return t.ele;
  8374. })
  8375. .filter(function (t) {
  8376. return !t.exterior;
  8377. })
  8378. .map(function (t) {
  8379. return { dis: I.pointLineDis(t, e), line: t };
  8380. })
  8381. .sort(function (t, e) {
  8382. return t.dis - e.dis;
  8383. })
  8384. .find(function (t) {
  8385. return I.pointLineDis(t.line, I.getLinePoint(t.line, { x: e.x })) < 0.1 || I.pointLineDis(t.line, I.getLinePoint(t.line, { y: e.y })) < 0.1;
  8386. });
  8387. if (!g) return { error: !0, msg: a.i18n.t("modules.model.error_location", { widget: s.ARCH[i] }), obj: null };
  8388. var A = g.line,
  8389. o =
  8390. (n.lines.find(function (t) {
  8391. return t.ele === A;
  8392. }),
  8393. r.default.attaArch.get(A),
  8394. I.getLinePoint(A, e));
  8395. if (i === s.POINT)
  8396. return I.pointLineDis(g.line, o) > 0.1 ? { error: !0, msg: a.i18n.t("modules.model.error_location", { widget: "" }), obj: null } : [A, o];
  8397. var l = (function (t, e, i) {
  8398. var n = I.getDisPointLinePoints(t, e, i / 2);
  8399. return [n[0], n[1]];
  8400. })(A, o, s.DEFAULT[i].width);
  8401. return C.type.isArray(l) ? [A, l, e] : { error: !0, msg: l };
  8402. },
  8403. A =
  8404. (((e = {})[s.POINT] = function (e, i) {
  8405. var g = t.processing;
  8406. g.insertModel = !0;
  8407. var A = g.addPoint(n({ id: g.getNewPointId() }, i));
  8408. g.data.vertex.push({ id: A.id, x: A.ele.x, y: A.ele.y });
  8409. var r = g.lineInsertPoint(e, A.ele),
  8410. o = r.lines,
  8411. C = r.promis;
  8412. if (r.ret)
  8413. return (
  8414. C.then(function () {
  8415. return (g.insertModel = !1);
  8416. }),
  8417. o.map(function (t) {
  8418. return t.ele;
  8419. })
  8420. );
  8421. }),
  8422. (e[s.DOOR] = function (e, i, n, g, A) {
  8423. var r = t.processing;
  8424. return r.addDoor({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e), start: !1, within: 0 }).ele;
  8425. }),
  8426. (e[s.DOUBLEDOOR] = function (e, i, n, g, A) {
  8427. var r = t.processing;
  8428. return r.adddDoubleDoor({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e), start: !1, within: 0 }).ele;
  8429. }),
  8430. (e[s.SLIDEDOOR] = function (e, i, n, g, A) {
  8431. var r = t.processing;
  8432. return r.addSlideDoor({ within: 0, pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e) }).ele;
  8433. }),
  8434. (e[s.GROUNDCASE] = function (e, i, n, g, A) {
  8435. var r = t.processing;
  8436. return r.addGroundCase({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e) }).ele;
  8437. }),
  8438. (e[s.BAYCASE] = function (e, i, n, g, A) {
  8439. var r = t.processing;
  8440. return r.addBayCase({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e), within: 0 }).ele;
  8441. }),
  8442. (e[s.CASEMENT] = function (e, i, n, g, A) {
  8443. var r = t.processing;
  8444. return r.addCase({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e) }).ele;
  8445. }),
  8446. (e[s.COLUMN] = function (e, i, n) {
  8447. var g = t.processing,
  8448. A = I.getDisVerticalLinePoints(e, i[0], s.DEFAULT[s.COLUMN].width),
  8449. r = (A[0], A[1]);
  8450. if (!r) return a.i18n.t("modules.model.error_widget", { widget: a.i18n.t("modules.model.column") });
  8451. var o = I.getDisVerticalLinePoints(e, i[1], s.DEFAULT[s.COLUMN].tick),
  8452. C = o[0],
  8453. l = o[1],
  8454. u = I.lineDis({ points: [C, r] }) > I.lineDis({ points: [l, r] }) ? l : C;
  8455. return g.addColumn({ pos: [i[0].x, i[0].y, i[1].x, i[1].y, r.x, r.y, u.x, u.y], line: g.getLineId(e) }).ele;
  8456. }),
  8457. (e[s.TAGGING] = function (e) {
  8458. return t.processing.addTagging({ pos: [e.x, e.y], title: "", content: "", showTitle: !0, showContent: !0 }).ele;
  8459. }),
  8460. (e[s.FURNCOLUMN] = function (e, i, n, g) {
  8461. return t.processing.addFurnColumn({ pos: e, angle: 0 }).ele;
  8462. }),
  8463. (e[s.FURNFLUE] = function (e, i, n, g) {
  8464. return t.processing.addFurnFlue({ pos: e, angle: 0 }).ele;
  8465. }),
  8466. (e[s.LINE] = function (e) {
  8467. t.processing;
  8468. var i = s.DEFAULT[s.LINE].width,
  8469. n = {
  8470. points: [
  8471. { x: e.x - i / 2, y: e.y },
  8472. { x: e.x + i / 2, y: e.y },
  8473. ],
  8474. },
  8475. g = t.processing.lines.some(function (t) {
  8476. var e = t.ele;
  8477. return I.segmentsIntr(e, n);
  8478. });
  8479. return g &&
  8480. ((n = {
  8481. points: [
  8482. { x: e.x - i / 2, y: e.y },
  8483. { x: e.x + i / 2, y: e.y },
  8484. ],
  8485. }),
  8486. (g = t.processing.lines.some(function (t) {
  8487. var e = t.ele;
  8488. return I.segmentsIntr(e, n);
  8489. })))
  8490. ? a.i18n.t("modules.model.error_widget", { widget: a.i18n.t("modules.model.line") })
  8491. : t.processing.furnColumns
  8492. .concat(t.processing.furnFlues)
  8493. .map(function (t) {
  8494. return t.ele;
  8495. })
  8496. .every(function (t) {
  8497. return !I.isFaceIntersect(n.points, t.points) && !I.isFaceContain(n.points, t.points) && !I.isFaceContain(t.points, n.points);
  8498. })
  8499. ? t.processing.addRoom(n)[0].ele
  8500. : a.i18n.t("modules.model.error_widget", { widget: a.i18n.t("modules.model.line") });
  8501. }),
  8502. (e[s.SEFTLINE] = function (e) {
  8503. return t.processing.addLine(e).ele;
  8504. }),
  8505. e);
  8506. t.increase = function (e, r, I, h, p) {
  8507. void 0 === I && (I = null), void 0 === h && (h = null), void 0 === p && (p = !1);
  8508. var d = t.processing.render;
  8509. if (A[e]) {
  8510. var f,
  8511. y = p ? d.screenToRealPoint(r) : r;
  8512. if (~u.indexOf(e) || ~c.indexOf(e)) {
  8513. var v = ~c.indexOf(e)
  8514. ? (function (e, i) {
  8515. var g = t.processing,
  8516. A = s.DEFAULT[i].width / 2,
  8517. r = s.DEFAULT[i].tick / 2,
  8518. C = [
  8519. { x: e.x - A, y: e.y + r },
  8520. { x: e.x + A, y: e.y + r },
  8521. { x: e.x + A, y: e.y - r },
  8522. { x: e.x - A, y: e.y - r },
  8523. ],
  8524. I = (n(n({}, o.default.prototype), { renderer: g.render, minWidth: 0.1 }), []);
  8525. return (
  8526. C.forEach(function (t) {
  8527. I.push(t.x), I.push(t.y);
  8528. }),
  8529. [I]
  8530. );
  8531. })(y, e)
  8532. : i(y, e);
  8533. if (!C.type.isArray(v)) return v;
  8534. var m = A[e].apply(A, g(v, [I, h]));
  8535. if ("string" == typeof m) return { error: !0, msg: m, obj: null };
  8536. f = m;
  8537. } else if (~l.indexOf(e) && "string" == typeof (f = A[e](y))) return { error: !0, msg: f, obj: null };
  8538. return t.preservation && t.preservation(), { error: !1, msg: a.i18n.t("modules.model.success", { widget: s.ARCH[e] }), obj: f };
  8539. }
  8540. };
  8541. var h = t.destroy;
  8542. t.destroy = function () {
  8543. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  8544. var n = t.processing;
  8545. n.render;
  8546. (n = null), h.apply(this, e);
  8547. };
  8548. };
  8549. },
  8550. function (t, e, i) {
  8551. "use strict";
  8552. var n =
  8553. (this && this.__spreadArrays) ||
  8554. function () {
  8555. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  8556. var n = Array(t),
  8557. g = 0;
  8558. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  8559. return n;
  8560. },
  8561. g =
  8562. (this && this.__importDefault) ||
  8563. function (t) {
  8564. return t && t.__esModule ? t : { default: t };
  8565. };
  8566. Object.defineProperty(e, "__esModule", { value: !0 });
  8567. var A = g(i(41)),
  8568. r = g(i(42));
  8569. e.attachGauge = function (t) {
  8570. var e = {
  8571. processings: [],
  8572. setGaugeAttrs: [],
  8573. showGauge: [],
  8574. setGaugeModel: [],
  8575. hideGauge: [],
  8576. showDire: [],
  8577. hideDire: [],
  8578. setDireAttrs: [],
  8579. setAngle: [],
  8580. },
  8581. i = t.delProcessing;
  8582. t.delProcessing = function (g) {
  8583. for (var A = [], r = 1; r < arguments.length; r++) A[r - 1] = arguments[r];
  8584. var o = e.processings.indexOf(g);
  8585. return (
  8586. console.error("-------", o),
  8587. ~o &&
  8588. Object.keys(e).forEach(function (t) {
  8589. e[t].splice(o, 1);
  8590. }),
  8591. i.call.apply(i, n([t, g], A))
  8592. );
  8593. };
  8594. var g = t.addProcessing;
  8595. (t.addProcessing = function () {
  8596. for (var i = [], C = 0; C < arguments.length; C++) i[C] = arguments[C];
  8597. var I,
  8598. s = g.call.apply(g, n([t], i));
  8599. e.processings.push(s);
  8600. var a = s.lines,
  8601. l = a.push,
  8602. u = s.points,
  8603. c = u.push,
  8604. h = function (t) {
  8605. (t.__label_intercept = t.intercept),
  8606. (t.intercept = function () {
  8607. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  8608. return I.update(), t.__label_intercept.apply(t, e);
  8609. });
  8610. },
  8611. p = function (t) {
  8612. (t.__label_intercept = t.drag),
  8613. (t.drag = function () {
  8614. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  8615. return I.update(), t.__label_intercept.apply(t, e);
  8616. });
  8617. };
  8618. e.setGaugeAttrs.push(function (t) {
  8619. (I.__state.direct = !0),
  8620. Object.keys(t).forEach(function (e) {
  8621. I[e] = t[e];
  8622. }),
  8623. (I.__state.direct = !1),
  8624. I.update();
  8625. });
  8626. var d = function () {
  8627. I || ((I = new A.default({ processing: s })), (t.gauge = I)),
  8628. (a.push = function () {
  8629. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  8630. var i = l.apply(a, t);
  8631. return (
  8632. I.update(),
  8633. t.forEach(function (t) {
  8634. var e = t.ele;
  8635. return p(e);
  8636. }),
  8637. i
  8638. );
  8639. }),
  8640. u.forEach(function (t) {
  8641. var e = t.ele;
  8642. return h(e);
  8643. }),
  8644. a.forEach(function (t) {
  8645. var e = t.ele;
  8646. return p(e);
  8647. }),
  8648. (u.push = function () {
  8649. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  8650. return (
  8651. t.forEach(function (t) {
  8652. var e = t.ele;
  8653. return h(e);
  8654. }),
  8655. c.apply(u, t)
  8656. );
  8657. }),
  8658. s.render.push(I);
  8659. };
  8660. e.showGauge.push(d),
  8661. o && d(),
  8662. e.setGaugeModel.push(function (t) {
  8663. return I
  8664. ? ((I.surround = 1 === t),
  8665. new Promise(function (t) {
  8666. return I.nextTick(t);
  8667. }))
  8668. : new Promise(function (t) {
  8669. return t(void 0);
  8670. });
  8671. }),
  8672. e.hideGauge.push(function () {
  8673. (a.push = l),
  8674. (u.push = c),
  8675. u.forEach(function (t) {
  8676. var e = t.ele;
  8677. return (e.intercept = e.__label_intercept);
  8678. }),
  8679. s.render.remove(I);
  8680. });
  8681. var f = new r.default({ angle: 0, renderer: s.render });
  8682. return (
  8683. (s.direction = f),
  8684. e.showDire.push(function () {
  8685. (f.show = !0), s.render.push(f);
  8686. }),
  8687. e.hideDire.push(function () {
  8688. (f.show = !1), s.render.remove(f);
  8689. }),
  8690. e.setDireAttrs.push(function (t) {
  8691. return (
  8692. Object.keys(t).forEach(function (e) {
  8693. f[e] = t[e];
  8694. }),
  8695. new Promise(function (t) {
  8696. return f.nextTick(t);
  8697. })
  8698. );
  8699. }),
  8700. s
  8701. );
  8702. }),
  8703. (t.setGaugeAttrs = function (t) {
  8704. return (
  8705. console.error(e.setGaugeAttrs),
  8706. Promise.all(
  8707. e.setGaugeAttrs.map(function (e) {
  8708. return e(t);
  8709. })
  8710. )
  8711. );
  8712. });
  8713. var o = !1;
  8714. (t.showGauge = function () {
  8715. o ||
  8716. ((o = !0),
  8717. e.showGauge.forEach(function (t) {
  8718. return t();
  8719. }));
  8720. }),
  8721. (t.setGaugeModel = function (t) {
  8722. return Promise.all(
  8723. e.setGaugeModel.map(function (e) {
  8724. return e(t);
  8725. })
  8726. );
  8727. }),
  8728. (t.hideGauge = function () {
  8729. o &&
  8730. ((o = !0),
  8731. e.hideGauge.forEach(function (t) {
  8732. return t();
  8733. }));
  8734. });
  8735. var C = t.destroy;
  8736. (t.destroy = function () {
  8737. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  8738. t.hideGauge(), (o = !1), C.apply(this, e);
  8739. }),
  8740. (t.showDire = function () {
  8741. e.showDire.forEach(function (t) {
  8742. return t();
  8743. });
  8744. }),
  8745. (t.hideDire = function () {
  8746. e.hideDire.forEach(function (t) {
  8747. return t();
  8748. });
  8749. }),
  8750. (t.setDireAttrs = function (t) {
  8751. return Promise.all(
  8752. e.setDireAttrs.map(function (e) {
  8753. return e(t);
  8754. })
  8755. );
  8756. }),
  8757. (t.setAngle = function (e) {
  8758. (t.processing.data.dire = e), (t.processing.direction.angle = e);
  8759. });
  8760. };
  8761. },
  8762. function (t, e, i) {
  8763. "use strict";
  8764. var n,
  8765. g =
  8766. (this && this.__extends) ||
  8767. ((n = function (t, e) {
  8768. return (n =
  8769. Object.setPrototypeOf ||
  8770. ({ __proto__: [] } instanceof Array &&
  8771. function (t, e) {
  8772. t.__proto__ = e;
  8773. }) ||
  8774. function (t, e) {
  8775. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  8776. })(t, e);
  8777. }),
  8778. function (t, e) {
  8779. function i() {
  8780. this.constructor = t;
  8781. }
  8782. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  8783. }),
  8784. A =
  8785. (this && this.__assign) ||
  8786. function () {
  8787. return (A =
  8788. Object.assign ||
  8789. function (t) {
  8790. for (var e, i = 1, n = arguments.length; i < n; i++)
  8791. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  8792. return t;
  8793. }).apply(this, arguments);
  8794. },
  8795. r =
  8796. (this && this.__rest) ||
  8797. function (t, e) {
  8798. var i = {};
  8799. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  8800. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  8801. var g = 0;
  8802. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  8803. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  8804. }
  8805. return i;
  8806. };
  8807. Object.defineProperty(e, "__esModule", { value: !0 });
  8808. var o = i(2),
  8809. C = i(1),
  8810. I = i(0),
  8811. s = 0,
  8812. a = function (t, e, i, n, g, A, r, o, a) {
  8813. var l = document.createElementNS(C.SVGURI, "g"),
  8814. u = { points: [t, e] },
  8815. c = "lineBoth" + s++,
  8816. h = I.getDisVerticalLinePoints(u, t, n),
  8817. p = h[0],
  8818. d = h[1],
  8819. f = I.getDisVerticalLinePoints(u, e, n),
  8820. y = f[0],
  8821. v = f[1],
  8822. m = document.createElementNS(C.SVGURI, "path");
  8823. l.appendChild(m),
  8824. m.setAttribute("stroke", a),
  8825. m.setAttribute("stroke-width", i.toString()),
  8826. "top" === o || "right" === o
  8827. ? m.setAttribute("d", "M " + p.x + " " + p.y + " L " + y.x + " " + y.y)
  8828. : m.setAttribute("d", "M " + d.x + " " + d.y + " L " + v.x + " " + v.y),
  8829. m.setAttribute("id", c);
  8830. var b = m.cloneNode(!0);
  8831. b.setAttribute("d", "M " + p.x + " " + p.y + " L " + d.x + " " + d.y),
  8832. l.appendChild(b),
  8833. (b = m.cloneNode(!0)).setAttribute("d", "M " + y.x + " " + y.y + " L " + v.x + " " + v.y),
  8834. l.appendChild(b);
  8835. var x = (A.toString().length / 2.5) * g,
  8836. _ = A / 2 - x,
  8837. w = document.createElementNS(C.SVGURI, "text");
  8838. w.setAttribute("x", _.toString()), w.setAttribute("y", "0"), w.setAttribute("style", "fill: " + a + "; font-size: " + g + "px");
  8839. var P = document.createElementNS(C.SVGURI, "textPath");
  8840. P.setAttributeNS(C.SVGPATH, "xlink:href", "#" + c), P.appendChild(document.createTextNode(A + "m")), w.appendChild(P);
  8841. var O = I.lineVector({ points: [t, e] }),
  8842. S = document.createElementNS(C.SVGURI, "path");
  8843. S.setAttribute("stroke", a),
  8844. S.setAttribute("stroke-width", i.toString()),
  8845. O.x > O.y
  8846. ? S.setAttribute("d", "M " + t.x + " " + t.y + " L " + (e.x - _ - 2 * x - r) + " " + e.y)
  8847. : S.setAttribute("d", "M " + t.x + " " + t.y + " L " + e.x + " " + (e.y - _ - 2 * x - r));
  8848. var E = S.cloneNode(!0);
  8849. return (
  8850. O.x > O.y
  8851. ? E.setAttribute("d", "M " + (e.x - _ + r) + " " + t.y + " L " + e.x + " " + e.y)
  8852. : E.setAttribute("d", "M " + t.x + " " + (e.y - _ + r) + " L " + e.x + " " + e.y),
  8853. l.appendChild(E),
  8854. l.appendChild(S),
  8855. (m.style.display = "none"),
  8856. l.appendChild(w),
  8857. l
  8858. );
  8859. },
  8860. l = (function (t) {
  8861. function e(e) {
  8862. var i = e.processing,
  8863. n = e.padding,
  8864. g = void 0 === n ? 10 : n,
  8865. o = e.spacing,
  8866. C = void 0 === o ? 4 : o,
  8867. I = e.minPX,
  8868. s = void 0 === I ? 50 : I,
  8869. a = e.width,
  8870. l = void 0 === a ? 1 : a,
  8871. u = e.showBottom,
  8872. c = void 0 === u || u,
  8873. h = e.showTop,
  8874. p = void 0 === h || h,
  8875. d = e.showLeft,
  8876. f = void 0 === d || d,
  8877. y = e.showRight,
  8878. v = void 0 === y || y,
  8879. m = e.surround,
  8880. b = void 0 !== m && m,
  8881. x = e.stroke,
  8882. _ = void 0 === x ? "#fff" : x,
  8883. w = r(e, ["processing", "padding", "spacing", "minPX", "width", "showBottom", "showTop", "showLeft", "showRight", "surround", "stroke"]),
  8884. P =
  8885. t.call(this, A({ renderer: i.render, minPX: s, width: l, showBottom: c, showTop: p, showLeft: f, showRight: v, surround: b, stroke: _ }, w)) ||
  8886. this;
  8887. return (
  8888. (P.padding = g),
  8889. (P.spacing = C),
  8890. (P.processing = i),
  8891. Object.defineProperty(P, "points", {
  8892. get: function () {
  8893. return this.processing.points;
  8894. },
  8895. }),
  8896. P.update(),
  8897. P
  8898. );
  8899. }
  8900. return (
  8901. g(e, t),
  8902. (e.prototype.grentNode = function () {
  8903. (this.top = document.createElementNS(C.SVGURI, "g")),
  8904. (this.left = document.createElementNS(C.SVGURI, "g")),
  8905. (this.right = document.createElementNS(C.SVGURI, "g")),
  8906. (this.bottom = document.createElementNS(C.SVGURI, "g"));
  8907. var t = document.createElementNS(C.SVGURI, "g");
  8908. return t.appendChild(this.top), t.appendChild(this.left), t.appendChild(this.right), t.appendChild(this.bottom), t;
  8909. }),
  8910. (e.prototype.calcSplit = function () {
  8911. var t = this.processing.render,
  8912. e = this.minPX,
  8913. i = I.lineDis({ points: [t.screenToRealPoint({ x: 0, y: 0 }), t.screenToRealPoint({ x: e, y: 0 })] }),
  8914. n = I.lineDis({ points: [t.screenToRealPoint({ x: 0, y: 0 }), t.screenToRealPoint({ x: 0, y: e })] }),
  8915. g = this.points.map(function (t) {
  8916. return t.ele;
  8917. }),
  8918. r = [],
  8919. o = [],
  8920. C = [],
  8921. s = [],
  8922. a = function (t, e, r) {
  8923. var o, C;
  8924. g.sort(e),
  8925. g.forEach(function (e) {
  8926. return 0 === t.length || e[r] > t[t.length - 1] ? t.push(e[r]) : e[r] < t[0] && t.unshift(e[r]);
  8927. });
  8928. for (var s = "x" === r ? i : n, a = { x: 0, y: 0 }, l = 0; l < t.length - 2; l++) {
  8929. var u = A(A({}, a), (((o = {})[r] = t[l]), o)),
  8930. c = A(A({}, a), (((C = {})[r] = t[l + 1]), C));
  8931. I.lineDis({ points: [u, c] }) < s && (t.splice(l + 1, 1), l--);
  8932. }
  8933. t.length > 2 && t.splice(t.length - 2, 2, t[t.length - 1]);
  8934. };
  8935. return (
  8936. a(
  8937. r,
  8938. function (t, e) {
  8939. return t.x - e.x ? t.x - e.x : e.y - t.y;
  8940. },
  8941. "y"
  8942. ),
  8943. a(
  8944. C,
  8945. function (t, e) {
  8946. return e.x - t.x ? e.x - t.x : e.y - t.y;
  8947. },
  8948. "y"
  8949. ),
  8950. a(
  8951. o,
  8952. function (t, e) {
  8953. return t.y - e.y ? t.y - e.y : e.x - t.x;
  8954. },
  8955. "x"
  8956. ),
  8957. a(
  8958. s,
  8959. function (t, e) {
  8960. return e.y - t.y ? e.y - t.y : e.x - t.x;
  8961. },
  8962. "x"
  8963. ),
  8964. { left: r, top: o, right: C, bottom: s }
  8965. );
  8966. }),
  8967. (e.prototype.update = function () {
  8968. var t = this;
  8969. if (0 !== this.points.length && 0 !== this.processing.render.props.width) {
  8970. var e = this.processing.render,
  8971. i = 10 * this.width * this.multiple,
  8972. n = this.calcSplit(),
  8973. g = n.left,
  8974. A = n.right,
  8975. r = n.top,
  8976. o = n.bottom,
  8977. C = e.screenToRealPoint({ x: this.padding, y: this.padding }),
  8978. I = e.screenToRealPoint({ x: e.props.width / e.props.multiple - this.padding, y: e.props.height / e.props.multiple - this.padding });
  8979. if (this.surround) {
  8980. var s = this.points.map(function (t) {
  8981. return t.ele.x;
  8982. }),
  8983. l = this.points.map(function (t) {
  8984. return t.ele.y;
  8985. }),
  8986. u = Math.max.apply(Math, s),
  8987. c = Math.min.apply(Math, s),
  8988. h = Math.max.apply(Math, l),
  8989. p = Math.min.apply(Math, l);
  8990. Math.abs(C.x - c) < Math.abs(C.y - p) && Math.abs(I.x - u) - Math.abs(I.y - h)
  8991. ? ((I = { x: I.x, y: h + Math.abs(C.x - c) }), (C = { x: C.x, y: p - Math.abs(C.x - c) }))
  8992. : ((I = { x: u + Math.abs(C.y - h), y: I.y }), (C = { x: c - Math.abs(C.y - p), y: I.y }));
  8993. }
  8994. var d = function (e, n, g, A) {
  8995. for (var r = 0; r < e.length - 1; r++) {
  8996. var o = 0 === r ? e[r] : e[r] + (t.spacing / 2) * t.multiple,
  8997. C = r + 1 === e.length ? e[r + 1] : e[r + 1] - (t.spacing / 2) * t.multiple;
  8998. g(
  8999. a(n(o), n(C), t.width * t.multiple, 4 * t.width * t.multiple, i, Number(Math.abs(e[r + 1] - e[r]).toFixed(2)), 10 * t.multiple, A, t.stroke)
  9000. );
  9001. }
  9002. };
  9003. [this.left, this.top, this.right, this.bottom].forEach(function (t) {
  9004. for (; t.childNodes.length; ) t.removeChild(t.childNodes[0]);
  9005. }),
  9006. this.showLeft &&
  9007. d(
  9008. g,
  9009. function (t) {
  9010. return { x: C.x, y: t };
  9011. },
  9012. function (e) {
  9013. return t.left.appendChild(e);
  9014. },
  9015. "left"
  9016. ),
  9017. this.showBottom &&
  9018. d(
  9019. o,
  9020. function (t) {
  9021. return { x: t, y: I.y };
  9022. },
  9023. function (e) {
  9024. return t.bottom.appendChild(e);
  9025. },
  9026. "bottom"
  9027. ),
  9028. this.showTop &&
  9029. d(
  9030. r,
  9031. function (t) {
  9032. return { x: t, y: C.y };
  9033. },
  9034. function (e) {
  9035. e.querySelector("text").setAttribute("transform", "translate(0, " + i / 1.2 + ")"), t.top.appendChild(e);
  9036. },
  9037. "top"
  9038. ),
  9039. this.showRight &&
  9040. d(
  9041. A,
  9042. function (t) {
  9043. return { x: I.x, y: t };
  9044. },
  9045. function (e) {
  9046. e.querySelector("text").setAttribute("transform", "translate(-" + i / 1.2 + ", 0)"), t.right.appendChild(e);
  9047. },
  9048. "right"
  9049. );
  9050. }
  9051. }),
  9052. e
  9053. );
  9054. })(o.CADElement);
  9055. e.default = l;
  9056. },
  9057. function (t, e, i) {
  9058. "use strict";
  9059. var n,
  9060. g =
  9061. (this && this.__extends) ||
  9062. ((n = function (t, e) {
  9063. return (n =
  9064. Object.setPrototypeOf ||
  9065. ({ __proto__: [] } instanceof Array &&
  9066. function (t, e) {
  9067. t.__proto__ = e;
  9068. }) ||
  9069. function (t, e) {
  9070. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  9071. })(t, e);
  9072. }),
  9073. function (t, e) {
  9074. function i() {
  9075. this.constructor = t;
  9076. }
  9077. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  9078. }),
  9079. A =
  9080. (this && this.__assign) ||
  9081. function () {
  9082. return (A =
  9083. Object.assign ||
  9084. function (t) {
  9085. for (var e, i = 1, n = arguments.length; i < n; i++)
  9086. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  9087. return t;
  9088. }).apply(this, arguments);
  9089. },
  9090. r =
  9091. (this && this.__rest) ||
  9092. function (t, e) {
  9093. var i = {};
  9094. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  9095. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  9096. var g = 0;
  9097. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  9098. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  9099. }
  9100. return i;
  9101. },
  9102. o =
  9103. (this && this.__importDefault) ||
  9104. function (t) {
  9105. return t && t.__esModule ? t : { default: t };
  9106. };
  9107. Object.defineProperty(e, "__esModule", { value: !0 });
  9108. var C = i(2),
  9109. I = i(1),
  9110. s = i(0),
  9111. a = o(i(43)),
  9112. l = o(i(44)),
  9113. u = o(i(45)),
  9114. c = { defaultIcon: l.default, darkIcon: u.default },
  9115. h = (function (t) {
  9116. function e(e) {
  9117. var i = e.fontSize,
  9118. n = void 0 === i ? 8 : i,
  9119. g = e.r,
  9120. o = void 0 === g ? 50 : g,
  9121. C = e.icon,
  9122. I = void 0 === C ? "defaultIcon" : C,
  9123. s = e.border,
  9124. a = void 0 === s ? 3 : s,
  9125. l = e.right,
  9126. u = void 0 === l ? 20 : l,
  9127. c = e.top,
  9128. h = void 0 === c ? 20 : c,
  9129. p = e.ArgDire,
  9130. d = void 0 === p ? 15 : p,
  9131. f = e.simple,
  9132. y = void 0 !== f && f,
  9133. v = e.angle,
  9134. m = void 0 === v ? 0 : v,
  9135. b = r(e, ["fontSize", "r", "icon", "border", "right", "top", "ArgDire", "simple", "angle"]);
  9136. return t.call(this, A({ fontSize: n, r: o, border: a, right: u, top: h, ArgDire: d, simple: y, icon: I, angle: m }, b)) || this;
  9137. }
  9138. return (
  9139. g(e, t),
  9140. (e.prototype.grentNode = function () {
  9141. var t = document.createElementNS(I.SVGURI, "g");
  9142. (this.dire = document.createElementNS(I.SVGURI, "image")),
  9143. (this.bg = document.createElementNS(I.SVGURI, "image")),
  9144. (this.bg.href.baseVal = a.default),
  9145. (this.inner = document.createElementNS(I.SVGURI, "circle")),
  9146. this.inner.setAttribute("fill", "rgba(41,41,41,1)");
  9147. var e = document.createElementNS(I.SVGURI, "text");
  9148. return (
  9149. e.setAttribute("fill", "#fff"),
  9150. e.setAttribute("text-anchor", "middle"),
  9151. (this.topText = e.cloneNode(!0)),
  9152. (this.rightText = e.cloneNode(!0)),
  9153. (this.leftText = e.cloneNode(!0)),
  9154. (this.bottomText = e.cloneNode(!0)),
  9155. (this.topText.textContent = "N"),
  9156. this.topText.setAttribute("fill", "#00A0E9"),
  9157. (this.rightText.textContent = "E"),
  9158. (this.leftText.textContent = "W"),
  9159. (this.bottomText.textContent = "S"),
  9160. this.bottomText.setAttribute("fill", "#D84141"),
  9161. (this.arc = document.createElementNS(I.SVGURI, "path")),
  9162. this.arc.setAttribute("fill", "rgba(255,255,255,0.3)"),
  9163. t.appendChild(this.inner),
  9164. t.appendChild(this.arc),
  9165. t.appendChild(this.bg),
  9166. t.appendChild(this.dire),
  9167. t.appendChild(this.topText),
  9168. t.appendChild(this.rightText),
  9169. t.appendChild(this.bottomText),
  9170. t.appendChild(this.leftText),
  9171. t
  9172. );
  9173. }),
  9174. (e.prototype.intercept = function () {
  9175. return !0;
  9176. }),
  9177. (e.prototype.update = function () {
  9178. var t = this.r / 2 + this.border + this.right,
  9179. e = this.r / 2 + this.border + this.top,
  9180. i = this.renderer,
  9181. n = this.fontSize * this.multiple,
  9182. g = this.border * this.multiple,
  9183. A = i.screenToRealPoint({ x: i.props.width / i.props.multiple - e, y: t });
  9184. if (!isNaN(A.x) && !isNaN(A.y)) {
  9185. var r = this.r * this.multiple,
  9186. o = (n + 3 * g + r) / 2;
  9187. this.inner.setAttribute("r", o.toString()),
  9188. this.inner.setAttribute("cx", A.x.toString()),
  9189. this.inner.setAttribute("cy", A.y.toString()),
  9190. this.icon !== this.firstIcon && ((this.dire.href.baseVal = c[this.icon]), (this.firstIcon = this.icon)),
  9191. this.dire.setAttribute("x", (A.x - r / 2).toString()),
  9192. this.dire.setAttribute("y", (A.y - r / 2).toString()),
  9193. this.dire.setAttribute("width", r.toString()),
  9194. this.dire.setAttribute("height", r.toString()),
  9195. this.bg.setAttribute("x", (A.x - r / 2).toString()),
  9196. this.bg.setAttribute("y", (A.y - r / 2).toString()),
  9197. this.bg.setAttribute("width", r.toString()),
  9198. this.bg.setAttribute("height", r.toString()),
  9199. this.topText.setAttribute("x", A.x.toString()),
  9200. this.topText.setAttribute("y", (A.y - r / 2 - n / 2 + g).toString()),
  9201. this.topText.setAttribute("font-size", n.toString()),
  9202. this.rightText.setAttribute("x", (A.x + r / 2 + g).toString()),
  9203. this.rightText.setAttribute("y", (A.y + n / 2).toString()),
  9204. this.rightText.setAttribute("font-size", n.toString()),
  9205. this.bottomText.setAttribute("x", A.x.toString()),
  9206. this.bottomText.setAttribute("y", (A.y + r / 2 + n).toString()),
  9207. this.bottomText.setAttribute("font-size", n.toString()),
  9208. this.leftText.setAttribute("x", (A.x - r / 2 - n + g).toString()),
  9209. this.leftText.setAttribute("y", (A.y + g).toString()),
  9210. this.leftText.setAttribute("font-size", n.toString());
  9211. var C = this.ArgDire * this.multiple,
  9212. I = { points: [A, { x: A.x - C, y: A.y - r / 2 - n - g }] },
  9213. a = { points: [A, { x: A.x + C, y: A.y - r / 2 - n - g }] },
  9214. l = s.getDisPointLinePoints(I, I.points[0], o),
  9215. u = l[0],
  9216. h = l[1],
  9217. p = s.getDisPointLinePoints(a, a.points[0], o),
  9218. d = p[0],
  9219. f = p[1],
  9220. y = s.lineDis({ points: [I.points[1], u] }) > s.lineDis({ points: [I.points[1], h] }) ? h : u,
  9221. v = s.lineDis({ points: [a.points[1], d] }) > s.lineDis({ points: [a.points[1], f] }) ? f : d;
  9222. this.arc.setAttribute("d", "M " + A.x + " " + A.y + " L " + y.x + " " + y.y + " A " + o + " " + o + " 0 0 1 " + v.x + " " + v.y + " Z"),
  9223. this.real.setAttribute("transform", "rotate(" + (this.angle || 0) + " " + A.x + " " + A.y + ")"),
  9224. this.simple
  9225. ? ((this.leftText.style.display = "none"),
  9226. (this.rightText.style.display = "none"),
  9227. (this.bg.style.display = "none"),
  9228. (this.inner.style.display = "none"),
  9229. (this.arc.style.display = "none"))
  9230. : ((this.leftText.style.display = "inherit"),
  9231. (this.rightText.style.display = "inherit"),
  9232. (this.bg.style.display = "inherit"),
  9233. (this.inner.style.display = "inherit"),
  9234. (this.arc.style.display = "inherit"));
  9235. }
  9236. }),
  9237. e
  9238. );
  9239. })(C.CADElement);
  9240. e.default = h;
  9241. },
  9242. function (t, e, i) {
  9243. "use strict";
  9244. Object.defineProperty(e, "__esModule", { value: !0 }),
  9245. (e.default =
  9246. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA57mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNyAoV2luZG93cyk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTktMDQtMDJUMTg6MDg6MDQrMDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE5LTA0LTAyVDE4OjA4OjA0KzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOS0wNC0wMlQxODowODowNCswODowMDwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnhtcC5paWQ6ZmNiZDY2ZjMtNWIwZC01MjQ2LWI2YWItZjYyNGJjMzIyYTcyPC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD5hZG9iZTpkb2NpZDpwaG90b3Nob3A6MzEzMmMzMmMtNTUyZi0xMWU5LWEwMGUtZTdmMzVhMTA0MmVkPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6NzJjOGU4ZjctNWJlZC1mZDQyLTlhYTQtNGYxZDQ0MDE5OTRjPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y3JlYXRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOjcyYzhlOGY3LTViZWQtZmQ0Mi05YWE0LTRmMWQ0NDAxOTk0Yzwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOS0wNC0wMlQxODowODowNCswODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDpmY2JkNjZmMy01YjBkLTUyNDYtYjZhYi1mNjI0YmMzMjJhNzI8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTktMDQtMDJUMTg6MDg6MDQrMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE3IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+GZD5AAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAGxklEQVR42uxdTWhVRxT+ThKTkrh4gQQRJCgGN49kUxqCuCq4cWFAhUZCRHFRoUR0ZcSdXRjcKGbVjUhLwJJWSRYuFApCSImlKEYXSpQoKJQKzaaiVfm6yFGCmZn3cnPffffnfBACd+beOed8b+acO/fMDJADkDxG8lgedGlCPvBFTvRAAwxGiMEIMUIMRogRknBoO0uyMcJ9jSRnjZDahOjdEe7rzlJ435CiHtBN8lagyjyAngiP7tF7fe3eItlthKzGEwDbSW5NihBta7u2bYSshIgQwASAIU+V+wB6Izy6V+91YQjAhLZdTJCcJtniKdtB8pGnrJPkgqfsBMkTnrIFkp2eskckd3jKWkhOF6GHvAJw0tNLHgNYItnnKPsbQCvJtjWQ3wagVe/9vKwPwJK26cJJlTX3hJwGMEJys6f8RwDDnrKHAMpraKus97gwrG25iNwMYERlzTchIvIXgEsAznmq/AxgP8kNMTh2p0PXZx/Qtlw4B+CSypp9QkiWSA4GqlwAsNMzNL0C8AeAPR7H7iLkg/65CHE59D0A7mhbrqFsp8ro02+QZClLjruV5AOSBwN1BvTtWxxl+0lOOq53kRx2XG8m2ey4Pkyyy3F9kuR+x3VRmQYCch9U3VqzFk1tI/mMZH+gzk2SQ54I56WLrBjkEn12i6NsiOTNwL39qtO2rIa4u0g+d/1KtbxMctEVOdVySHA9m2SbylL23NOluuzK+nvHIZL3SG70lI+TPJsCOc+SHPeUbVQdDmXB4KVK4ynJMZJTrtlaku0kj6ZAj6Mk2x3XG1X2sSr8ZikNhAyqk9sWqNNA8jrJ8xns4edV9oYK/vJBhcgyUaEPqrPbFXprJnmX5JEMkXFEZW6r4CefhSLKegnfr07vUKDOFpIzGSJkhuSWCv7xeSiSrLcCXer8xkJdPOvQIXhMde1Ku7Ab1QleX8tEYIbIaFPdpnyRYxqFblRneDfU5TNIxhbV6XyU7/u1Emqa5GWSm6p0ijM5ImSmmqCE5Ca10XQSQrWQHCX5guQp1xxSUaFzaqfUNqO+D3G1anwzySskH4cm4wpExoDa4krgW08igvTpDOlN3zxQzokoq+6zrs8J9RJKdKZ0Ueem2gtARLvquqi6xzIzHcu7gohQRCaw/Mn0HwD7CtA59qmuZRFJNnNFk9gEhvWMIN1xPvAWyackv/elzRicdtuhNntaISsz0sO3kjyjuUxzJL8j2WFmX2WnDrXNnNrqTCAbM9bIalw/hU7pN/CWApPQojaYUpuM1yXiIrlB4+9JFaRUQDJKqvuk2mJDahxXkZ22DdYGQxKQCl1xFsurj+b17z6AeVfyssFpv04sZ0/26v8eAO9FZGdUQhqxvCSs57MHt2I5ifkjSb+JyPOCG78LwNcrbFQG8HrlD1n/FkTkQyRCAo23aYMfifpTRH4qOCHDAL5cYfiHIvKvjRMGg8FgSCzs1Y2/1rPf1AcAP4jIfwV36s0AvgWwnmyUN7bXicFgMBgMeYmyIkYUNnWy2iaxTJ00VWikmsnFewBu228btzXk7QUwCKBMMt7JRZK/ayM2/R6t16x5+t1gMCTVPS3JIQY0rFOQT2lAAF4UNQ1Ida9fGpAjUe6AJcrxQKKJcpZKWrWdap9KasnWke1Wm2RrW46wfqdfl72BdQ332TRsJpOArkdV11jX4jfE+AsY0umUdgDXCvDDv6a6PoxzSVtcEZct+qz3ok9bFr3KHvVZFm0bBwRtk/zGAba1Rsq21qhScNt8JkVC2/ZMKRLWNjBLkZC2xV+KBLdNMNOyCaZtE5uybWJtI+VP9Voz8YHOthpPFxm2GX+KyLDjKlJEhh3okjJCgkceqQEf+6ar1YkOOK4fJnnRcX2E5Ijj+kWShz0/hilP230qW3OFyLImQ2pN3qZFZElErgaqnAQwKyJ3HMp2APgKwA3Hfb1wn9rZCPdSsnm4D6O8AaDPlaShMs3Cc7Sf1rkqIkuZIaRC79kE4Dj8R9J9A+BXEXnnKAuea+shpMdh0HcAftG2XDgN4Hg1M9p5mAe6THI0UD4XGMpeeiIy50mfGjm9DAxNcwE5RkleTto+9ZgA7IDnSDpNMSp5hrJOAK/XsuZC6752Hb2qbZQCaU0XVNZ8EyIie0XkrafYe/pmhOEqOGwpvKeKishbEdlbhB7ifT+Ant7sqRI69TmE0CnTEwCG0pRzlqZvFtsBPBGRxaR6iLb1RNs2Qj4zzoKI7A5UqcWQBRHZLSILRsja8R5AFMMt6L2ZQFNWBI26Lk8XWGZmTZ/tdWKEGIwQI8RghOQETTnR401eCPl/AKBc4r28/8mlAAAAAElFTkSuQmCC");
  9247. },
  9248. function (t, e, i) {
  9249. "use strict";
  9250. Object.defineProperty(e, "__esModule", { value: !0 }),
  9251. (e.default =
  9252. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA57mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNyAoV2luZG93cyk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTktMDQtMDJUMTg6MDg6MTErMDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE5LTA0LTAyVDE4OjA4OjExKzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOS0wNC0wMlQxODowODoxMSswODowMDwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnhtcC5paWQ6YjliYTljZjQtZGJkMy0zNzQ2LWFiYzItMTY3OWU5MDE0ZTIxPC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD5hZG9iZTpkb2NpZDpwaG90b3Nob3A6MzY3NTdiNWMtNTUyZi0xMWU5LWEwMGUtZTdmMzVhMTA0MmVkPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6ZTA5YzJmMmYtOGM5Zi1mZTQwLTgyMTEtMGNjZmY2ZDFmNzZkPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y3JlYXRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOmUwOWMyZjJmLThjOWYtZmU0MC04MjExLTBjY2ZmNmQxZjc2ZDwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOS0wNC0wMlQxODowODoxMSswODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDpiOWJhOWNmNC1kYmQzLTM3NDYtYWJjMi0xNjc5ZTkwMTRlMjE8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTktMDQtMDJUMTg6MDg6MTErMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE3IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+hSv1CAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAADBUlEQVR42uycO2/UQBRGz10tCggkBAqyiKCCCkRPBw00IChAYgON/wb/xg1hFwpooEsFRSToEFSk42UeQilQhII8FDFSErxmH17bd/mOFMnZ9YwyOfY39ng8FkJAtIeO/gUSIiREQoSESIiQEAkREiIhQkKEhEiIkBAJERIiIUJCJERIiJAQCRES4p2uhz/SzMp3SNLzAMTRWtluHuagdefkwLoFGLDmvSHm4agpPUOStAO8y387QRxlns+QeehDLgDH85+L6tTbEVdF24qs2iMrSfcBKXAk/+Q7EBFHW4qsZri0Qwb59mVFVnMsF3zWU2Q1EVlJegD4DBza880P4BhxtKnIqpcrBTIADgJXFVntiCv3seUzspL0MPAJ2D+kyM/8amtDkVUP10pkACwA1xVZ9XFnhH1uK7LqiKwkXQQ+8u+B0V/AEnH0RZE1W24y2ih1F7ihyGr26sp9bPmKrCRdYnuo3UYsGoCTxNF7Rdbszg4bx6W3exJvQiYZXnclxE9kJekp4O2EVZwmjtYVWc115m47d09Ceg2VlZC/SNJzwNkpajiT1yEhLYgrV7HlYl7W0YXOcjZlh9wx6wF3JaQCvvUWswqqyTy01UtkDSqo44GEVMf9CupYkZDqbgxfAa+nqOJNXoeEVEi/obL1Hnxehk5CCFMNnZiZhk4qlrIOvJig6Mu8rO7UW3K11ffUQFcPqEIIEz2gMjM9oJqRmA/AszGKPP8jQ5HVjnuSFW+NczcNKIQw1jQgM9M0oBnL+QqsjrDr6k4ZiqzZcm8e48plZOXRM9JkazPTZOuaBG0AT0t2ebJXhiKr2autvtdGuX2lLYRQ+kqbmemVtpolbQKPC756VCRDkdVcbPU9N8j1wgEhhMKFA8xMCwc0JGqL3c/KHw6Tociqj8GQbUVW3ZGVx9Cu5ZnMzPXyTO4XMDOzLIQw2N60zHt75mVFucGctMNHZP1PaFVSCRESIiFCQiRESIiECAmRECEhQkIkREiIhAgJkRAhIRIiJERIiIQICXHP7wEAHiDp1oKzlp8AAAAASUVORK5CYII=");
  9253. },
  9254. function (t, e, i) {
  9255. "use strict";
  9256. Object.defineProperty(e, "__esModule", { value: !0 }),
  9257. (e.default =
  9258. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAwFJREFUeNrsnc1r1EAYhzNLpYqCKMpiqyc9KeLVm170ouhBwa1e/B88+d/k4rr1Az+wHpSCooeC3kRP9mbUsYIIioqy6zvuCEXTdD8mmbzL88AkaTIzbPpsfpNNk63p9XoJ1IcGvwKEAEIQAghBCCAEIYAQhABCACEIAYQgBBCCEEAIQgAhgBCEAEK0M6XhRRpjiiuk9vCf+cXmUlE1DfegTU3IG+uc8yZlSfuOGA3vmsIjJLUudt/4n3bLUdLVfIRMwhhyRMouX44yqNcjrvKWiazKIyu1G2RqpWzzaz5JaUps/SSy4nBslYzELx8nsuIxl7OuRWTFiKzUbpLpBylb/tnyVcpOia1vRFa1nMiR4dgs5SSRVY+4Uh9bOiMrtVtl+l7KxjWa/PBnW5+JrGo4VSDDMS3lNJFVHRcGqHOeyKoislK7Q6bvkvUvjP6SMiOxtUJklcvZZLCr1K7OGSIr7tmV+tjSFVmpnUn6l9rNgE3dzu2R2MqIrPKODjOMS22fSbQJGeXyuioheiIrtXtl8fWIXeyT2FomsuIN5moHd01CWpHaIuQ/UntQpgfG6GG/7wMhNYgrVbGl4r6s7dONue6YA3LDGBdblxES4kVeOtQN0E03aWVEViDmA/RxjTEkHFcD9NFGSCBslr2Q2csxunjl+0BIQDqR2iKkhNhqIyR8bC3L7NkITZ/7tgipydlWR9MOahPiYmuYT4g9hJQbW29l9mSIJk+lTYaQ+gzubW07p1HIjaR/i896uDo3EVJ+bH2U2eIAVRel7gpCquHKJMaVZiF3pXwv2O5utr6DkOpiy93Vfr+gyoKvg5CanG11tO6UZiELUr7krHePtN1DSPWx5Z4hvJ2z6ZbfhpCaxFZH8w5pF/Iw6X9ZwF/c8gOExIst940Nq/9Wft2vQ0hE5tdYVskkfF/W46T/iJvjEULix1a3OTvrjgzjlhFSv9hSjeF/4TKoA0IQAghBCCAEIYAQhABCACEIAYQgBBCCEEAIQgAhgBCEAEIQAkH5LcAAKoHVGsvfGGUAAAAASUVORK5CYII=");
  9259. },
  9260. function (t, e, i) {
  9261. "use strict";
  9262. var n =
  9263. (this && this.__spreadArrays) ||
  9264. function () {
  9265. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  9266. var n = Array(t),
  9267. g = 0;
  9268. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  9269. return n;
  9270. },
  9271. g =
  9272. (this && this.__importDefault) ||
  9273. function (t) {
  9274. return t && t.__esModule ? t : { default: t };
  9275. };
  9276. Object.defineProperty(e, "__esModule", { value: !0 });
  9277. var A = g(i(47)),
  9278. r = i(3);
  9279. e.attachSign = function (t) {
  9280. var e = { border: 2, r: 5 },
  9281. i = t.addProcessing;
  9282. (t.addProcessing = function () {
  9283. for (var g = [], r = 0; r < arguments.length; r++) g[r] = arguments[r];
  9284. var o = i.call.apply(i, n([t], g));
  9285. A.default.Setting.set(o.render, e);
  9286. var C = new A.default({ pos: { x: 0, y: 0 }, dire: 0, renderer: o.render });
  9287. return (C.zIndex = 1), o.render.push(C), (o.sign = C), o;
  9288. }),
  9289. (t.setSign = function (e, i) {
  9290. var n = t.processing.sign;
  9291. r.type.isNumber(i) && (n.dire = i), (n.pos = e);
  9292. }),
  9293. (t.hideSign = function () {
  9294. var e = t.processing.sign;
  9295. return (
  9296. (e.show = !1),
  9297. new Promise(function (t) {
  9298. return e.nextTick(t);
  9299. })
  9300. );
  9301. }),
  9302. (t.showSign = function () {
  9303. var e = t.processing.sign;
  9304. return (
  9305. (e.show = !0),
  9306. new Promise(function (t) {
  9307. return e.nextTick(t);
  9308. })
  9309. );
  9310. }),
  9311. (t.setDefaultSignStyle = function (i) {
  9312. var n = t.processing.sign;
  9313. i.border && ((e.border = i.border), (n.border = i.border)), i.r && ((e.r = i.r), (n.r = i.r)), i.color && (n.color = i.color);
  9314. });
  9315. };
  9316. },
  9317. function (t, e, i) {
  9318. "use strict";
  9319. var n,
  9320. g =
  9321. (this && this.__extends) ||
  9322. ((n = function (t, e) {
  9323. return (n =
  9324. Object.setPrototypeOf ||
  9325. ({ __proto__: [] } instanceof Array &&
  9326. function (t, e) {
  9327. t.__proto__ = e;
  9328. }) ||
  9329. function (t, e) {
  9330. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  9331. })(t, e);
  9332. }),
  9333. function (t, e) {
  9334. function i() {
  9335. this.constructor = t;
  9336. }
  9337. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  9338. }),
  9339. A =
  9340. (this && this.__assign) ||
  9341. function () {
  9342. return (A =
  9343. Object.assign ||
  9344. function (t) {
  9345. for (var e, i = 1, n = arguments.length; i < n; i++)
  9346. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  9347. return t;
  9348. }).apply(this, arguments);
  9349. },
  9350. r =
  9351. (this && this.__rest) ||
  9352. function (t, e) {
  9353. var i = {};
  9354. for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  9355. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  9356. var g = 0;
  9357. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  9358. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]]);
  9359. }
  9360. return i;
  9361. };
  9362. Object.defineProperty(e, "__esModule", { value: !0 });
  9363. var o = i(2),
  9364. C = i(1),
  9365. I = 0,
  9366. s = (function (t) {
  9367. function e(i) {
  9368. var n = i.border,
  9369. g = i.r,
  9370. o = i.show,
  9371. C = void 0 === o || o,
  9372. s = i.color,
  9373. a = void 0 === s ? "rgb(0, 200, 175)" : s,
  9374. l = r(i, ["border", "r", "show", "color"]);
  9375. return (
  9376. (n = n || e.Setting.get(l.renderer).border),
  9377. (g = g || e.Setting.get(l.renderer).r),
  9378. I++,
  9379. t.call(this, A({ border: n, r: g, show: C, color: a }, l)) || this
  9380. );
  9381. }
  9382. return (
  9383. g(e, t),
  9384. (e.prototype.grentNode = function () {
  9385. var t = document.createElementNS(C.SVGURI, "g");
  9386. (this.inner = document.createElementNS(C.SVGURI, "circle")),
  9387. this.inner.setAttribute("stroke", "#fff"),
  9388. (this.arc = document.createElementNS(C.SVGURI, "path")),
  9389. this.arc.setAttribute("fill", "url(#orange_red" + I + ")");
  9390. var e = document.createElementNS(C.SVGURI, "defs"),
  9391. i = document.createElementNS(C.SVGURI, "linearGradient");
  9392. i.setAttribute("id", "orange_red" + I),
  9393. i.setAttribute("x1", "0%"),
  9394. i.setAttribute("y1", "0%"),
  9395. i.setAttribute("x2", "100%"),
  9396. i.setAttribute("y2", "100%");
  9397. var n = document.createElementNS(C.SVGURI, "stop");
  9398. n.setAttribute("offset", "0%");
  9399. var g = document.createElementNS(C.SVGURI, "stop");
  9400. return (
  9401. g.setAttribute("offset", "100%"),
  9402. i.appendChild(n),
  9403. i.appendChild(g),
  9404. e.appendChild(i),
  9405. t.appendChild(this.arc),
  9406. t.appendChild(this.inner),
  9407. t.appendChild(e),
  9408. t.setAttribute("class", "sign"),
  9409. (this.$stop1 = n),
  9410. (this.$stop2 = g),
  9411. t
  9412. );
  9413. }),
  9414. (e.prototype.update = function () {
  9415. this.inner.setAttribute("fill", this.color),
  9416. this.$stop1.setAttribute("style", "stop-color:" + this.color + "; stop-opacity:1"),
  9417. this.$stop2.setAttribute("style", "stop-color:" + this.color + "; stop-opacity:0.4"),
  9418. this.inner.setAttribute("r", (this.r * this.multiple).toString()),
  9419. this.inner.setAttribute("stroke-width", (this.border * this.multiple).toString()),
  9420. this.inner.setAttribute("cx", this.pos.x.toString()),
  9421. this.inner.setAttribute("cy", this.pos.y.toString());
  9422. var t = 0.4 * this.r * this.multiple,
  9423. e = 1.6 * this.r * this.multiple,
  9424. i = 2.8 * this.r * this.multiple;
  9425. this.arc.setAttribute(
  9426. "d",
  9427. "\n M " +
  9428. this.pos.x +
  9429. " " +
  9430. (this.pos.y - t) +
  9431. " \n L " +
  9432. (this.pos.x + i) +
  9433. " " +
  9434. (this.pos.y - e) +
  9435. " \n L " +
  9436. (this.pos.x + i) +
  9437. " " +
  9438. (this.pos.y + e) +
  9439. " \n L " +
  9440. this.pos.x +
  9441. " " +
  9442. (this.pos.y + t) +
  9443. " Z\n "
  9444. ),
  9445. this.real.setAttribute("transform", "rotate(" + this.dire + " " + this.pos.x + " " + this.pos.y + ")"),
  9446. (this.real.style.display = this.show ? "inherit" : "none");
  9447. }),
  9448. (e.Setting = new Map()),
  9449. e
  9450. );
  9451. })(o.CADElement);
  9452. e.default = s;
  9453. },
  9454. function (t, e, i) {
  9455. "use strict";
  9456. var n =
  9457. (this && this.__assign) ||
  9458. function () {
  9459. return (n =
  9460. Object.assign ||
  9461. function (t) {
  9462. for (var e, i = 1, n = arguments.length; i < n; i++)
  9463. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  9464. return t;
  9465. }).apply(this, arguments);
  9466. },
  9467. g =
  9468. (this && this.__awaiter) ||
  9469. function (t, e, i, n) {
  9470. return new (i || (i = Promise))(function (g, A) {
  9471. function r(t) {
  9472. try {
  9473. C(n.next(t));
  9474. } catch (t) {
  9475. A(t);
  9476. }
  9477. }
  9478. function o(t) {
  9479. try {
  9480. C(n.throw(t));
  9481. } catch (t) {
  9482. A(t);
  9483. }
  9484. }
  9485. function C(t) {
  9486. var e;
  9487. t.done
  9488. ? g(t.value)
  9489. : ((e = t.value),
  9490. e instanceof i
  9491. ? e
  9492. : new i(function (t) {
  9493. t(e);
  9494. })).then(r, o);
  9495. }
  9496. C((n = n.apply(t, e || [])).next());
  9497. });
  9498. },
  9499. A =
  9500. (this && this.__generator) ||
  9501. function (t, e) {
  9502. var i,
  9503. n,
  9504. g,
  9505. A,
  9506. r = {
  9507. label: 0,
  9508. sent: function () {
  9509. if (1 & g[0]) throw g[1];
  9510. return g[1];
  9511. },
  9512. trys: [],
  9513. ops: [],
  9514. };
  9515. return (
  9516. (A = { next: o(0), throw: o(1), return: o(2) }),
  9517. "function" == typeof Symbol &&
  9518. (A[Symbol.iterator] = function () {
  9519. return this;
  9520. }),
  9521. A
  9522. );
  9523. function o(A) {
  9524. return function (o) {
  9525. return (function (A) {
  9526. if (i) throw new TypeError("Generator is already executing.");
  9527. for (; r; )
  9528. try {
  9529. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  9530. return g;
  9531. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  9532. case 0:
  9533. case 1:
  9534. g = A;
  9535. break;
  9536. case 4:
  9537. return r.label++, { value: A[1], done: !1 };
  9538. case 5:
  9539. r.label++, (n = A[1]), (A = [0]);
  9540. continue;
  9541. case 7:
  9542. (A = r.ops.pop()), r.trys.pop();
  9543. continue;
  9544. default:
  9545. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  9546. r = 0;
  9547. continue;
  9548. }
  9549. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  9550. r.label = A[1];
  9551. break;
  9552. }
  9553. if (6 === A[0] && r.label < g[1]) {
  9554. (r.label = g[1]), (g = A);
  9555. break;
  9556. }
  9557. if (g && r.label < g[2]) {
  9558. (r.label = g[2]), r.ops.push(A);
  9559. break;
  9560. }
  9561. g[2] && r.ops.pop(), r.trys.pop();
  9562. continue;
  9563. }
  9564. A = e.call(t, r);
  9565. } catch (t) {
  9566. (A = [6, t]), (n = 0);
  9567. } finally {
  9568. i = g = 0;
  9569. }
  9570. if (5 & A[0]) throw A[1];
  9571. return { value: A[0] ? A[1] : void 0, done: !0 };
  9572. })([A, o]);
  9573. };
  9574. }
  9575. };
  9576. Object.defineProperty(e, "__esModule", { value: !0 });
  9577. var r = i(3);
  9578. e.attachScreenshot = function (t) {
  9579. t.screenshot = function (e) {
  9580. var i = e.width,
  9581. o = void 0 === i ? 2048 : i,
  9582. C = e.height,
  9583. I = void 0 === C ? 2048 : C,
  9584. s = e.bgColor,
  9585. a = void 0 === s ? "rgba(0,0,0,0)" : s,
  9586. l = e.data,
  9587. u = e.spadding,
  9588. c = e.format,
  9589. h = void 0 === c ? "image/png" : c;
  9590. return g(void 0, void 0, void 0, function () {
  9591. var e, i, C, s, c, p, d, f;
  9592. return A(this, function (y) {
  9593. return (
  9594. (e = t.processing.render),
  9595. (i = n({}, e.props)),
  9596. (C = new Image()),
  9597. (s = document.createElement("canvas")),
  9598. (c = s.getContext("2d")),
  9599. (p = t.processing.points.map(function (t) {
  9600. return t.ele.x;
  9601. })),
  9602. (d = t.processing.points.map(function (t) {
  9603. return t.ele.y;
  9604. })),
  9605. (f = t.padding),
  9606. (t.padding = u),
  9607. t.adapt(l, o, I),
  9608. (s.width = o),
  9609. (s.height = I),
  9610. (c.fillStyle = a),
  9611. c.fillRect(0, 0, s.width, s.height),
  9612. [
  9613. 2,
  9614. new Promise(function (n, a) {
  9615. return g(void 0, void 0, void 0, function () {
  9616. return A(this, function (l) {
  9617. return (
  9618. (C.onload = function () {
  9619. return g(void 0, void 0, void 0, function () {
  9620. var g;
  9621. return A(this, function (A) {
  9622. return (
  9623. c.drawImage(C, 0, 0),
  9624. (g = {
  9625. file: r.convertBase64UrlToBlob(s.toDataURL(h)),
  9626. width: o,
  9627. height: I,
  9628. left: t.processing.render.realPointToScreen({ x: Math.min.apply(Math, p), y: 0 }).x,
  9629. top: t.processing.render.realPointToScreen({ x: 0, y: Math.min.apply(Math, d) }).y,
  9630. bottom: I - t.processing.render.realPointToScreen({ x: 0, y: Math.max.apply(Math, d) }).y,
  9631. right: o - t.processing.render.realPointToScreen({ x: Math.max.apply(Math, p), y: 0 }).x,
  9632. bound: {
  9633. left: Math.min.apply(Math, p),
  9634. top: Math.min.apply(Math, d),
  9635. bottom: Math.max.apply(Math, d),
  9636. right: Math.max.apply(Math, p),
  9637. },
  9638. }),
  9639. (e.props = i),
  9640. (t.padding = f),
  9641. e.adaptLayer(),
  9642. n(g),
  9643. [2]
  9644. );
  9645. });
  9646. });
  9647. }),
  9648. (C.onerror = function (n) {
  9649. (e.props = i), (t.padding = f), e.adaptLayer(), a(n);
  9650. }),
  9651. (C.src = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(e.svg.outerHTML)))),
  9652. [2]
  9653. );
  9654. });
  9655. });
  9656. }),
  9657. ]
  9658. );
  9659. });
  9660. });
  9661. };
  9662. };
  9663. },
  9664. function (t, e, i) {
  9665. "use strict";
  9666. Object.defineProperty(e, "__esModule", { value: !0 });
  9667. var n = (function () {
  9668. function t(t) {
  9669. (this.length = t + "__length"), (this.index = t + "__index"), (this.name = t), (this.keys = []), this.init();
  9670. }
  9671. return (
  9672. (t.prototype.init = function () {
  9673. sessionStorage.setItem(this.length, "0");
  9674. }),
  9675. (t.prototype.getKey = function (t) {
  9676. return this.name + "__" + t;
  9677. }),
  9678. (t.prototype.getData = function () {
  9679. return sessionStorage.getItem(this.index);
  9680. }),
  9681. (t.prototype.getLength = function () {
  9682. return Number(sessionStorage.getItem(this.length));
  9683. }),
  9684. (t.prototype.setLength = function (t) {
  9685. sessionStorage.setItem(this.length, t);
  9686. }),
  9687. (t.prototype.push = function (t) {
  9688. var e = this.getLength(),
  9689. i = this.getKey(this.getLength());
  9690. return sessionStorage.setItem(i, JSON.stringify(t)), this.keys.push(i), this.setLength(e + 1), t;
  9691. }),
  9692. (t.prototype.pop = function () {
  9693. var t = this.getLength(),
  9694. e = this.get(t - 1);
  9695. return this.setLength(t - 1), e;
  9696. }),
  9697. (t.prototype.get = function (t) {
  9698. var e = this.getKey(t);
  9699. return JSON.parse(sessionStorage.getItem(e));
  9700. }),
  9701. (t.prototype.clear = function () {
  9702. this.setLength(0),
  9703. this.keys.forEach(function (t) {
  9704. return sessionStorage.removeItem(t);
  9705. }),
  9706. (this.keys = [this.length]);
  9707. }),
  9708. t
  9709. );
  9710. })();
  9711. e.default = n;
  9712. },
  9713. function (t, e, i) {
  9714. "use strict";
  9715. i.r(e),
  9716. i.d(e, "default", function () {
  9717. return r;
  9718. });
  9719. var n = i(6),
  9720. g = i.n(n),
  9721. A = i(0);
  9722. function r(t, e) {
  9723. let i = Date.now(),
  9724. n = [],
  9725. r = [],
  9726. o = [];
  9727. function C(t, e, i, g, A, o, I) {
  9728. for (let s = 0; s < t.length; ++s) {
  9729. if (A.indexOf(s) > -1 || o.indexOf(I) > -1) continue;
  9730. let a = t[s],
  9731. l = a.p1.id,
  9732. u = a.p2.id;
  9733. if (I == l || I == u) {
  9734. let c = JSON.parse(JSON.stringify(i)),
  9735. h = JSON.parse(JSON.stringify(g)),
  9736. p = JSON.parse(JSON.stringify(A)),
  9737. d = JSON.parse(JSON.stringify(o)),
  9738. f = I;
  9739. h.push(a.id), c.push(I), p.push(s), d.push(I), f == l ? (f = u) : f == u && (f = l), e == f ? (r.push(c), n.push(h)) : C(t, e, c, h, p, d, f);
  9740. }
  9741. }
  9742. }
  9743. function I(t, e, i, n) {
  9744. let g = [];
  9745. for (let t = 0; t < n.length; ++t) {
  9746. let e = n[t];
  9747. g.push(e);
  9748. }
  9749. let A = !0;
  9750. for (var r = 0; r < i.length; ++r) {
  9751. if (e.indexOf(t[r]) > -1) {
  9752. A = !1;
  9753. continue;
  9754. }
  9755. let i = t[r];
  9756. var C = i.p1,
  9757. I = i.p2,
  9758. a = { x: (C.x + I.x) / 2, y: (C.y + I.y) / 2 };
  9759. if (!(s(C, g) && s(I, g) && s(a, g))) return !1;
  9760. }
  9761. if (A) {
  9762. let i = [];
  9763. return i.push(e[0]), i.push(e[e.length - 1]), i.push(t[0]), i.push(t[t.length - 1]), o.push(i), !1;
  9764. }
  9765. return !0;
  9766. }
  9767. function s(t, e) {
  9768. for (var i = 0; i < e.length; ++i) {
  9769. if (a(t, e[i])) return !0;
  9770. }
  9771. return !!(function (t, e) {
  9772. for (var i = t.x, n = t.y, g = !1, A = 0, r = e.length - 1; A < e.length; r = A++) {
  9773. var o = e[A],
  9774. C = e[r],
  9775. I = o.x,
  9776. s = o.y,
  9777. a = C.x,
  9778. l = C.y;
  9779. s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g);
  9780. }
  9781. return g;
  9782. })(t, e);
  9783. }
  9784. function a(t, e) {
  9785. return t.x == e.x && t.y == e.y;
  9786. }
  9787. let l = t.wall.map((e) => ({ p1: t.vertex.find(({ id: t }) => e.p1 === t), p2: t.vertex.find(({ id: t }) => e.p2 === t), id: e.id }));
  9788. function u(t, e, i) {
  9789. return (t.x * e.y + e.x * i.y + i.x * t.y - e.x * t.y - i.x * e.y - t.x * i.y) / 2;
  9790. }
  9791. !(function (t) {
  9792. for (let e = 0; e < t.length; ++e) {
  9793. let i = [],
  9794. n = [],
  9795. g = [],
  9796. A = t[e],
  9797. r = A.p1.id,
  9798. o = A.p2.id;
  9799. n.push(o), g.push(A.id);
  9800. let I = null;
  9801. t.splice(e, 1);
  9802. for (let e = 0; e < t.length; ++e) {
  9803. let A = t[e];
  9804. if (r == A.p1.id || r == A.p2.id) {
  9805. let s = JSON.parse(JSON.stringify(n)),
  9806. a = JSON.parse(JSON.stringify(g)),
  9807. l = [],
  9808. u = JSON.parse(JSON.stringify(i)),
  9809. c = r;
  9810. s.push(r), a.push(A.id), l.push(e), (I = c == A.p1.id ? A.p2.id : A.p1.id), u.push(c), C(t, o, s, a, l, u, I);
  9811. }
  9812. }
  9813. }
  9814. })(JSON.parse(JSON.stringify(l))),
  9815. (r = r.map((e) => e.map((e) => t.vertex.find(({ id: t }) => e === t)))),
  9816. (n = n.map((t) => t.map((t) => l.find(({ id: e }) => t === e)))),
  9817. (function () {
  9818. for (var t = 0; t < r.length; ++t)
  9819. for (var e = t + 1; e < r.length; ++e)
  9820. if (I(n[t], n[e], r[t], r[e])) r.splice(e, 1), n.splice(e, 1), --e;
  9821. else if (I(n[e], n[t], r[e], r[t])) {
  9822. r.splice(t, 1), n.splice(t, 1), --t, --e;
  9823. break;
  9824. }
  9825. })(),
  9826. (function () {
  9827. let t = [];
  9828. for (let e = 0; e < o.length; ++e) {
  9829. let i = o[e],
  9830. g = [];
  9831. (g[0] = null), (g[1] = null);
  9832. for (
  9833. let t = 0;
  9834. t < n.length &&
  9835. (i[0] == n[t][0] && i[1] == n[t][n[t].length - 1] ? (g[0] = t) : i[2] == n[t][0] && i[3] == n[t][n[t].length - 1] && (g[1] = t),
  9836. null == g[0] || null == g[1]);
  9837. ++t
  9838. );
  9839. null != g[0] && null != g[1] && t.push(g);
  9840. }
  9841. o = t;
  9842. })(),
  9843. (r = r.sort((t, e) => Number(!Object(A.isFaceContain)(t, e)))),
  9844. (t.room = n.map((t, e) => ({ wall: t.map(({ id: t }) => t), ground: r[e] }))),
  9845. test_debugger &&
  9846. (window.testCenterPoints && e.processing.render.remove(...window.testCenterPoints),
  9847. (window.testCenterPoints = r.map((t) => {
  9848. let i = (function (t) {
  9849. for (var e = 0, i = 0, n = 0, g = t[1], A = 2; A < t.length; A++) {
  9850. var r = t[A],
  9851. o = u(t[0], g, r);
  9852. (n += o), (e += (t[0].x + g.x + r.x) * o), (i += (t[0].y + g.y + r.y) * o), (g = r);
  9853. }
  9854. return { x: e / n / 3, y: i / n / 3 };
  9855. })(t.map((t) => ({ ...t, y: -t.y }))),
  9856. n = "rgba(" + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + ",0.8)",
  9857. A = new g.a({ fillColor: n, storkeColor: n, x: i.x, y: i.y, renderer: e.processing.render });
  9858. return e.processing.render.push(A), A;
  9859. })),
  9860. window.testCenterPoints.forEach((i, g) => {
  9861. let A = {
  9862. pointEles: t.room[g].ground.map((t) => e.processing.points.find(({ id: e }) => e === t.id).ele.real),
  9863. lineEles: n[g].map((t) => e.processing.lines.find(({ id: e }) => e === t.id).ele.real),
  9864. center: i.real,
  9865. pointData: r[g],
  9866. lineData: n[g],
  9867. };
  9868. console.log(A);
  9869. }));
  9870. let c = Date.now();
  9871. return console.warn("计算完毕,耗时" + (c - i)), t;
  9872. }
  9873. },
  9874. function (t, e, i) {
  9875. "use strict";
  9876. Object.defineProperty(e, "__esModule", { value: !0 }),
  9877. (e.attchDOMTranform = function (t) {
  9878. var e = function (e) {
  9879. var i = t.processing.render;
  9880. if (e.target === i.svg) {
  9881. var n = i.props.left,
  9882. g = i.props.top,
  9883. A = function (A) {
  9884. (i.props.left = n - (e.pageX - A.pageX) * i.props.multiple),
  9885. (i.props.top = g - (e.pageY - A.pageY) * i.props.multiple),
  9886. i.adaptLayer(),
  9887. t.propsChange && t.propsChange(),
  9888. A.preventDefault();
  9889. },
  9890. r = function () {
  9891. document.documentElement.removeEventListener("mousemove", A, !1), document.documentElement.removeEventListener("mouseup", r, !1);
  9892. };
  9893. document.documentElement.addEventListener("mousemove", A, !1), document.documentElement.addEventListener("mouseup", r, !1), e.preventDefault();
  9894. }
  9895. },
  9896. i = function (e) {
  9897. var i = t.processing.render,
  9898. n = e.wheelDelta ? (window.opera ? -e.wheelDelta / 120 : e.wheelDelta / 120) : e.detail ? -e.detail / 3 : 0,
  9899. g = i.props.scale + (n > 0 ? 0.08 : -0.08);
  9900. g > 0.1 && ((i.props.scale = g), i.adaptLayer(), t.propsChange && t.propsChange());
  9901. };
  9902. (t.openMouseHandle = function () {
  9903. var n = t.layer;
  9904. n.addEventListener("mousedown", e, !1), n.addEventListener("mousewheel", i, !1);
  9905. }),
  9906. (t.closeMouseHandle = function () {
  9907. var n = t.layer;
  9908. n.removeEventListener("mousedown", e, !1), n.removeEventListener("mousewheel", i, !1);
  9909. });
  9910. var n = t.destroy;
  9911. t.destroy = function () {
  9912. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i];
  9913. t.closeMouseHandle(), n.apply(this, e);
  9914. };
  9915. });
  9916. },
  9917. function (t, e, i) {
  9918. "use strict";
  9919. var n =
  9920. (this && this.__importDefault) ||
  9921. function (t) {
  9922. return t && t.__esModule ? t : { default: t };
  9923. };
  9924. Object.defineProperty(e, "__esModule", { value: !0 });
  9925. var g = i(2),
  9926. A = n(i(4)),
  9927. r = n(i(7));
  9928. e.attachDisabled = function (t) {
  9929. var e = ["increase", "getStackState", "preservation", "previous", "next", "closeMouseHandle", "showGauge", "hideGauge"],
  9930. i = [];
  9931. (t.forbidden = function () {
  9932. i.length !== e.length &&
  9933. (t.hideGauge(),
  9934. t.closeMouseHandle(),
  9935. g.CADElement.examples.get(t.processing.render).forEach(function (t) {
  9936. return t.unEvent();
  9937. }),
  9938. A.default.attaArch.forEach(function (t) {
  9939. t.forEach(function (t) {
  9940. t instanceof r.default && t.delEvent();
  9941. });
  9942. }),
  9943. e.forEach(function (e) {
  9944. i.push(t[e]), delete t[e];
  9945. }));
  9946. }),
  9947. (t.available = function () {
  9948. i.length === e.length &&
  9949. (e.forEach(function (e, n) {
  9950. return (t[e] = i[n]);
  9951. }),
  9952. (i = []),
  9953. g.CADElement.examples.get(t.processing.render).forEach(function (t) {
  9954. return t.listen();
  9955. }),
  9956. A.default.attaArch.forEach(function (t) {
  9957. t.forEach(function (t) {
  9958. return t instanceof r.default && t.addEvent();
  9959. });
  9960. }),
  9961. t.showGauge(),
  9962. t.openMouseHandle());
  9963. });
  9964. };
  9965. },
  9966. function (t, e, i) {
  9967. "use strict";
  9968. var n =
  9969. (this && this.__assign) ||
  9970. function () {
  9971. return (n =
  9972. Object.assign ||
  9973. function (t) {
  9974. for (var e, i = 1, n = arguments.length; i < n; i++)
  9975. for (var g in (e = arguments[i])) Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  9976. return t;
  9977. }).apply(this, arguments);
  9978. },
  9979. g =
  9980. (this && this.__spreadArrays) ||
  9981. function () {
  9982. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  9983. var n = Array(t),
  9984. g = 0;
  9985. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  9986. return n;
  9987. },
  9988. A =
  9989. (this && this.__importDefault) ||
  9990. function (t) {
  9991. return t && t.__esModule ? t : { default: t };
  9992. };
  9993. Object.defineProperty(e, "__esModule", { value: !0 });
  9994. var r = A(i(23));
  9995. e.attachRote = function (t) {
  9996. var e = t.addProcessing;
  9997. (t.addProcessing = function () {
  9998. for (var i = [], n = 0; n < arguments.length; n++) i[n] = arguments[n];
  9999. var A = e.call.apply(e, g([t], i)),
  10000. o = new r.default({ renderer: A.render, local: [] });
  10001. return (
  10002. (o.zIndex = 2),
  10003. A.render.push(o),
  10004. (o.setActive = function (e) {
  10005. t.activeRoute(o.local.indexOf(e));
  10006. }),
  10007. A
  10008. );
  10009. }),
  10010. (t.showRotes = function () {
  10011. var e = t.processing.rote;
  10012. return (
  10013. (e.show = !0),
  10014. new Promise(function (t) {
  10015. return e.nextTick(t);
  10016. })
  10017. );
  10018. }),
  10019. (t.hideRotes = function () {
  10020. var e = t.processing.rote;
  10021. return (
  10022. (e.show = !1),
  10023. new Promise(function (t) {
  10024. return e.nextTick(t);
  10025. })
  10026. );
  10027. }),
  10028. (t.setRoutes = function (e) {
  10029. var i = t.processing.rote;
  10030. (e = e.map(function (t, i) {
  10031. if (t.rangn) {
  10032. var g = (function (t) {
  10033. var i = e
  10034. .slice(0, t)
  10035. .reverse()
  10036. .find(function (t) {
  10037. return !t.rangn;
  10038. });
  10039. return (
  10040. i ||
  10041. e.slice(t).find(function (t) {
  10042. return !t.rangn;
  10043. })
  10044. );
  10045. })(i);
  10046. if (g) return n(n({}, g), { rangn: !0 });
  10047. }
  10048. return n({}, t);
  10049. })),
  10050. t.clearRoutes(function () {
  10051. i.local = g(e);
  10052. });
  10053. }),
  10054. (t.pushRoute = function (e) {
  10055. t.clearRoutes(function () {
  10056. setTimeout(function () {}, 100);
  10057. });
  10058. }),
  10059. (t.activeRoute = function (e) {
  10060. var i = t.processing.rote;
  10061. i.nextTick(function () {
  10062. i.active = i.local[e];
  10063. });
  10064. }),
  10065. (t.popRoute = function (e) {
  10066. var i = t.processing.rote;
  10067. i.local.splice(e, 1),
  10068. i.nextTick(function () {
  10069. return (i.local = g(i.local));
  10070. });
  10071. }),
  10072. (t.clearRoutes = function (e) {
  10073. var i = t.processing.rote;
  10074. (i.local = []),
  10075. (i.dialog = 0),
  10076. i.nextTick(function () {
  10077. return e && e();
  10078. });
  10079. });
  10080. };
  10081. },
  10082. function (t, e) {
  10083. t.exports =
  10084. "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAt1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+6urrFxcXR0dHY2NjX19fDw8P////Hx8fg4ODj4+PQ0NDCwsLGxsb///////////////+Zk85TAAAAPHRSTlMAAgQiHSZ5yO+B2fPfw70siHVCZ337ODSO0YM7rJLjzVINSDDpcBkUXfljCAQ4lcV6BgpEkKlgQ0CZ3FCcXUtcAAAAAWJLR0QB/wIt3gAAAAd0SU1FB+MFHgsMLLYaoF4AAADtSURBVBjTbVCJcoIwFNxQuSIWEYMoUOSQo/S0p+37/+9qIraNnb7JZDK7m012gfNhBvsXuZjoiNpNyyZHR5jp8qk3m17+avw5Jx4swqWITsgq9sR6aWKySVL7eDfKrkQeKPtt7BdUAlVcC3vXKLLdWQ0yT55IdO3oa246hqK/hoGwd4GB3dze3T88MgTjfyKR74Gn55fXt3fAsaRQrn0uqsINB2XR9cVRKYkDpQmDiviRwRjTAJwOkmUoqcF3IcyL13mLAXZ6Eqqpy4CcBVbk/wjBeC0il7p0Bq1NmyqZkSjRwaaFISN9/i0d2hNf1CoSHV2Lm8sAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDUtMzBUMTE6MTI6NDQrMDg6MDCJUf45AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA1LTMwVDExOjEyOjQ0KzA4OjAw+AxGhQAAAABJRU5ErkJggg==";
  10085. },
  10086. function (t, e, i) {
  10087. "use strict";
  10088. var n =
  10089. (this && this.__spreadArrays) ||
  10090. function () {
  10091. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  10092. var n = Array(t),
  10093. g = 0;
  10094. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  10095. return n;
  10096. },
  10097. g =
  10098. (this && this.__importDefault) ||
  10099. function (t) {
  10100. return t && t.__esModule ? t : { default: t };
  10101. };
  10102. Object.defineProperty(e, "__esModule", { value: !0 });
  10103. var A = g(i(5)),
  10104. r = g(i(6)),
  10105. o = g(i(10));
  10106. e.attachStyle = function (t) {
  10107. var e = { fillColor: "rgb(0, 200, 175)", storkeColor: "green" },
  10108. i = { fillColor: "rgba(245, 255, 0, 0.7)", storkeColor: "rgba(245, 255, 255, 0.3)" };
  10109. t.setDefaultPointStyle = function (n) {
  10110. n.storkeColor && (e.storkeColor = n.storkeColor),
  10111. n.fillColor && (e.fillColor = n.fillColor),
  10112. n.hoverStorkeColor && (i.storkeColor = n.hoverStorkeColor),
  10113. n.hoverFillColor && (i.fillColor = n.hoverFillColor),
  10114. setTimeout(function () {
  10115. t.loadData(t.getData());
  10116. }, 100);
  10117. };
  10118. var g = { width: 3, color: "rgb(255,255,255)" },
  10119. C = t.addProcessing;
  10120. (t.addProcessing = function () {
  10121. for (var I = [], s = 0; s < arguments.length; s++) I[s] = arguments[s];
  10122. var a = C.call.apply(C, n([t], I));
  10123. return r.default.Setting.set(a.render, e), A.default.Setting.set(a.render, i), o.default.Setting.set(a.render, g), a;
  10124. }),
  10125. (t.setDefaultLineStyle = function (e) {
  10126. e.width && (g.width = e.width),
  10127. e.color && (g.color = e.color),
  10128. setTimeout(function () {
  10129. t.loadData(t.getData());
  10130. }, 100);
  10131. });
  10132. };
  10133. },
  10134. function (t, e, i) {
  10135. "use strict";
  10136. Object.defineProperty(e, "__esModule", { value: !0 }),
  10137. (e.attchCustom = function (t) {
  10138. t.edits = [];
  10139. });
  10140. },
  10141. function (t, e, i) {
  10142. "use strict";
  10143. var n =
  10144. (this && this.__spreadArrays) ||
  10145. function () {
  10146. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  10147. var n = Array(t),
  10148. g = 0;
  10149. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  10150. return n;
  10151. };
  10152. Object.defineProperty(e, "__esModule", { value: !0 });
  10153. var g = i(0);
  10154. function A(t, e) {
  10155. var i = e.addCase,
  10156. A = e.addDoor,
  10157. r = e.addColumn,
  10158. o = e.addLine,
  10159. C = e.addSlideDoor,
  10160. I = e.addBayCase,
  10161. s = e.addGroundCase,
  10162. a = e.addFurnColumn,
  10163. l = e.addFurnFlue,
  10164. u = e.adddDoubleDoor,
  10165. c = function (t) {
  10166. Object.defineProperties(t, {
  10167. ewidth: {
  10168. get: function () {
  10169. return Number(g.lineDis({ points: t.linePoints }).toFixed(2));
  10170. },
  10171. set: function (e) {
  10172. if (!(e <= 0 || e === t.ewidth)) {
  10173. var i = g.lineCenter({ points: t.linePoints }),
  10174. n = g.getDisPointLinePoints(t.attachment, i, e / 2),
  10175. A = n[0],
  10176. r = n[1];
  10177. g.lineDis({ points: [t.linePoints[0], A] }) > g.lineDis({ points: [t.linePoints[0], r] })
  10178. ? ((t.linePoints[0].x = r.x), (t.linePoints[0].y = r.y), (t.linePoints[1].x = A.x), (t.linePoints[1].y = A.y))
  10179. : ((t.linePoints[0].x = A.x), (t.linePoints[0].y = A.y), (t.linePoints[1].x = r.x), (t.linePoints[1].y = r.y));
  10180. }
  10181. },
  10182. },
  10183. maxWidth: {
  10184. get: function () {
  10185. var e = [t.attachment],
  10186. i = [],
  10187. n = [],
  10188. A = function (e, i, n) {
  10189. var A = e.linePoints || e.points;
  10190. return { dis: g.lineDis({ points: [t.linePoints[i], A[n]] }), point: A[n] };
  10191. };
  10192. e.forEach(function (e) {
  10193. e !== t && (i.push(A(e, 0, 0)), i.push(A(e, 0, 1)), n.push(A(e, 1, 0)), n.push(A(e, 1, 1)));
  10194. }),
  10195. i.sort(function (t, e) {
  10196. return t.dis - e.dis;
  10197. }),
  10198. n.sort(function (t, e) {
  10199. return t.dis - e.dis;
  10200. });
  10201. var r = i[0].dis > n[0].dis ? [t.linePoints[1], n[0].point] : [t.linePoints[0], i[0].point];
  10202. return Number((2 * g.lineDis({ points: r }) + g.lineDis({ points: t.linePoints })).toFixed(2));
  10203. },
  10204. },
  10205. minWidth: {
  10206. get: function () {
  10207. return 0;
  10208. },
  10209. },
  10210. });
  10211. },
  10212. h = function (e) {
  10213. Object.defineProperties(e, {
  10214. estart: {
  10215. get: function () {
  10216. return e.start;
  10217. },
  10218. set: function (i) {
  10219. i &&
  10220. t.processing.doors.forEach(function (t) {
  10221. t.ele.start = !1;
  10222. }),
  10223. (e.start = i),
  10224. t.preservation();
  10225. },
  10226. },
  10227. });
  10228. },
  10229. p = function (t) {
  10230. Object.defineProperties(t, {
  10231. tick: {
  10232. get: function () {
  10233. return Math.max(
  10234. Number(g.lineDis({ points: [t.points[0], t.points[3]] }).toFixed(2)),
  10235. Number(g.lineDis({ points: [t.points[1], t.points[2]] }).toFixed(2))
  10236. );
  10237. },
  10238. set: function (e) {
  10239. e <= 0 || e === t.oldVal || ((t.oldVal = e), (t.thickness = e), t.updatePeripheral());
  10240. },
  10241. },
  10242. maxTick: {
  10243. get: function () {
  10244. return 10;
  10245. },
  10246. },
  10247. minTick: {
  10248. get: function () {
  10249. return 0;
  10250. },
  10251. },
  10252. });
  10253. };
  10254. (e.addCase = function () {
  10255. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10256. var g = i.call.apply(i, n([this], t));
  10257. return c(g.ele), g;
  10258. }),
  10259. (e.addBayCase = function () {
  10260. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10261. var i = I.call.apply(I, n([this], t));
  10262. return c(i.ele), i;
  10263. }),
  10264. (e.addGroundCase = function () {
  10265. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10266. var i = s.call.apply(s, n([this], t));
  10267. return c(i.ele), i;
  10268. }),
  10269. (e.addDoor = function () {
  10270. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10271. var i = A.call.apply(A, n([this], t));
  10272. return c(i.ele), h(i.ele), i;
  10273. }),
  10274. (e.addSlideDoor = function () {
  10275. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10276. var i = C.call.apply(C, n([this], t));
  10277. return c(i.ele), i;
  10278. }),
  10279. (e.adddDoubleDoor = function () {
  10280. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10281. var i = u.call.apply(u, n([this], t));
  10282. return c(i.ele), i;
  10283. }),
  10284. (e.addColumn = function () {
  10285. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10286. var i = r.call.apply(r, n([this], t));
  10287. return c(i.ele), p(i.ele), i;
  10288. }),
  10289. (e.addLine = function () {
  10290. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10291. var i = o.call.apply(o, n([this], t));
  10292. return i;
  10293. });
  10294. var d = function (t) {
  10295. Object.defineProperties(t, {
  10296. ewidth: {
  10297. get: function () {
  10298. return Number(g.lineDis({ points: [t.points[0], t.points[1]] }).toFixed(2));
  10299. },
  10300. set: function (e) {
  10301. if (!(e <= 0 || e === t.ewidth)) {
  10302. var i = g.lineStretch({ points: [t.points[0], t.points[1]] }, e),
  10303. n = g.lineStretch({ points: [t.points[2], t.points[3]] }, e),
  10304. A = i.points.concat(n.points);
  10305. t.check(A) && t.directUpdate(A);
  10306. }
  10307. },
  10308. },
  10309. maxWidth: {
  10310. get: function () {
  10311. return 10;
  10312. },
  10313. },
  10314. minWidth: {
  10315. get: function () {
  10316. return 0;
  10317. },
  10318. },
  10319. });
  10320. },
  10321. f = function (t) {
  10322. Object.defineProperties(t, {
  10323. tick: {
  10324. get: function () {
  10325. return Number(g.lineDis({ points: [t.points[1], t.points[2]] }).toFixed(2));
  10326. },
  10327. set: function (e) {
  10328. if (!(e <= 0 || e === t.tick)) {
  10329. var i = g.lineStretch({ points: [t.points[0], t.points[3]] }, e),
  10330. n = g.lineStretch({ points: [t.points[1], t.points[2]] }, e),
  10331. A = [i.points[0], n.points[0], n.points[1], i.points[1]];
  10332. t.check(A) && t.directUpdate(A);
  10333. }
  10334. },
  10335. },
  10336. maxTick: {
  10337. get: function () {
  10338. return 10;
  10339. },
  10340. },
  10341. minTick: {
  10342. get: function () {
  10343. return 0;
  10344. },
  10345. },
  10346. });
  10347. },
  10348. y = function (t) {
  10349. Object.defineProperties(t, {
  10350. maxAngle: {
  10351. get: function () {
  10352. return 360;
  10353. },
  10354. },
  10355. minAngle: {
  10356. get: function () {
  10357. return 0;
  10358. },
  10359. },
  10360. });
  10361. };
  10362. (e.addFurnColumn = function () {
  10363. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10364. var i = a.call.apply(a, n([this], t));
  10365. return d(i.ele), f(i.ele), y(i.ele), i;
  10366. }),
  10367. (e.addFurnFlue = function () {
  10368. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
  10369. var i = l.call.apply(l, n([this], t));
  10370. return d(i.ele), f(i.ele), y(i.ele), i;
  10371. });
  10372. }
  10373. e.default = function (t) {
  10374. var e = t.addProcessing;
  10375. t.addProcessing = function () {
  10376. for (var i = [], g = 0; g < arguments.length; g++) i[g] = arguments[g];
  10377. var r = e.call.apply(e, n([t], i));
  10378. return A(t, r), r;
  10379. };
  10380. };
  10381. },
  10382. function (t, e, i) {
  10383. "use strict";
  10384. var n =
  10385. (this && this.__spreadArrays) ||
  10386. function () {
  10387. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  10388. var n = Array(t),
  10389. g = 0;
  10390. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  10391. return n;
  10392. };
  10393. Object.defineProperty(e, "__esModule", { value: !0 }),
  10394. (e.other = function (t) {
  10395. var e = !1,
  10396. i = t.addProcessing;
  10397. (t.addProcessing = function () {
  10398. for (var g = [], A = 0; A < arguments.length; A++) g[A] = arguments[A];
  10399. var r = i.call.apply(i, n([t], g)),
  10400. o = r.addTagging;
  10401. return (
  10402. (r.addTagging = function (t) {
  10403. return (t.show = e), o.call(r, t);
  10404. }),
  10405. r
  10406. );
  10407. }),
  10408. (t.hideLabel = function () {
  10409. (e = !1),
  10410. t.processings.forEach(function (t) {
  10411. t.taggings.forEach(function (t) {
  10412. return (t.ele.show = e);
  10413. });
  10414. });
  10415. }),
  10416. (t.showLabel = function () {
  10417. (e = !0),
  10418. t.processings.forEach(function (t) {
  10419. t.taggings.forEach(function (t) {
  10420. return (t.ele.show = e);
  10421. });
  10422. });
  10423. });
  10424. });
  10425. },
  10426. function (t, e, i) {
  10427. "use strict";
  10428. var n =
  10429. (this && this.__awaiter) ||
  10430. function (t, e, i, n) {
  10431. return new (i || (i = Promise))(function (g, A) {
  10432. function r(t) {
  10433. try {
  10434. C(n.next(t));
  10435. } catch (t) {
  10436. A(t);
  10437. }
  10438. }
  10439. function o(t) {
  10440. try {
  10441. C(n.throw(t));
  10442. } catch (t) {
  10443. A(t);
  10444. }
  10445. }
  10446. function C(t) {
  10447. var e;
  10448. t.done
  10449. ? g(t.value)
  10450. : ((e = t.value),
  10451. e instanceof i
  10452. ? e
  10453. : new i(function (t) {
  10454. t(e);
  10455. })).then(r, o);
  10456. }
  10457. C((n = n.apply(t, e || [])).next());
  10458. });
  10459. },
  10460. g =
  10461. (this && this.__generator) ||
  10462. function (t, e) {
  10463. var i,
  10464. n,
  10465. g,
  10466. A,
  10467. r = {
  10468. label: 0,
  10469. sent: function () {
  10470. if (1 & g[0]) throw g[1];
  10471. return g[1];
  10472. },
  10473. trys: [],
  10474. ops: [],
  10475. };
  10476. return (
  10477. (A = { next: o(0), throw: o(1), return: o(2) }),
  10478. "function" == typeof Symbol &&
  10479. (A[Symbol.iterator] = function () {
  10480. return this;
  10481. }),
  10482. A
  10483. );
  10484. function o(A) {
  10485. return function (o) {
  10486. return (function (A) {
  10487. if (i) throw new TypeError("Generator is already executing.");
  10488. for (; r; )
  10489. try {
  10490. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  10491. return g;
  10492. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  10493. case 0:
  10494. case 1:
  10495. g = A;
  10496. break;
  10497. case 4:
  10498. return r.label++, { value: A[1], done: !1 };
  10499. case 5:
  10500. r.label++, (n = A[1]), (A = [0]);
  10501. continue;
  10502. case 7:
  10503. (A = r.ops.pop()), r.trys.pop();
  10504. continue;
  10505. default:
  10506. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  10507. r = 0;
  10508. continue;
  10509. }
  10510. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  10511. r.label = A[1];
  10512. break;
  10513. }
  10514. if (6 === A[0] && r.label < g[1]) {
  10515. (r.label = g[1]), (g = A);
  10516. break;
  10517. }
  10518. if (g && r.label < g[2]) {
  10519. (r.label = g[2]), r.ops.push(A);
  10520. break;
  10521. }
  10522. g[2] && r.ops.pop(), r.trys.pop();
  10523. continue;
  10524. }
  10525. A = e.call(t, r);
  10526. } catch (t) {
  10527. (A = [6, t]), (n = 0);
  10528. } finally {
  10529. i = g = 0;
  10530. }
  10531. if (5 & A[0]) throw A[1];
  10532. return { value: A[0] ? A[1] : void 0, done: !0 };
  10533. })([A, o]);
  10534. };
  10535. }
  10536. },
  10537. A =
  10538. (this && this.__spreadArrays) ||
  10539. function () {
  10540. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  10541. var n = Array(t),
  10542. g = 0;
  10543. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  10544. return n;
  10545. },
  10546. r =
  10547. (this && this.__importDefault) ||
  10548. function (t) {
  10549. return t && t.__esModule ? t : { default: t };
  10550. };
  10551. Object.defineProperty(e, "__esModule", { value: !0 });
  10552. var o = i(22),
  10553. C = i(2),
  10554. I = r(i(60)),
  10555. s = r(i(62)),
  10556. a = i(0),
  10557. l = function (t, e) {
  10558. var i = t.processing,
  10559. n = i.doors,
  10560. g = i.slideDoors,
  10561. r = i.groundCases,
  10562. o = i.cases,
  10563. C = i.points,
  10564. I = i.taggings,
  10565. s = i.bayCases,
  10566. a = A(i.furnFlues, i.furnColumns, i.columns),
  10567. l = A(i.lines),
  10568. u = A(o, n);
  10569. I.forEach(function (t) {
  10570. var i = 3 * e;
  10571. t.ele.fontSize = i < 12 ? 12 : i;
  10572. }),
  10573. a.forEach(function (t) {
  10574. t.ele.width = 0.33 * e;
  10575. }),
  10576. g.forEach(function (t) {
  10577. (t.ele.foorWidth = (2 * e) / (t.ele.attachment.border ? 1 : 2)), (t.ele.bwithin = e / 2 / (t.ele.attachment.border ? 1 : 2));
  10578. }),
  10579. o.forEach(function (t) {
  10580. (t.ele.width = (4 * e) / 2 / (t.ele.attachment.border ? 1 : 1.5)),
  10581. (t.ele.stamWidth = (0.1 * e) / (t.ele.attachment.border ? 1 : 2)),
  10582. (t.ele.outLine.width = t.ele.width),
  10583. (t.ele.outLine.color = t.ele.fill),
  10584. (t.ele.innerline.width = t.ele.stamWidth),
  10585. (t.ele.innerline.color = t.ele.seam),
  10586. t.ele.innerline.update();
  10587. }),
  10588. l.forEach(function (t) {
  10589. t.ele.width = e;
  10590. }),
  10591. s.forEach(function (t) {
  10592. t.ele.width = (0.33 * e) / (t.ele.attachment.border ? 1 : 2);
  10593. }),
  10594. r.forEach(function (t) {
  10595. t.ele.width = (e / 2) * (t.ele.attachment.border ? 1 : 2);
  10596. }),
  10597. n.forEach(function (t) {
  10598. (t.ele.foorWidth = (2 * e) / (t.ele.attachment.border ? 1 : 2)), (t.ele.outWidth = (0.33 * e) / (t.ele.attachment.border ? 1 : 2));
  10599. }),
  10600. C.forEach(function (t) {
  10601. (t.ele.r1 = e + 1), (t.ele.r = e + 1);
  10602. }),
  10603. u.forEach(function (t) {
  10604. (t.ele.linePoints[0].r1 = e + 1), (t.ele.linePoints[0].r = e + 1), (t.ele.linePoints[1].r1 = e + 1), (t.ele.linePoints[1].r = e + 1);
  10605. }),
  10606. t.setDireAttrs({ fontSize: 2.6 * e, r: 16.6 * e, border: e, right: 6.3 * e, top: 6.3 * e, ArgDire: 5 * e });
  10607. };
  10608. e.default = function (t) {
  10609. var e = t.screenshot;
  10610. t.screenshot = function (i) {
  10611. var A = void 0 === i ? {} : i,
  10612. r = A.width,
  10613. u = void 0 === r ? 2880 : r,
  10614. c = A.height,
  10615. h = void 0 === c ? 1620 : c,
  10616. p = A.primaryColor,
  10617. d = void 0 === p ? "#fff" : p,
  10618. f = A.archColor,
  10619. y = void 0 === f ? "rgba(0,0,0,0)" : f,
  10620. v = A.bgColor,
  10621. m = void 0 === v ? "rgba(0,0,0,0)" : v,
  10622. b = A.textColor,
  10623. x = void 0 === b ? "#fff" : b,
  10624. _ = A.archBorder,
  10625. w = void 0 === _ ? d : _,
  10626. P = A.data,
  10627. O = void 0 === P ? t.getData(!0, !0) : P,
  10628. S = A.padding,
  10629. E = void 0 === S ? 450 : S,
  10630. D = A.showGauge,
  10631. k = void 0 === D || D,
  10632. M = A.lineWidth,
  10633. L = void 0 === M ? 10 : M,
  10634. N = A.spliceGauge,
  10635. j = void 0 !== N && N,
  10636. R = A.showDire,
  10637. G = void 0 !== R && R,
  10638. T = A.showTags,
  10639. V = void 0 === T || T,
  10640. U = A.showDoorStart,
  10641. W = void 0 === U || U,
  10642. Z = A.showMapping,
  10643. B = void 0 !== Z && Z,
  10644. Q = A.format,
  10645. F = void 0 === Q ? "image/png" : Q,
  10646. H = A.errreturn,
  10647. J = void 0 !== H && H;
  10648. return n(void 0, void 0, void 0, function () {
  10649. var i, n, A, r, c, p, f, v, b, _, P, S, D, M, N, R, T, U, Z, Q, H;
  10650. return g(this, function (g) {
  10651. switch (g.label) {
  10652. case 0:
  10653. return (
  10654. (O = o.roateDataY(
  10655. O.floors.find(function (t) {
  10656. return t.show;
  10657. })
  10658. )),
  10659. (i = t.processing.lines[0] ? t.processing.lines[0].ele.width : 3),
  10660. (t.processing.render.layer.style.opacity = "0"),
  10661. (n = []),
  10662. (A = []),
  10663. C.CADElement.examples.get(t.processing.render).forEach(function (t) {
  10664. A.push(
  10665. new Promise(function (e) {
  10666. return t.nextTick(e);
  10667. })
  10668. );
  10669. }),
  10670. [4, Promise.all(A)]
  10671. );
  10672. case 1:
  10673. for (
  10674. g.sent(),
  10675. C.CADElement.examples.get(t.processing.render).forEach(function (t) {
  10676. (t.__state.direct = !0), t.changeSelect(!1);
  10677. }),
  10678. B &&
  10679. ((r = []),
  10680. s
  10681. .default(O)
  10682. .map(function (t) {
  10683. return t;
  10684. })
  10685. .sort(function (t, e) {
  10686. return a.isFaceContain(t, e) ? 1 : -1;
  10687. })
  10688. .forEach(function (e, i) {
  10689. var g = t.processing.taggings.find(function (t) {
  10690. return a.pointInside(e, t.ele) && !~r.indexOf(t);
  10691. }),
  10692. A = new I.default({ points: e, label: g ? g.ele.title : "", show: !0, renderer: t.processing.render });
  10693. (A.zIndex = -i - 3), A.update(), t.processing.render.push(A), n.push(A), r.push(g);
  10694. })),
  10695. (c = [
  10696. { key: "stroke", attr: ["doors", "columns", "bayCases", "furnColumns", "furnFlues", "doubleDoors"], oldVals: [], newColor: w },
  10697. { key: "fill", attr: ["groundCases"], oldVals: [], newColor: w },
  10698. { key: "seam", attr: ["cases"], oldVals: [], newColor: d },
  10699. { key: "bgColor", attr: ["cases"], oldVals: [], newColor: d },
  10700. { key: "color", attr: ["lines"], oldVals: [], newColor: d },
  10701. { key: "icon", attr: ["doors"], oldVals: [], newColor: d },
  10702. {
  10703. key: "fill",
  10704. attr: ["cases", "doors", "columns", "bayCases", "furnColumns", "furnFlues", "slideDoors", "doubleDoors"],
  10705. oldVals: [],
  10706. newColor: y,
  10707. },
  10708. { key: "foorColor", attr: ["slideDoors"], oldVals: [], newColor: w },
  10709. { key: "clipColor", attr: ["slideDoors"], oldVals: [], newColor: y },
  10710. { key: "color", attr: ["taggings"], oldVals: [], newColor: x },
  10711. ]).forEach(function (e) {
  10712. var i = e.key,
  10713. n = e.attr,
  10714. g = e.oldVals,
  10715. A = e.newColor;
  10716. n.forEach(function (e) {
  10717. g.push(
  10718. t.processing[e].map(function (t) {
  10719. return t.ele[i];
  10720. })
  10721. ),
  10722. t.processing[e].forEach(function (t) {
  10723. var e = t.ele;
  10724. e[i] = "icon" === i ? ("#fff" !== A ? "darkIcon" : "defaultIcon") : A;
  10725. });
  10726. });
  10727. }),
  10728. p = t.processing.direction,
  10729. f = p.show,
  10730. !p.show && G ? t.showDire() : G || t.hideDire(),
  10731. v = t.processing.taggings[0] && t.processing.taggings[0].ele.show,
  10732. t.processing.taggings.forEach(function (t) {
  10733. return (t.ele.show = V);
  10734. }),
  10735. b = t.processing.points[0].ele.fillColor,
  10736. _ = t.processing.lines[0].ele.init.color,
  10737. t.processing.points.forEach(function (t) {
  10738. t.ele.fillColor = "rgba(0,0,0,0)";
  10739. }),
  10740. P = [].concat(t.processing.doors).concat(t.processing.groundCases).concat(t.processing.cases).concat(t.processing.doubleDoors),
  10741. Z = 0;
  10742. Z < P.length;
  10743. Z++
  10744. )
  10745. (Q = P[Z].ele.points || P[Z].ele.linePoints) &&
  10746. Q.forEach(function (t) {
  10747. return (t.fillColor = "rgba(0,0,0,0)");
  10748. });
  10749. t.setGaugeModel(1),
  10750. (S = p.icon),
  10751. t.setDireAttrs({ simple: !0, icon: "#fff" !== d ? "darkIcon" : "defaultIcon" }),
  10752. (D = t.processing.doors.map(function (t) {
  10753. return t.ele.showStart;
  10754. })),
  10755. t.processing.doors.forEach(function (t) {
  10756. return (t.ele.showStart = W);
  10757. }),
  10758. (M = t.gauge && t.gauge.stroke),
  10759. t.gauge && t.gauge.minPX,
  10760. k &&
  10761. ((N = { width: L / 2, showTop: !1, showRight: !1, padding: 3.3 * L, stroke: d }),
  10762. j ? ((N.minPX = 12 * L), console.log("---", N.minPX)) : (N.minPX = Math.max(u, h)),
  10763. t.setGaugeAttrs(N)),
  10764. l(t, L),
  10765. C.CADElement.examples.get(t.processing.render).forEach(function (t) {
  10766. return t.update();
  10767. }),
  10768. (g.label = 2);
  10769. case 2:
  10770. return (
  10771. g.trys.push([2, 4, , 5]), [4, e.call(this, { width: u, height: h, bgColor: m, data: O, spadding: E, showGauge: k, lineWidth: L, format: F })]
  10772. );
  10773. case 3:
  10774. return (R = g.sent()), [3, 5];
  10775. case 4:
  10776. return (U = g.sent()), J ? [2, U] : ((T = U), [3, 5]);
  10777. case 5:
  10778. for (
  10779. k && t.setGaugeAttrs({ minPX: 50, width: 1, showTop: !0, showRight: !0, padding: 10, stroke: M }),
  10780. t.setDireAttrs({ simple: !1, icon: S }),
  10781. Z = 0;
  10782. Z < P.length;
  10783. Z++
  10784. )
  10785. (Q = P[Z].ele.points || P[Z].ele.linePoints) &&
  10786. Q.map(function (t) {
  10787. return (t.fillColor = b);
  10788. });
  10789. if (
  10790. (l(t, i),
  10791. t.setGaugeModel(0),
  10792. t.processing.points.forEach(function (t) {
  10793. return (t.ele.fillColor = b);
  10794. }),
  10795. t.processing.lines.forEach(function (t) {
  10796. return (t.ele.color = _);
  10797. }),
  10798. (H = t.processing.render).remove.apply(H, n),
  10799. f ? t.showDire() : t.hideDire(),
  10800. v
  10801. ? t.processing.taggings.forEach(function (t) {
  10802. return (t.ele.show = !0);
  10803. })
  10804. : t.processing.taggings.forEach(function (t) {
  10805. return (t.ele.show = !1);
  10806. }),
  10807. t.processing.doors.forEach(function (t, e) {
  10808. t.ele.showStart = D[e];
  10809. }),
  10810. (t.processing.render.layer.style.opacity = "1"),
  10811. c.forEach(function (e) {
  10812. var i = e.key,
  10813. n = e.attr,
  10814. g = e.oldVals;
  10815. n.forEach(function (e, n) {
  10816. t.processing[e].forEach(function (t, e) {
  10817. t.ele[i] = g[n][e];
  10818. });
  10819. });
  10820. }),
  10821. C.CADElement.examples.get(t.processing.render).forEach(function (t) {
  10822. (t.__state.direct = !1), t.update();
  10823. }),
  10824. T)
  10825. )
  10826. throw T;
  10827. return [2, R];
  10828. }
  10829. });
  10830. });
  10831. };
  10832. };
  10833. },
  10834. function (t, e, i) {
  10835. "use strict";
  10836. var n,
  10837. g =
  10838. (this && this.__extends) ||
  10839. ((n = function (t, e) {
  10840. return (n =
  10841. Object.setPrototypeOf ||
  10842. ({ __proto__: [] } instanceof Array &&
  10843. function (t, e) {
  10844. t.__proto__ = e;
  10845. }) ||
  10846. function (t, e) {
  10847. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
  10848. })(t, e);
  10849. }),
  10850. function (t, e) {
  10851. function i() {
  10852. this.constructor = t;
  10853. }
  10854. n(t, e), (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()));
  10855. });
  10856. Object.defineProperty(e, "__esModule", { value: !0 });
  10857. var A = i(2),
  10858. r = i(1),
  10859. o = i(61),
  10860. C = 0,
  10861. I = (function (t) {
  10862. function e(e) {
  10863. return t.call(this, e) || this;
  10864. }
  10865. return (
  10866. g(e, t),
  10867. (e.prototype.grentNode = function () {
  10868. var t = "pattern-" + ++C,
  10869. e = document.createElementNS(r.SVGURI, "g");
  10870. return (
  10871. (this.path = document.createElementNS(r.SVGURI, "path")),
  10872. (this.pattern = document.createElementNS(r.SVGURI, "pattern")),
  10873. (this.maping = document.createElementNS(r.SVGURI, "image")),
  10874. this.pattern.append(this.maping),
  10875. this.pattern.setAttribute("id", t),
  10876. this.pattern.setAttribute("patternUnits", "userSpaceOnUse"),
  10877. this.path.setAttribute("fill", "url(#" + t + ")"),
  10878. e.appendChild(this.path),
  10879. e.appendChild(this.pattern),
  10880. e
  10881. );
  10882. }),
  10883. (e.prototype.update = function () {
  10884. var t =
  10885. "M" +
  10886. this.points
  10887. .map(function (t) {
  10888. return " " + t.x + " " + t.y + " ";
  10889. })
  10890. .join("L") +
  10891. "z",
  10892. e = this.renderer.screenToRealPoint({ x: 30, y: 30 }),
  10893. i = this.renderer.screenToRealPoint({ x: 0, y: 0 }),
  10894. n = Math.abs(e.x - i.x),
  10895. g = Math.abs(e.y - i.y);
  10896. (this.icon && this.icon === this.firstIcon) ||
  10897. ((this.icon = o.getMaping(this.label)), (this.maping.href.baseVal = this.icon), (this.firstIcon = this.icon)),
  10898. this.maping.setAttribute("width", n.toString()),
  10899. this.maping.setAttribute("height", g.toString()),
  10900. this.pattern.setAttribute("width", n.toString()),
  10901. this.pattern.setAttribute("height", g.toString()),
  10902. this.path.setAttribute("d", t);
  10903. }),
  10904. e
  10905. );
  10906. })(A.CADElement);
  10907. e.default = I;
  10908. },
  10909. function (t, e, i) {
  10910. "use strict";
  10911. Object.defineProperty(e, "__esModule", { value: !0 });
  10912. var n = i(9),
  10913. g = [
  10914. {
  10915. name: "hall",
  10916. img: "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAWQABAQEBAAAAAAAAAAAAAAAAAgADCAEBAQEBAAAAAAAAAAAAAAAAAAECAxABAAICAgMAAAAAAAAAAAAAAQACESExQVFxAxEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A6L+ihirm3U4tsrci68+4VV5U349wNfmqYs4t3CDfSwBZFDMoqoKZgOm0kFfawBYBHEoqgq4gOmkkC+gpmpi3UDK3IO/PuFVeUNePcDX5iGbGbdwj/9k=",
  10917. },
  10918. {
  10919. name: "room",
  10920. img: "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAXAABAQEAAAAAAAAAAAAAAAAAAgAGAQEBAQAAAAAAAAAAAAAAAAAAAQYQAQABBAEEAwAAAAAAAAAAAAECABEhEgNRYYGRwSIUEQEBAAAAAAAAAAAAAAAAAAAAEf/aAAwDAQACEQMRAD8A1rHnJu3Lsq/UnIfRWTrTlyfo1vBx1ZL8VKRcf6NbzcdSSfFKQSPOzNeXVE+rOS+mrRTVZusnLbJbwXqBCamU72b1FSmrle9m9AYKMHWRkvkt5L1UUxGZtIy2wW8NqBAamF7Xb1FSGrhO129AYCsDaTkvgt5bVUTLnZu3Fqi/YhJfZVgXJ+jW0DHRinzUhVx/o1tMx0Ir80hRJc5M14tlT7MJD7asH//Z",
  10921. },
  10922. {
  10923. name: "other",
  10924. img: "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAUwABAQEAAAAAAAAAAAAAAAAAAQAHAQEBAAAAAAAAAAAAAAAAAAAAAxAAAwADAQAAAAAAAAAAAAAAAAERIUGBIhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A31P00yAK6BV0Bb9JICxamAbl4Bbl4A4tbAsWJAG7OgW7OgOLGgJL02wCOgUdAWvSaA//2Q==",
  10925. },
  10926. ],
  10927. A = [
  10928. { texts: n.i18n.t("modules.cad.hall_tests").split(","), mapping: "hall" },
  10929. { texts: n.i18n.t("modules.cad.room_tests").split(","), mapping: "room" },
  10930. { texts: n.i18n.t("modules.cad.other_tests").split(","), mapping: "other" },
  10931. ];
  10932. (e.labelTexts = A.reduce(function (t, e) {
  10933. return t.concat(e.texts);
  10934. }, [])),
  10935. (e.getMaping = function (t) {
  10936. var e = A.find(function (e) {
  10937. return ~e.texts.indexOf(t);
  10938. });
  10939. return g.find(function (t) {
  10940. return t.name === (e ? e.mapping : "other");
  10941. }).img;
  10942. });
  10943. },
  10944. function (t, e, i) {
  10945. "use strict";
  10946. i.r(e),
  10947. i.d(e, "default", function () {
  10948. return r;
  10949. });
  10950. var n = i(6),
  10951. g = i.n(n),
  10952. A = i(0);
  10953. function r(t, e) {
  10954. t = (function (t, e) {
  10955. let i = t.wall,
  10956. n = t.vertex;
  10957. for (let t = 0; t < n.length; t++) {
  10958. let e = n[t];
  10959. n.filter((t) => t !== e && ((t.x === e.x && t.y === e.y) || Object(A.lineDis)({ points: [t, e] }) < 0.1)).forEach((t) => {
  10960. i.forEach((i) => {
  10961. i.p1 === t.id && (i.p1 = e.id), i.p2 === t.id && (i.p2 = e.id);
  10962. }),
  10963. ~n.indexOf(t) && n.splice(n.indexOf(t), 1);
  10964. });
  10965. }
  10966. for (let e = 0; e < i.length; e++) {
  10967. let n = i[e];
  10968. n.p1 === n.p2 &&
  10969. (["case", "door", "slideDoor", "column", "groundCase", "bayCase"].forEach((e) => {
  10970. for (let i = 0; i < t[e] && t[e].length; i++) {
  10971. t[e][i].line === n.id && t[e].splice(i--, 1);
  10972. }
  10973. }),
  10974. i.splice(e--, 1));
  10975. }
  10976. for (let t = 0; t < i.length; t++) {
  10977. let e = i[t],
  10978. g = n.find(({ id: e }) => e === i[t].p1),
  10979. r = n.find(({ id: e }) => e === i[t].p2),
  10980. o = { points: [g, r] },
  10981. C = 0;
  10982. for (C = t + 1; C < i.length; C++) {
  10983. let t = i[C];
  10984. if (t === e) continue;
  10985. let I = n.find(({ id: t }) => t === i[C].p1),
  10986. s = n.find(({ id: t }) => t === i[C].p2);
  10987. if (g === I || g === s || r === I || r === s) continue;
  10988. let a = { points: [I, s] },
  10989. l = Object(A.segmentsIntr)(o, a);
  10990. if (
  10991. Object(A.lineDis)({ points: [g, l] }) < 0.1 ||
  10992. Object(A.lineDis)({ points: [r, l] }) < 0.1 ||
  10993. Object(A.lineDis)({ points: [I, l] }) < 0.1 ||
  10994. Object(A.lineDis)({ points: [s, l] }) < 0.1
  10995. )
  10996. continue;
  10997. if (!l) continue;
  10998. let u = Math.max(...n.map(({ id: t }) => t)) + 1,
  10999. c = Math.max(...i.map(({ id: t }) => t));
  11000. n.push({ ...l, id: u }),
  11001. i.splice(i.indexOf(e), 1, { p1: g.id, p2: u, id: ++c }, { p1: r.id, p2: u, id: ++c }),
  11002. i.splice(i.indexOf(t), 1, { p1: I.id, p2: u, id: ++c }, { p1: s.id, p2: u, id: ++c });
  11003. break;
  11004. }
  11005. C !== i.length && t--;
  11006. }
  11007. return t;
  11008. })(t);
  11009. let i = Date.now();
  11010. console.log("开始计算房间");
  11011. let n = [],
  11012. r = [],
  11013. o = [];
  11014. function C(t, e, i, g, A, o, I) {
  11015. for (let s = 0; s < t.length; ++s) {
  11016. if (A.indexOf(s) > -1 || o.indexOf(I) > -1) continue;
  11017. let a = t[s],
  11018. l = a.p1.id,
  11019. u = a.p2.id;
  11020. if (I == l || I == u) {
  11021. let c = JSON.parse(JSON.stringify(i)),
  11022. h = JSON.parse(JSON.stringify(g)),
  11023. p = JSON.parse(JSON.stringify(A)),
  11024. d = JSON.parse(JSON.stringify(o)),
  11025. f = I;
  11026. h.push(a.id), c.push(I), p.push(s), d.push(I), f == l ? (f = u) : f == u && (f = l), e == f ? (r.push(c), n.push(h)) : C(t, e, c, h, p, d, f);
  11027. }
  11028. }
  11029. }
  11030. function I(t, e, i, n) {
  11031. let g = [];
  11032. for (let t = 0; t < n.length; ++t) {
  11033. let e = n[t];
  11034. g.push(e);
  11035. }
  11036. let A = !0;
  11037. for (var r = 0; r < i.length; ++r) {
  11038. if (e.indexOf(t[r]) > -1) {
  11039. A = !1;
  11040. continue;
  11041. }
  11042. let i = t[r];
  11043. var C = i.p1,
  11044. I = i.p2,
  11045. a = { x: (C.x + I.x) / 2, y: (C.y + I.y) / 2 };
  11046. if (!(s(C, g) && s(I, g) && s(a, g))) return !1;
  11047. }
  11048. if (A) {
  11049. let i = [];
  11050. return i.push(e[0]), i.push(e[e.length - 1]), i.push(t[0]), i.push(t[t.length - 1]), o.push(i), !1;
  11051. }
  11052. return !0;
  11053. }
  11054. function s(t, e) {
  11055. for (var i = 0; i < e.length; ++i) {
  11056. if (a(t, e[i])) return !0;
  11057. }
  11058. return !!(function (t, e) {
  11059. for (var i = t.x, n = t.y, g = !1, A = 0, r = e.length - 1; A < e.length; r = A++) {
  11060. var o = e[A],
  11061. C = e[r],
  11062. I = o.x,
  11063. s = o.y,
  11064. a = C.x,
  11065. l = C.y;
  11066. s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g);
  11067. }
  11068. return g;
  11069. })(t, e);
  11070. }
  11071. function a(t, e) {
  11072. return t.x == e.x && t.y == e.y;
  11073. }
  11074. let l = t.wall.map((e) => ({ p1: t.vertex.find(({ id: t }) => e.p1 === t), p2: t.vertex.find(({ id: t }) => e.p2 === t), id: e.id }));
  11075. function u(t, e, i) {
  11076. return (t.x * e.y + e.x * i.y + i.x * t.y - e.x * t.y - i.x * e.y - t.x * i.y) / 2;
  11077. }
  11078. !(function (t) {
  11079. for (let e = 0; e < t.length; ++e) {
  11080. let i = [],
  11081. n = [],
  11082. g = [],
  11083. A = [];
  11084. for (let t = 0; t <= e; ++t) i.push(t);
  11085. let r = t[e],
  11086. o = r.p1.id,
  11087. I = r.p2.id;
  11088. g.push(I), A.push(r.id);
  11089. let s = null;
  11090. for (let r = e + 1; r < t.length; ++r) {
  11091. let e = t[r];
  11092. if (o == e.p1.id || o == e.p2.id) {
  11093. let a = JSON.parse(JSON.stringify(g)),
  11094. l = JSON.parse(JSON.stringify(A)),
  11095. u = JSON.parse(JSON.stringify(i)),
  11096. c = JSON.parse(JSON.stringify(n)),
  11097. h = o;
  11098. a.push(o), l.push(e.id), u.push(r), (s = h == e.p1.id ? e.p2.id : e.p1.id), c.push(h), C(t, I, a, l, u, c, s);
  11099. }
  11100. }
  11101. }
  11102. })(l),
  11103. (r = r.map((e) => e.map((e) => t.vertex.find(({ id: t }) => e === t)))),
  11104. (n = n.map((t) => t.map((t) => l.find(({ id: e }) => t === e)))),
  11105. (function () {
  11106. for (var t = 0; t < r.length; ++t)
  11107. for (var e = t + 1; e < r.length; ++e)
  11108. if (I(n[t], n[e], r[t], r[e])) r.splice(e, 1), n.splice(e, 1), --e;
  11109. else if (I(n[e], n[t], r[e], r[t])) {
  11110. r.splice(t, 1), n.splice(t, 1), --t, --e;
  11111. break;
  11112. }
  11113. })(),
  11114. (function () {
  11115. let t = [];
  11116. for (let e = 0; e < o.length; ++e) {
  11117. let i = o[e],
  11118. g = [];
  11119. (g[0] = null), (g[1] = null);
  11120. for (
  11121. let t = 0;
  11122. t < n.length &&
  11123. (i[0] == n[t][0] && i[1] == n[t][n[t].length - 1] ? (g[0] = t) : i[2] == n[t][0] && i[3] == n[t][n[t].length - 1] && (g[1] = t),
  11124. null == g[0] || null == g[1]);
  11125. ++t
  11126. );
  11127. null != g[0] && null != g[1] && t.push(g);
  11128. }
  11129. o = t;
  11130. })(),
  11131. (t.room = n.map((t, e) => ({ wall: t.map(({ id: t }) => t), ground: r[e] })));
  11132. let c = Date.now();
  11133. return (
  11134. console.warn("计算完毕,耗时" + (c - i)),
  11135. e &&
  11136. (window.testCenterPoints && e.processing.render.remove(...window.testCenterPoints),
  11137. (window.testCenterPoints = r.map((t) => {
  11138. let i = (function (t) {
  11139. for (var e = 0, i = 0, n = 0, g = t[1], A = 2; A < t.length; A++) {
  11140. var r = t[A],
  11141. o = u(t[0], g, r);
  11142. (n += o), (e += (t[0].x + g.x + r.x) * o), (i += (t[0].y + g.y + r.y) * o), (g = r);
  11143. }
  11144. return { x: e / n / 3, y: i / n / 3 };
  11145. })(t.map((t) => ({ ...t, y: -t.y }))),
  11146. n = "rgba(" + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + ",0.8)",
  11147. A = new g.a({ fillColor: n, storkeColor: n, x: i.x, y: i.y, renderer: e.processing.render });
  11148. return e.processing.render.push(A), A;
  11149. })),
  11150. window.testCenterPoints.forEach((i, g) => {
  11151. t.room[g].ground.map((t) => e.processing.points.find(({ id: e }) => e === t.id).ele.real),
  11152. n[g].map((t) => e.processing.lines.find(({ id: e }) => e === t.id).ele.real),
  11153. i.real,
  11154. r[g],
  11155. n[g];
  11156. console.log(r[g], r[g]);
  11157. })),
  11158. r
  11159. );
  11160. }
  11161. },
  11162. function (t, e, i) {
  11163. "use strict";
  11164. var n =
  11165. (this && this.__awaiter) ||
  11166. function (t, e, i, n) {
  11167. return new (i || (i = Promise))(function (g, A) {
  11168. function r(t) {
  11169. try {
  11170. C(n.next(t));
  11171. } catch (t) {
  11172. A(t);
  11173. }
  11174. }
  11175. function o(t) {
  11176. try {
  11177. C(n.throw(t));
  11178. } catch (t) {
  11179. A(t);
  11180. }
  11181. }
  11182. function C(t) {
  11183. var e;
  11184. t.done
  11185. ? g(t.value)
  11186. : ((e = t.value),
  11187. e instanceof i
  11188. ? e
  11189. : new i(function (t) {
  11190. t(e);
  11191. })).then(r, o);
  11192. }
  11193. C((n = n.apply(t, e || [])).next());
  11194. });
  11195. },
  11196. g =
  11197. (this && this.__generator) ||
  11198. function (t, e) {
  11199. var i,
  11200. n,
  11201. g,
  11202. A,
  11203. r = {
  11204. label: 0,
  11205. sent: function () {
  11206. if (1 & g[0]) throw g[1];
  11207. return g[1];
  11208. },
  11209. trys: [],
  11210. ops: [],
  11211. };
  11212. return (
  11213. (A = { next: o(0), throw: o(1), return: o(2) }),
  11214. "function" == typeof Symbol &&
  11215. (A[Symbol.iterator] = function () {
  11216. return this;
  11217. }),
  11218. A
  11219. );
  11220. function o(A) {
  11221. return function (o) {
  11222. return (function (A) {
  11223. if (i) throw new TypeError("Generator is already executing.");
  11224. for (; r; )
  11225. try {
  11226. if (((i = 1), n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n), 0) : n.next) && !(g = g.call(n, A[1])).done))
  11227. return g;
  11228. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  11229. case 0:
  11230. case 1:
  11231. g = A;
  11232. break;
  11233. case 4:
  11234. return r.label++, { value: A[1], done: !1 };
  11235. case 5:
  11236. r.label++, (n = A[1]), (A = [0]);
  11237. continue;
  11238. case 7:
  11239. (A = r.ops.pop()), r.trys.pop();
  11240. continue;
  11241. default:
  11242. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  11243. r = 0;
  11244. continue;
  11245. }
  11246. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  11247. r.label = A[1];
  11248. break;
  11249. }
  11250. if (6 === A[0] && r.label < g[1]) {
  11251. (r.label = g[1]), (g = A);
  11252. break;
  11253. }
  11254. if (g && r.label < g[2]) {
  11255. (r.label = g[2]), r.ops.push(A);
  11256. break;
  11257. }
  11258. g[2] && r.ops.pop(), r.trys.pop();
  11259. continue;
  11260. }
  11261. A = e.call(t, r);
  11262. } catch (t) {
  11263. (A = [6, t]), (n = 0);
  11264. } finally {
  11265. i = g = 0;
  11266. }
  11267. if (5 & A[0]) throw A[1];
  11268. return { value: A[0] ? A[1] : void 0, done: !0 };
  11269. })([A, o]);
  11270. };
  11271. }
  11272. },
  11273. A =
  11274. (this && this.__spreadArrays) ||
  11275. function () {
  11276. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length;
  11277. var n = Array(t),
  11278. g = 0;
  11279. for (e = 0; e < i; e++) for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r];
  11280. return n;
  11281. };
  11282. Object.defineProperty(e, "__esModule", { value: !0 });
  11283. e.default = function (t, e) {
  11284. return n(void 0, void 0, void 0, function () {
  11285. var i, n, r, o, C, I, s, a, l, u;
  11286. return g(this, function (g) {
  11287. switch (g.label) {
  11288. case 0:
  11289. return (
  11290. (i = 3),
  11291. (n = t.processing.render.layer),
  11292. (r = t.processing.render.g),
  11293. (o = (t.processing.render.layer.offsetWidth || parseInt(getComputedStyle(t.processing.render.layer).width)) * i),
  11294. (C = (t.processing.render.layer.offsetHeight || parseInt(getComputedStyle(t.processing.render.layer).height)) * i),
  11295. (n.style.visibility = "hidden"),
  11296. t.processing.doors.forEach(function (t) {
  11297. t.ele.showStart = !1;
  11298. }),
  11299. (I = A(
  11300. t.processing.points,
  11301. t.processing.lines,
  11302. t.processing.doors,
  11303. t.processing.columns,
  11304. t.processing.cases,
  11305. t.processing.bayCases,
  11306. t.processing.slideDoors,
  11307. t.processing.groundCases,
  11308. t.processing.furnFlues,
  11309. t.processing.furnColumns
  11310. )).length
  11311. ? [
  11312. 4,
  11313. Promise.all(
  11314. I.map(function (t) {
  11315. var e = t.ele;
  11316. return new Promise(function (t) {
  11317. return e.nextTick(t);
  11318. });
  11319. })
  11320. ),
  11321. ]
  11322. : [2]
  11323. );
  11324. case 1:
  11325. return g.sent(), (s = n.querySelector(".sign")), [4, t.hideSign()];
  11326. case 2:
  11327. g.sent(), (g.label = 3);
  11328. case 3:
  11329. return (
  11330. g.trys.push([3, 5, , 6]),
  11331. [
  11332. 4,
  11333. t.screenshot({
  11334. width: o,
  11335. height: C,
  11336. bgColor: "rgba(0,0,0,0)",
  11337. padding: t.padding * i,
  11338. showGauge: !1,
  11339. lineWidth: 2,
  11340. showDire: !1,
  11341. showTags: !1,
  11342. showDoorStart: !1,
  11343. errreturn: !0,
  11344. }),
  11345. ]
  11346. );
  11347. case 4:
  11348. for (a = g.sent().file, n.style.backgroundImage = "url(" + URL.createObjectURL(a) + ")", l = 0; l < r.children.length; l++)
  11349. r.children[l] !== s && r.removeChild(r.children[l--]);
  11350. return [3, 6];
  11351. case 5:
  11352. return (
  11353. (u = g.sent()),
  11354. console.error(u),
  11355. (t.padding = t.padding * i),
  11356. (t.processing.render.layer.style.transformOrigin = "left top"),
  11357. (t.processing.render.layer.style.transform = "scale(" + 1 / i + ")"),
  11358. t.setDefaultSignStyle({ r: 5 * i }),
  11359. t.adapt(t.processing.data, o, C),
  11360. [3, 6]
  11361. );
  11362. case 6:
  11363. return (s.style.display = "block"), (n.style.visibility = "visible"), [4, t.showSign()];
  11364. case 7:
  11365. return g.sent(), e && e(), [2];
  11366. }
  11367. });
  11368. });
  11369. };
  11370. },
  11371. ]);