123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972 |
- !(function (t) {
- var e = this.webpackHotUpdate
- this.webpackHotUpdate = function (t, i) {
- !(function (t, e) {
- if (!v[t] || !y[t]) return
- for (var i in ((y[t] = !1), e)) Object.prototype.hasOwnProperty.call(e, i) && (c[i] = e[i])
- 0 == --p && 0 === d && _()
- })(t, i),
- e && e(t, i)
- }
- var i,
- n = !0,
- g = '6ebc6af84dfdad10b153',
- A = {},
- r = [],
- o = []
- function C(t) {
- var e = P[t]
- if (!e) return O
- var n = function (n) {
- return (
- e.hot.active
- ? (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))
- : (console.warn('[HMR] unexpected require(' + n + ') from disposed module ' + t),
- (r = [])),
- O(n)
- )
- },
- g = function (t) {
- return {
- configurable: !0,
- enumerable: !0,
- get: function () {
- return O[t]
- },
- set: function (e) {
- O[t] = e
- }
- }
- }
- for (var A in O)
- Object.prototype.hasOwnProperty.call(O, A) &&
- 'e' !== A &&
- 't' !== A &&
- Object.defineProperty(n, A, g(A))
- return (
- (n.e = function (t) {
- return (
- 'ready' === a && l('prepare'),
- d++,
- O.e(t).then(e, function (t) {
- throw (e(), t)
- })
- )
- function e() {
- d--, 'prepare' === a && (f[t] || x(t), 0 === d && 0 === p && _())
- }
- }),
- (n.t = function (t, e) {
- return 1 & e && (t = n(t)), O.t(t, -2 & e)
- }),
- n
- )
- }
- function I(t) {
- var e = {
- _acceptedDependencies: {},
- _declinedDependencies: {},
- _selfAccepted: !1,
- _selfDeclined: !1,
- _disposeHandlers: [],
- _main: i !== t,
- active: !0,
- accept: function (t, i) {
- if (void 0 === t) e._selfAccepted = !0
- else if ('function' == typeof t) e._selfAccepted = t
- else if ('object' == typeof t)
- for (var n = 0; n < t.length; n++) e._acceptedDependencies[t[n]] = i || function () {}
- else e._acceptedDependencies[t] = i || function () {}
- },
- decline: function (t) {
- if (void 0 === t) e._selfDeclined = !0
- else if ('object' == typeof t)
- for (var i = 0; i < t.length; i++) e._declinedDependencies[t[i]] = !0
- else e._declinedDependencies[t] = !0
- },
- dispose: function (t) {
- e._disposeHandlers.push(t)
- },
- addDisposeHandler: function (t) {
- e._disposeHandlers.push(t)
- },
- removeDisposeHandler: function (t) {
- var i = e._disposeHandlers.indexOf(t)
- i >= 0 && e._disposeHandlers.splice(i, 1)
- },
- check: b,
- apply: w,
- status: function (t) {
- if (!t) return a
- s.push(t)
- },
- addStatusHandler: function (t) {
- s.push(t)
- },
- removeStatusHandler: function (t) {
- var e = s.indexOf(t)
- e >= 0 && s.splice(e, 1)
- },
- data: A[t]
- }
- return (i = void 0), e
- }
- var s = [],
- a = 'idle'
- function l(t) {
- a = t
- for (var e = 0; e < s.length; e++) s[e].call(null, t)
- }
- var u,
- c,
- h,
- p = 0,
- d = 0,
- f = {},
- y = {},
- v = {}
- function m(t) {
- return +t + '' === t ? +t : t
- }
- function b(t) {
- if ('idle' !== a) throw new Error('check() is only allowed in idle status')
- return (
- (n = t),
- l('check'),
- ((e = 1e4),
- (e = e || 1e4),
- new Promise(function (t, i) {
- if ('undefined' == typeof XMLHttpRequest) return i(new Error('No browser support'))
- try {
- var n = new XMLHttpRequest(),
- A = O.p + '' + g + '.hot-update.json'
- n.open('GET', A, !0), (n.timeout = e), n.send(null)
- } catch (t) {
- return i(t)
- }
- n.onreadystatechange = function () {
- if (4 === n.readyState)
- if (0 === n.status) i(new Error('Manifest request to ' + A + ' timed out.'))
- else if (404 === n.status) t()
- else if (200 !== n.status && 304 !== n.status)
- i(new Error('Manifest request to ' + A + ' failed.'))
- else {
- try {
- var e = JSON.parse(n.responseText)
- } catch (t) {
- return void i(t)
- }
- t(e)
- }
- }
- })).then(function (t) {
- if (!t) return l('idle'), null
- ;(y = {}), (f = {}), (v = t.c), (h = t.h), l('prepare')
- var e = new Promise(function (t, e) {
- u = { resolve: t, reject: e }
- })
- c = {}
- return x(0), 'prepare' === a && 0 === d && 0 === p && _(), e
- })
- )
- var e
- }
- function x(t) {
- v[t]
- ? ((y[t] = !0),
- p++,
- (function (t) {
- var e = document.createElement('script')
- ;(e.charset = 'utf-8'),
- (e.src = O.p + '' + t + '.' + g + '.hot-update.js'),
- document.head.appendChild(e)
- })(t))
- : (f[t] = !0)
- }
- function _() {
- l('ready')
- var t = u
- if (((u = null), t))
- if (n)
- Promise.resolve()
- .then(function () {
- return w(n)
- })
- .then(
- function (e) {
- t.resolve(e)
- },
- function (e) {
- t.reject(e)
- }
- )
- else {
- var e = []
- for (var i in c) Object.prototype.hasOwnProperty.call(c, i) && e.push(m(i))
- t.resolve(e)
- }
- }
- function w(e) {
- if ('ready' !== a) throw new Error('apply() is only allowed in ready status')
- var i, n, o, C, I
- function s(t) {
- for (
- var e = [t],
- i = {},
- n = e.map(function (t) {
- return { chain: [t], id: t }
- });
- n.length > 0;
- ) {
- var g = n.pop(),
- A = g.id,
- r = g.chain
- if ((C = P[A]) && !C.hot._selfAccepted) {
- if (C.hot._selfDeclined) return { type: 'self-declined', chain: r, moduleId: A }
- if (C.hot._main) return { type: 'unaccepted', chain: r, moduleId: A }
- for (var o = 0; o < C.parents.length; o++) {
- var I = C.parents[o],
- s = P[I]
- if (s) {
- if (s.hot._declinedDependencies[A])
- return { type: 'declined', chain: r.concat([I]), moduleId: A, parentId: I }
- ;-1 === e.indexOf(I) &&
- (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 })))
- }
- }
- }
- }
- return { type: 'accepted', moduleId: t, outdatedModules: e, outdatedDependencies: i }
- }
- function u(t, e) {
- for (var i = 0; i < e.length; i++) {
- var n = e[i]
- ;-1 === t.indexOf(n) && t.push(n)
- }
- }
- e = e || {}
- var p = {},
- d = [],
- f = {},
- y = function () {
- console.warn('[HMR] unexpected require(' + x.moduleId + ') to disposed module')
- }
- for (var b in c)
- if (Object.prototype.hasOwnProperty.call(c, b)) {
- var x
- I = m(b)
- var _ = !1,
- w = !1,
- S = !1,
- E = ''
- switch (
- ((x = c[b] ? s(I) : { type: 'disposed', moduleId: b }).chain &&
- (E = '\nUpdate propagation: ' + x.chain.join(' -> ')),
- x.type)
- ) {
- case 'self-declined':
- e.onDeclined && e.onDeclined(x),
- e.ignoreDeclined ||
- (_ = new Error('Aborted because of self decline: ' + x.moduleId + E))
- break
- case 'declined':
- e.onDeclined && e.onDeclined(x),
- e.ignoreDeclined ||
- (_ = new Error(
- 'Aborted because of declined dependency: ' + x.moduleId + ' in ' + x.parentId + E
- ))
- break
- case 'unaccepted':
- e.onUnaccepted && e.onUnaccepted(x),
- e.ignoreUnaccepted || (_ = new Error('Aborted because ' + I + ' is not accepted' + E))
- break
- case 'accepted':
- e.onAccepted && e.onAccepted(x), (w = !0)
- break
- case 'disposed':
- e.onDisposed && e.onDisposed(x), (S = !0)
- break
- default:
- throw new Error('Unexception type ' + x.type)
- }
- if (_) return l('abort'), Promise.reject(_)
- if (w)
- for (I in ((f[I] = c[I]), u(d, x.outdatedModules), x.outdatedDependencies))
- Object.prototype.hasOwnProperty.call(x.outdatedDependencies, I) &&
- (p[I] || (p[I] = []), u(p[I], x.outdatedDependencies[I]))
- S && (u(d, [x.moduleId]), (f[I] = y))
- }
- var D,
- k = []
- 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 })
- l('dispose'),
- Object.keys(v).forEach(function (t) {
- !1 === v[t] &&
- (function (t) {
- delete installedChunks[t]
- })(t)
- })
- for (var M, L, N = d.slice(); N.length > 0; )
- if (((I = N.pop()), (C = P[I]))) {
- var j = {},
- R = C.hot._disposeHandlers
- for (o = 0; o < R.length; o++) (i = R[o])(j)
- for (
- A[I] = j, C.hot.active = !1, delete P[I], delete p[I], o = 0;
- o < C.children.length;
- o++
- ) {
- var G = P[C.children[o]]
- G && (D = G.parents.indexOf(I)) >= 0 && G.parents.splice(D, 1)
- }
- }
- for (I in p)
- if (Object.prototype.hasOwnProperty.call(p, I) && (C = P[I]))
- for (L = p[I], o = 0; o < L.length; o++)
- (M = L[o]), (D = C.children.indexOf(M)) >= 0 && C.children.splice(D, 1)
- for (I in (l('apply'), (g = h), f)) Object.prototype.hasOwnProperty.call(f, I) && (t[I] = f[I])
- var T = null
- for (I in p)
- if (Object.prototype.hasOwnProperty.call(p, I) && (C = P[I])) {
- L = p[I]
- var V = []
- for (n = 0; n < L.length; n++)
- if (((M = L[n]), (i = C.hot._acceptedDependencies[M]))) {
- if (-1 !== V.indexOf(i)) continue
- V.push(i)
- }
- for (n = 0; n < V.length; n++) {
- i = V[n]
- try {
- i(L)
- } catch (t) {
- e.onErrored &&
- e.onErrored({ type: 'accept-errored', moduleId: I, dependencyId: L[n], error: t }),
- e.ignoreErrored || T || (T = t)
- }
- }
- }
- for (n = 0; n < k.length; n++) {
- var U = k[n]
- ;(I = U.module), (r = [I])
- try {
- O(I)
- } catch (t) {
- if ('function' == typeof U.errorHandler)
- try {
- U.errorHandler(t)
- } catch (i) {
- e.onErrored &&
- e.onErrored({
- type: 'self-accept-error-handler-errored',
- moduleId: I,
- error: i,
- originalError: t
- }),
- e.ignoreErrored || T || (T = i),
- T || (T = t)
- }
- else
- e.onErrored && e.onErrored({ type: 'self-accept-errored', moduleId: I, error: t }),
- e.ignoreErrored || T || (T = t)
- }
- }
- return T
- ? (l('fail'), Promise.reject(T))
- : (l('idle'),
- new Promise(function (t) {
- t(d)
- }))
- }
- var P = {}
- function O(e) {
- if (P[e]) return P[e].exports
- var i = (P[e] = {
- i: e,
- l: !1,
- exports: {},
- hot: I(e),
- parents: ((o = r), (r = []), o),
- children: []
- })
- return t[e].call(i.exports, i, i.exports, C(e)), (i.l = !0), i.exports
- }
- ;(O.m = t),
- (O.c = P),
- (O.d = function (t, e, i) {
- O.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: i })
- }),
- (O.r = function (t) {
- 'undefined' != typeof Symbol &&
- Symbol.toStringTag &&
- Object.defineProperty(t, Symbol.toStringTag, { value: 'Module' }),
- Object.defineProperty(t, '__esModule', { value: !0 })
- }),
- (O.t = function (t, e) {
- if ((1 & e && (t = O(t)), 8 & e)) return t
- if (4 & e && 'object' == typeof t && t && t.__esModule) return t
- var i = Object.create(null)
- if (
- (O.r(i),
- Object.defineProperty(i, 'default', { enumerable: !0, value: t }),
- 2 & e && 'string' != typeof t)
- )
- for (var n in t)
- O.d(
- i,
- n,
- function (e) {
- return t[e]
- }.bind(null, n)
- )
- return i
- }),
- (O.n = function (t) {
- var e =
- t && t.__esModule
- ? function () {
- return t.default
- }
- : function () {
- return t
- }
- return O.d(e, 'a', e), e
- }),
- (O.o = function (t, e) {
- return Object.prototype.hasOwnProperty.call(t, e)
- }),
- (O.p = ''),
- (O.h = function () {
- return g
- }),
- C(24)((O.s = 24))
- })([
- function (t, e, i) {
- var n =
- (this && this.__assign) ||
- function () {
- return (n =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var g = i(3)
- ;(e.calcVector = function (t) {
- var e = 1 / ((t = n({}, t)).x * t.y < 0 ? Math.abs(t.x - t.y) : t.x + t.y)
- return (t.x = t.x * e), (t.y = t.y * e), t
- }),
- (e.strictLineVector = function (t) {
- var i = t.points[1].x - t.points[0].x,
- n = t.points[1].y - t.points[0].y,
- g = Math.abs(i / 1),
- A = Math.abs(n / 1),
- r = g > A ? g : A,
- o = { x: i / r, y: n / r }
- return e.calcVector(o)
- }),
- (e.lineVector = function (t, i) {
- void 0 === i && (i = 0.001)
- var n = e.strictLineVector(t)
- return Math.abs(n.x) < i && (n.x = 0), Math.abs(n.y) < i && (n.y = 0), n
- }),
- (e.verticalLine = function (t) {
- var i = e.lineVector(t),
- n = i.x,
- g = i.y
- if (n - g != 0) {
- var A = { x: g / (g - n), y: n / (n - g) }
- return e.calcVector(A)
- }
- return { x: n, y: g }
- }),
- (e.lineDis = function (t) {
- 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)
- )
- }),
- (e.lineCenter = function (t) {
- return { x: (t.points[0].x + t.points[1].x) / 2, y: (t.points[0].y + t.points[1].y) / 2 }
- }),
- (e.segmentsIntr = function (t, i) {
- var n = t.points,
- g = n[0],
- A = n[1],
- r = i.points,
- o = r[0],
- C = r[1],
- I = (A.y - g.y) * (C.x - o.x) - (g.x - A.x) * (o.y - C.y)
- if (0 == I) return !1
- 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,
- 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
- return (
- !(!e.isContainPoint(t, { x: s, y: a }) || !e.isContainPoint(i, { x: s, y: a })) && {
- x: s,
- y: a
- }
- )
- }),
- (e.segmentsIntrFine = function (t, e) {
- var i = t.points,
- n = i[0],
- g = i[1],
- A = e.points,
- r = A[0],
- o = A[1],
- C = (g.y - n.y) * (o.x - r.x) - (n.x - g.x) * (r.y - o.y)
- if (0 == C) return !1
- 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,
- 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
- return !isNaN(I) && !isNaN(s) && { x: I, y: s }
- }),
- (e.pointLineDis = function (t, e) {
- var i = 0,
- n = t.points[1].x - t.points[0].x,
- g = e.x - t.points[0].x,
- A = e.x - t.points[1].x,
- r = t.points[1].y - t.points[0].y,
- o = e.y - t.points[0].y,
- C = e.y - t.points[1].y,
- I = n * g + r * o,
- s = n * n + r * r
- if (I <= 0) i = Math.sqrt(g * g + o * o)
- else if (I >= s) i = Math.sqrt(A * A + C * C)
- else {
- var a = I / s,
- l = t.points[0].x + n * a,
- u = t.points[0].y + r * a
- i = Math.sqrt((e.x - l) * (e.x - l) + (u - e.y) * (u - e.y))
- }
- return i
- }),
- (e.isContainPoint = function (t, i) {
- return !Math.abs(e.pointLineDis(t, i)) || Math.abs(e.pointLineDis(t, i)) < 0.01
- }),
- (e.getVerLinePoint = function (t, i) {
- return e.getVectorPosPoint(e.verticalLine(t), t.points[0], i)
- }),
- (e.getVectorPosPoint = function (t, i, n) {
- var g = { points: [i, { x: i.x + 1e4 * t.x, y: i.y + 1e4 * t.y }] }
- return e.getLinePoint(g, n)
- }),
- (e.getLinePoint = function (t, i) {
- var n,
- A = i
- if (g.type.isNumber(A.x) && g.type.isNumber(A.y)) {
- var r = e.lineVector(t),
- o = r.x,
- C = r.y,
- I = Math.abs(o) > Math.abs(C) ? 'x' : 'y'
- ;((n = {})[I] = A[I]), (A = n)
- }
- var s = e.lineVector(t, 1e-4),
- a = s.y / s.x,
- l = t.points[0].y - a * t.points[0].x
- return a > 100 || a < -100
- ? { x: t.points[0].x, y: A.y }
- : g.type.isNumber(A.x)
- ? { x: A.x, y: a * A.x + l }
- : g.type.isNumber(A.y)
- ? { x: (A.y - l) / a, y: A.y }
- : { x: 0, y: 0 }
- }),
- (e.getFlexLinePoint = function (t, i) {
- var n = e.strictLineVector(t),
- g = n.x,
- A = n.y,
- r = (g = Math.abs(g)) > (A = Math.abs(A)) ? { x: i.x } : { y: i.y }
- return e.getLinePoint(t, r)
- }),
- (e.getDisVectorPoints = function (t, e, i) {
- var n = Math.atan(t.y / t.x)
- return [
- { x: e.x + i * Math.cos(n), y: e.y + i * Math.sin(n) },
- { x: e.x + -i * Math.cos(n), y: e.y + -i * Math.sin(n) }
- ]
- }),
- (e.getDisPointLinePoints = function (t, i, n) {
- return e.getDisVectorPoints(e.lineVector(t), i, n)
- }),
- (e.getLineDisPoint = function (t, i) {
- var n = e.getDisPointLinePoints(t, t.points[0], i),
- g = n[0],
- A = n[1],
- r = e.lineVector(t),
- o = e.lineVector({ points: [t.points[0], g] })
- return r.x * o.x >= 0 && r.y * o.y >= 0 ? g : A
- }),
- (e.getLineDisSelectPoint = function (t, i, n) {
- var g = e.getDisPointLinePoints(t, i, n),
- A = g[0],
- r = g[1]
- return e.pointLineDis(t, A) < e.pointLineDis(t, r) ? A : r
- }),
- (e.getDisVerticalLinePoints = function (t, i, n) {
- return e.getDisVectorPoints(e.verticalLine(t), i, n)
- }),
- (e.getLineVerticalChangePoint = function (t, i, n) {
- var g = e.segmentsIntrFine(t, i)
- return g ? e.getLineVerticalPoint(t, g, e.lineVector(i), n) : g
- }),
- (e.getLineVerticalPoint = function (t, i, n, g) {
- var A = e.getDisVerticalLinePoints(t, i, g),
- r = A[0],
- o = A[1],
- C = e.lineVector({ points: [i, r] }),
- I = e.lineVector({ points: [i, o] }),
- s = n.x * C.x,
- a = n.y * C.y,
- l = n.x * I.x,
- u = n.x * I.y
- return s >= 0 && a >= 0
- ? r
- : (l >= 0 && u >= 0) || (s < a ? s : a) < (l < u ? l : u)
- ? o
- : r
- }),
- (e.getPointCoordinate = function (t) {
- 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
- }),
- (e.getLineCoordinate = function (t) {
- var e = t.points[1].x - t.points[0].x,
- i = t.points[1].y - t.points[0].y
- return e >= 0 && i >= 0 ? 1 : e >= 0 && i <= 0 ? 4 : e <= 0 && i <= 0 ? 3 : 2
- }),
- (e.getPointCoordDistance = function (t, i) {
- return e.getPointCoordinate(t) - e.getPointCoordinate(i)
- }),
- (e.faceArea = function (t) {
- var e = t.length
- if (e < 3) return 0
- 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)
- return Math.abs(i / 2)
- }),
- (e.pointInside = function (t, e) {
- for (var i = !1, n = e.x, g = e.y, A = 0, r = t.length - 1; A < t.length; r = A++) {
- var o = t[A].x,
- C = t[A].y,
- I = t[r].x,
- s = t[r].y
- C > g != s > g && n <= ((I - o) * (g - C)) / (s - C) + o && (i = !i)
- }
- return i
- }),
- (e.isPointInPoly = function (t, e) {
- for (var i = e.x, n = e.y, g = !1, A = 0, r = t.length - 1; A < t.length; r = A++) {
- var o = t[A],
- C = t[r],
- I = o.x,
- s = o.y,
- a = C.x,
- l = C.y
- s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g)
- }
- return g
- }),
- (e.pointInsideBorder = function (t, i) {
- for (var n = 0; n < t.length; n++) {
- var g = { points: [t[n], t[n === t.length - 1 ? 0 : n + 1]] }
- if (e.isContainPoint(g, i)) return !0
- }
- return !1
- }),
- (e.isClockWise = function (t, e) {
- var i, n, g
- void 0 === e && (e = !0)
- var A,
- r = 0,
- o = e ? -1 : 1
- if (null == t || t.length < 3) return !1
- var C = t.length
- for (i = 0; i < C; i++)
- (g = (i + 2) % C),
- (A = (t[(n = (i + 1) % C)].x - t[i].x) * (t[g].y * o - t[n].y * o)),
- (A -= (t[n].y * o - t[i].y * o) * (t[g].x - t[n].x)) < 0 ? r-- : A > 0 && r++
- return r > 0
- }),
- (e.isLineIntersect = function (t, e) {
- var i = t.points[1].y - t.points[0].y,
- n = t.points[0].x - t.points[1].x,
- g = i * t.points[0].x + n * t.points[0].y,
- A = e.points[1].y - e.points[0].y,
- r = e.points[0].x - e.points[1].x,
- o = A * e.points[0].x + r * e.points[0].y,
- C = i * r - A * n
- if (0 == C) return !1
- var I = (r * g - n * o) / C,
- s = (i * o - A * g) / C
- if (
- (a(t.points[0].x, I, t.points[1].x) || a(t.points[0].y, s, t.points[1].y)) &&
- (a(e.points[0].x, I, e.points[1].x) || a(e.points[0].y, s, e.points[1].y))
- )
- return !0
- function a(t, e, i) {
- return (
- !(Math.abs(t - e) < 1e-6 || Math.abs(e - i) < 1e-6) &&
- ((t <= e && e <= i) || (i <= e && e <= t))
- )
- }
- return !1
- }),
- (e.isFaceIntersect = function (t, i) {
- for (var n = 0; n < t.length; n++)
- for (
- var g = n + 1 === t.length ? 0 : n + 1, A = { points: [t[n], t[g]] }, r = 0;
- r < i.length;
- r++
- ) {
- g = r + 1 === i.length ? 0 : r + 1
- var o = { points: [i[r], i[g]] },
- C = e.isLineIntersect(o, A),
- I = e.isLineIntersect(A, o)
- if (C && I) return !0
- }
- return !1
- }),
- (e.isFaceContain = function (t, i) {
- return (
- i.every(function (i) {
- return e.pointInside(t, i)
- }) && !e.isFaceIntersect(t, i)
- )
- }),
- (e.isFaceChild = function (t, i) {
- return (
- i.every(function (i) {
- return e.pointInside(t, i) || e.pointInsideBorder(t, i)
- }) && !e.isFaceIntersect(t, i)
- )
- }),
- (e.faceCenter = function (t) {
- for (var e = 0, i = 0, n = 0; n < t.length; n++) (e += t[n].x), (i += t[n].y)
- return { x: (e /= t.length), y: (i /= t.length) }
- }),
- (e.faceRotate = function (t, i) {
- var n = window.THREE,
- g = e.faceCenter(t),
- A = new n.Matrix3().translate(-g.x, -g.y),
- r = new n.Matrix3().rotate(n.Math.degToRad(i)),
- o = new n.Matrix3().translate(g.x, g.y),
- C = new n.Matrix3()
- return (
- C.premultiply(A),
- C.premultiply(r),
- C.premultiply(o),
- t.map(function (t) {
- var e = new n.Vector2(t.x, t.y)
- return e.applyMatrix3(C), { x: e.x, y: e.y }
- })
- )
- }),
- (e.lineStretch = function (t, i) {
- t = n(n({}, t), {
- points: t.points.map(function (t) {
- return { x: t.x, y: t.y }
- })
- })
- var g = e.lineCenter(t),
- A = e.getDisPointLinePoints(t, g, i / 2),
- r = A[0],
- o = A[1]
- return (
- e.lineDis({ points: [t.points[0], r] }) > e.lineDis({ points: [t.points[0], o] })
- ? ((t.points[0].x = o.x),
- (t.points[0].y = o.y),
- (t.points[1].x = r.x),
- (t.points[1].y = r.y))
- : ((t.points[0].x = r.x),
- (t.points[0].y = r.y),
- (t.points[1].x = o.x),
- (t.points[1].y = o.y)),
- t
- )
- }),
- (e.lineDeg = function (t) {
- return (
- (180 * Math.atan2(t.points[1].y - t.points[0].y, t.points[1].x - t.points[0].x)) / Math.PI
- )
- }),
- (e.getAngle = function (t, e) {
- var i, n, g, A
- ~(A = t.points.indexOf(e.points[0]))
- ? ((i = t.points[A]), (n = e.points[1]), (g = t.points[Number(!A)]))
- : ~(A = t.points.indexOf(e.points[1])) &&
- ((i = t.points[A]), (n = e.points[0]), (g = t.points[Number(!A)]))
- var r,
- o,
- C = 0,
- I = n.x - i.x,
- s = n.y - i.y,
- a = g.x - i.x,
- l = g.y - i.y
- return (
- (C = I * a + s * l),
- (o = (I * I + s * s) * (a * a + l * l)),
- (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
- )
- }),
- (e.rotatePoint = function (t, e, i) {
- var n = t.x - i.x,
- g = t.y - i.y,
- A = Math.cos(e) * n - Math.sin(e) * g,
- r = Math.sin(e) * n + Math.cos(e) * g
- return { x: A + i.x, y: r + i.y }
- }),
- (e.rotateData = function (t, i, n) {
- try {
- var g = ['furnColumn', 'furnFlue', 'column']
- return (
- (t = JSON.parse(JSON.stringify(t))).vertex.forEach(function (t) {
- var g = e.rotatePoint(t, i, n)
- ;(t.x = g.x), (t.y = g.y)
- }),
- t.tagging.forEach(function (t) {
- var g = e.rotatePoint({ x: t.pos[0], y: t.pos[1] }, i, n)
- ;(t.pos[0] = g.x), (t.pos[1] = g.y)
- }),
- ['window', 'door', 'slideDoor', 'groundCase', 'bayCase', 'doubleDoor']
- .concat(g)
- .forEach(function (g) {
- t[g].forEach(function (t) {
- var g = e.rotatePoint({ x: t.pos[0], y: t.pos[1] }, i, n),
- A = e.rotatePoint({ x: t.pos[2], y: t.pos[3] }, i, n)
- ;(t.pos[0] = g.x), (t.pos[1] = g.y), (t.pos[2] = A.x), (t.pos[3] = A.y)
- })
- }),
- g.forEach(function (g) {
- t[g].forEach(function (t) {
- var g = e.rotatePoint({ x: t.pos[4], y: t.pos[5] }, i, n),
- A = e.rotatePoint({ x: t.pos[6], y: t.pos[7] }, i, n)
- ;(t.pos[4] = g.x), (t.pos[5] = g.y), (t.pos[6] = A.x), (t.pos[7] = A.y)
- })
- }),
- t
- )
- } catch (e) {
- return t
- }
- })
- },
- function (t, e, i) {
- var n, g
- Object.defineProperty(e, '__esModule', { value: !0 })
- var A = i(9)
- ;(e.SVGURI = 'http://www.w3.org/2000/svg'),
- (e.SVGPATH = 'http://www.w3.org/1999/xlink'),
- (e.STATE_CHILD = '__state'),
- (e.POINT = 'point'),
- (e.DOOR = 'door'),
- (e.DOUBLEDOOR = 'double_door'),
- (e.COLUMN = 'column'),
- (e.CASEMENT = 'casement'),
- (e.SLIDEDOOR = 'slideDoor'),
- (e.TAGGING = 'tagging'),
- (e.GROUNDCASE = 'groundCase'),
- (e.BAYCASE = 'bayCase'),
- (e.FURNCOLUMN = 'furnColumn'),
- (e.FURNFLUE = 'furnFlue'),
- (e.LINE = 'line'),
- (e.SEFTLINE = 'seftline'),
- (e.ARCH =
- (((n = {})[e.POINT] = A.i18n.t('modules.model.point')),
- (n[e.DOOR] = A.i18n.t('modules.model.door')),
- (n[e.DOUBLEDOOR] = A.i18n.t('modules.model.double_door')),
- (n[e.COLUMN] = A.i18n.t('modules.model.column')),
- (n[e.CASEMENT] = A.i18n.t('modules.model.casement')),
- (n[e.SLIDEDOOR] = A.i18n.t('modules.model.slideDoor')),
- (n[e.TAGGING] = A.i18n.t('modules.model.tagging')),
- (n[e.GROUNDCASE] = A.i18n.t('modules.model.groundCase')),
- (n[e.BAYCASE] = A.i18n.t('modules.model.bayCase')),
- (n[e.FURNCOLUMN] = A.i18n.t('modules.model.furnColumn')),
- (n[e.FURNFLUE] = A.i18n.t('modules.model.furnFlue')),
- (n[e.LINE] = A.i18n.t('modules.model.line')),
- (n[e.SEFTLINE] = A.i18n.t('modules.model.line')),
- n)),
- (e.DEFAULT =
- (((g = {})[e.DOOR] = { width: 0.8, height: 2 }),
- (g[e.DOUBLEDOOR] = { width: 1.6, height: 2 }),
- (g[e.SLIDEDOOR] = { width: 1.5, height: 2 }),
- (g[e.CASEMENT] = { width: 0.8, height: 1.2 }),
- (g[e.BAYCASE] = { width: 1.5, height: 1.2 }),
- (g[e.GROUNDCASE] = { width: 1.5, height: 2 }),
- (g[e.COLUMN] = { width: 0.65, tick: 0.65 }),
- (g[e.FURNCOLUMN] = { width: 0.65, tick: 0.65 }),
- (g[e.FURNFLUE] = { width: 0.65, tick: 0.65 }),
- (g[e.LINE] = { width: 0.5 }),
- g))
- },
- function (t, e, i) {
- var n =
- (this && this.__assign) ||
- function () {
- return (n =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var g = i(29),
- A = i(1),
- r = i(3),
- o = 0,
- C = { enter: 'mouseenter', leave: 'mouseleave', click: 'click', drag: 'mousedown' },
- I = (function () {
- function t(e) {
- var i = this
- ;(this.zIndex = 0),
- (this.render = e.renderer),
- (this.id = ++o),
- (this.__state = new g.State(n(n({}, e), { select: !1 }), {
- afferent: this,
- notice: function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- i.notice && i.notice.apply(i, t), i.update && i.update()
- var n = Object.keys(t[0].args)
- if ((~n.indexOf('x') || ~n.indexOf('y')) && i.wallPos)
- try {
- i.wallPos()
- } catch (t) {}
- ~n.indexOf('select') && i.wallSelect && i.wallSelect()
- },
- childAttr: A.STATE_CHILD,
- intercept:
- this.intercept &&
- function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- return i.intercept.apply(i, t)
- }
- })),
- this.__state.bindDataChange(),
- g.getter(this, this.__state),
- g.setter(this, this.__state),
- Object.defineProperties(this, {
- multiple: {
- get: function () {
- return i.renderer.props.multiple / i.renderer.props.scale
- }
- }
- }),
- t.examples.get(this.renderer).push(this),
- this.grentNode &&
- ((this.real = this.grentNode()),
- this.setHoverStyle &&
- this.setUnHoverStyle &&
- ((this.enter = function () {
- ;(i.real.style.cursor = 'pointer'), i.setHoverStyle()
- }),
- (this.leave = function () {
- i.select || (i.setUnHoverStyle(), (i.real.style.cursor = 'inherit'))
- }),
- (this.wallSelect = function () {
- i.select
- ? ((i.real.style.cursor = 'pointer'), i.setHoverStyle())
- : ((i.real.style.cursor = 'inherit'), i.setUnHoverStyle())
- })),
- this.listen()),
- (this.real.id = 'ele' + o.toString()),
- this.nextTick(function () {
- try {
- i.update()
- } catch (t) {}
- })
- }
- return (
- (t.prototype.intercept = function (t, e, i, n) {
- return e
- }),
- (t.prototype.changeSelect = function (e) {
- var i = this
- this.select !== e &&
- ((this.select = e),
- this.wallSelect && this.wallSelect(),
- this.update && this.update(),
- e &&
- t.examples.get(this.renderer).forEach(function (t) {
- t !== i && t.select && t.changeSelect(!1)
- }))
- }),
- (t.prototype.click = function (t) {
- var e = this
- this.changeSelect(!0),
- this.renderer.processing.attrs.forEach(function (t) {
- var i = e.renderer.processing[t].find(function (t) {
- return t.ele === e
- })
- i && console.log(i)
- }),
- t.stopPropagation()
- }),
- (t.prototype.nextTick = function (t) {
- this.__state.nextTick(t)
- }),
- (t.prototype.nextChange = function (t) {
- this.__state.nextChange(t)
- }),
- (t.prototype.listen = function () {
- ;(this.__draging = !1),
- this.bindEvent('enter'),
- this.bindEvent('leave'),
- this.bindEvent('click'),
- this.bindEvent('drag')
- }),
- (t.prototype.unEvent = function () {
- this.unbindEvent('enter'),
- this.unbindEvent('leave'),
- this.unbindEvent('click'),
- this.unbindEvent('drag')
- }),
- (t.prototype.destroy = function () {
- ;(this.__destroy = !0), this.unEvent()
- var e = t.examples.get(this.renderer)
- ~e.indexOf(this) && (e.splice(e.indexOf(this), 1), this.renderer.remove(this))
- }),
- (t.prototype.bindDrag = function (t) {
- var e = this,
- i = { x: t.offsetX, y: t.offsetY }
- this.dragStart && this.dragStart(t, i)
- var n = r.throttle(function (t) {
- var n = { x: t.offsetX, y: t.offsetY }
- ;(e.__draging = !0),
- e.drag({ x: n.x - i.x, y: n.y - i.y }, n, i),
- t.preventDefault()
- }, 10),
- g = function (t) {
- document.documentElement.removeEventListener('mousemove', n, !1),
- document.documentElement.removeEventListener('mouseup', g, !1),
- (e.__draging = !1),
- e.dragEnd && e.dragEnd({ x: t.offsetX, y: t.offsetY }),
- e.__leave && e.leave()
- }
- document.documentElement.addEventListener('mousemove', n, !1),
- document.documentElement.addEventListener('mouseup', g, !1),
- t.preventDefault()
- }),
- (t.prototype.bindEvent = function (e) {
- var i = this
- if (this[e]) {
- var n = '__bind_' + e
- this[n] && this.unbindEvent(e)
- var g =
- 'drag' === e
- ? this.bindDrag.bind(this)
- : function (n) {
- var g = t.examples.get(i.renderer)
- ;('enter' === e &&
- g.some(function (t) {
- return t.__draging
- })) ||
- (!i.__draging || ('enter' !== e && 'leave' !== e)
- ? i[e](n)
- : (i.__leave = 'leave' === e))
- }
- this.real.addEventListener(C[e], g, !1), (this[n] = g)
- }
- }),
- (t.prototype.unbindEvent = function (t) {
- this['__bind_' + t] && this.real.removeEventListener(C[t], this['__bind_' + t], !1)
- }),
- (t.examples = new Map()),
- (t.multiples = new Map()),
- (t.update = function (e, i) {
- void 0 === i && (i = [])
- var n = t.examples.get(e).concat(i)
- ;(n = Array.from(new Set(n))).forEach(function (t) {
- t.update && t.update()
- })
- }),
- (t.init = function (e) {
- t.examples.set(e, [])
- }),
- t
- )
- })()
- e.CADElement = I
- },
- function (t, e, i) {
- Object.defineProperty(e, '__esModule', { value: !0 }),
- (e.getRange = function (t) {
- var e = Math.abs(Math.min.apply(Math, t)),
- i = Math.abs(Math.max.apply(Math, t))
- return Math.ceil(e + i)
- }),
- (e.getMapMultipleWH = function (t, e, i, n) {
- void 0 === n && (n = 10)
- var g = Math.abs(
- Math.min.apply(
- Math,
- i.vertex.map(function (t) {
- return t.x
- })
- )
- ),
- A = Math.abs(
- Math.max.apply(
- Math,
- i.vertex.map(function (t) {
- return t.x
- })
- )
- ),
- r = Math.abs(
- Math.min.apply(
- Math,
- i.vertex.map(function (t) {
- return t.y
- })
- )
- ),
- o = Math.abs(
- Math.max.apply(
- Math,
- i.vertex.map(function (t) {
- return t.y
- })
- )
- ),
- C = Math.ceil(g + A) / t,
- I = Math.ceil(r + o) / e,
- s = C > I ? C : I,
- a = t * s,
- l = e * s
- return {
- width: a,
- height: l,
- multiple: s,
- left: (g / (g + A)) * a,
- top: (r / (r + o)) * l,
- scale: 1 - (2 * n * s) / a
- }
- }),
- (e.debounce = function (t, e, i, n) {
- void 0 === e && (e = 16)
- var g = null,
- A = [],
- r = 0
- return function () {
- for (var o = [], C = 0; C < arguments.length; C++) o[C] = arguments[C]
- r || (n && n()),
- r++,
- A.push(o),
- clearTimeout(g),
- (g = setTimeout(function () {
- i ? (t(i(A)), (A = [])) : t.apply(void 0, o), (r = 0)
- }, e))
- }
- }),
- (e.throttle = function (t, e) {
- var i = null
- return function () {
- for (var n = [], g = 0; g < arguments.length; g++) n[g] = arguments[g]
- var A = +new Date()
- ;(A - i > e || !i) && (t.apply(void 0, n), (i = A))
- }
- }),
- (e.getType = function (t) {
- return Object.prototype.toString.call(t).slice(8, -1)
- }),
- (e.type = {})
- ;[
- 'String',
- 'Number',
- 'Boolean',
- 'Undefined',
- 'Null',
- 'Object',
- 'Function',
- 'Array',
- 'Date',
- 'RegExp'
- ].forEach(function (t) {
- return (e.type['is' + t] = function (i) {
- return e.getType(i) === t
- })
- }),
- (e.convertBase64UrlToBlob = function (t) {
- 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)
- return new Blob([A], { type: i })
- }),
- (e.strEascpeLen = function (t) {
- for (var e = t, i = e.length, n = 0; n < i; n++) {
- ~escape(e.substr(n, 1)).indexOf('%u') && i++
- }
- return i
- })
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- o =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- C =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var I = i(2),
- s = C(i(32)),
- a = i(0),
- l = i(3),
- u = (function (t) {
- function e(i) {
- var n = i.minWidth,
- g = void 0 === n ? 0.1 : n,
- o = i.deleteWidth,
- C = void 0 === o ? 0.05 : o,
- I = i.show,
- a = void 0 === I || I,
- l = r(i, ['minWidth', 'deleteWidth', 'show']),
- u = t.call(this, A(A({}, l), { show: a })) || this
- return (
- (u.zIndex = 1),
- (u.linePoints = u.linePoints.map(function (t) {
- var e = new s.default(A(A({}, t), { renderer: u.renderer }), u.attachment)
- return (
- (e.click = function () {
- return u.changeSelect(!0)
- }),
- e
- )
- })),
- (u.minWidth = g),
- (u.deleteWidth = C),
- u.real.setAttribute('class', 'variable'),
- e.attaArch.get(u.attachment)
- ? e.attaArch.get(u.attachment).push(u)
- : e.attaArch.set(u.attachment, [u]),
- u.attachment.update(),
- u
- )
- }
- return (
- g(e, t),
- (e.prototype.setAttachment = function (t) {
- if (
- (void 0 === t && (t = this.attachment),
- console.error('set new attach'),
- this.attachment !== t)
- ) {
- var i = e.attaArch.get(this.attachment),
- n = e.attaArch.get(t) || e.attaArch.set(t, []).get(t)
- i.splice(i.indexOf(this), 1),
- n.push(this),
- this.linePoints.forEach(function (e) {
- e.line = t
- }),
- (this.attachment = t)
- }
- }),
- (e.prototype.checkPointBorder = function (t, e) {
- return (
- 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
- )
- }),
- (e.prototype.checkPoint = function (t, e) {
- return void 0 === e && (e = this.attachment), !a.isContainPoint(e, t)
- }),
- (e.prototype.checkWidth = function (t) {
- return void 0 === t && (t = this.linePoints), a.lineDis({ points: t }) < this.minWidth
- }),
- (e.prototype.checkPointOverlapAttaArch = function (t) {
- return (
- void 0 === t && (t = e.attaArch.get(this.attachment)),
- !(t.length <= 1) &&
- t.some(function (e) {
- return t.some(function (t) {
- return (
- e !== t &&
- (a.isContainPoint({ points: t.linePoints }, e.linePoints[0]) ||
- a.isContainPoint({ points: t.linePoints }, e.linePoints[1]))
- )
- })
- })
- )
- }),
- (e.prototype.checkLineAllPoint = function (t, i) {
- return (
- void 0 === t && (t = e.attaArch.get(this.attachment)),
- void 0 === i && (i = this.attachment),
- 0 !== t.length &&
- t.some(function (t) {
- return (
- !a.isContainPoint(i, t.linePoints[0]) || !a.isContainPoint(i, t.linePoints[1])
- )
- })
- )
- }),
- (e.prototype.getLineNewAll = function (t, i) {
- void 0 === t && (t = this.linePoints), void 0 === i && (i = this)
- var n = o(e.attaArch.get(this.attachment))
- return n.splice(n.indexOf(i), 1, { linePoints: t }), n
- }),
- (e.prototype.qualified = function (t, e) {
- return (
- void 0 === t && (t = this.linePoints),
- void 0 === e && (e = this.attachment),
- !(
- this.checkPointBorder(t[0], e) ||
- this.checkPointBorder(t[0], e) ||
- this.checkPoint(t[0], e) ||
- this.checkPoint(t[1], e) ||
- this.checkWidth(t)
- )
- )
- }),
- (e.prototype.lineChange = function (t, e) {
- var i = this
- void 0 === t && (t = this.attachment.points[0]), void 0 === e && (e = t)
- var n = e.x,
- g = e.y,
- r = this.attachment.points.findIndex(function (e) {
- return e === t
- }),
- o = {
- points:
- 0 === r
- ? [{ x: n, y: g }, this.attachment.points[1]]
- : [this.attachment.points[0], { x: n, y: g }]
- },
- C = a.lineDis({ points: [o.points[r], this.linePoints[0]] }),
- I = a.getDisPointLinePoints(o, o.points[r], C),
- l = I[0],
- u = I[1],
- c =
- a.lineDis({ points: [l, this.linePoints[0]] }) >
- a.lineDis({ points: [u, this.linePoints[0]] })
- ? u
- : l,
- h = a.lineDis({ points: [o.points[r], this.linePoints[1]] }),
- p = a.getDisPointLinePoints(o, o.points[r], h),
- d = p[0],
- f = p[1],
- y =
- a.lineDis({ points: [d, this.linePoints[1]] }) >
- a.lineDis({ points: [f, this.linePoints[1]] })
- ? f
- : d,
- v = (
- a.lineDis({ points: [this.linePoints[0], c] }) <
- a.lineDis({ points: [this.linePoints[0], y] })
- ? [c, y]
- : [y, c]
- ).map(function (t) {
- var e = s.default.prototype.getLineInsertPoint.call(
- A(A({}, i.linePoints[0]), { line: o }),
- t
- )
- return a.pointLineDis(i.attachment, e) > 0.1
- ? a.lineDis({ points: [i.attachment.points[0], e] }) <
- a.lineDis({ points: [i.attachment.points[1], e] })
- ? { x: i.attachment.points[0].x, y: i.attachment.points[0].y }
- : { x: i.attachment.points[1].x, y: i.attachment.points[1].y }
- : e
- })
- return { line: o, points: v }
- }),
- (e.prototype.pointChange = function (t, e) {
- var i = e.x,
- n = e.y
- return 0 ===
- this.linePoints.findIndex(function (e) {
- return e === t
- })
- ? [{ x: i, y: n }, this.linePoints[1]]
- : [this.linePoints[0], { x: i, y: n }]
- }),
- (e.prototype.lineChangeCheck = function (t, e, i) {
- return (
- this.qualified(t, e) &&
- !this.checkLineAllPoint(i, e) &&
- !this.checkPointOverlapAttaArch(i)
- )
- }),
- (e.prototype.intercept = function (t, i, n) {
- var g,
- A = this,
- r = i.x,
- o = i.y
- if (l.type.isUndefined(r) || l.type.isUndefined(o)) return !0
- if (
- (g = this.attachment.points.find(function (e) {
- return t.some(function (t) {
- return t === e
- })
- }))
- ) {
- var C = this.lineChange(g, { x: r, y: o }),
- I = C.points,
- s =
- (C.line,
- t.filter(function (t) {
- return t instanceof e && t.attachment.id === A.attachment.id
- }))
- return (
- (s = Array.from(new Set(s))),
- this.attachment.nextTick(function () {
- if (!A.attachment || !A.attachment.points) return A.destroy()
- var t = A.lineChange(g, { x: g.x, y: g.y }),
- e = t.points
- t.line
- e.forEach(function (t, e) {
- t && ((A.linePoints[e].x = t.x), (A.linePoints[e].y = t.y))
- }),
- A.nextTick(function () {
- A.linePoints &&
- A.linePoints.length &&
- a.lineDis({ points: A.linePoints }) <= A.deleteWidth &&
- A.destroy()
- })
- }),
- this.attachment.update(),
- { __points: I }
- )
- }
- t.findIndex(function (t) {
- return A.linePoints.some(function (e) {
- return e === t
- })
- })
- }),
- (e.prototype.dragEnd = function () {
- var t = this
- this.nextTick(function () {
- a.lineDis({ points: t.linePoints }) <= t.deleteWidth && t.destroy()
- })
- }),
- (e.prototype.destroy = function () {
- var i = e.attaArch.get(this.attachment)
- i &&
- (i.splice(i.indexOf(this), 1),
- console.log(this.linePoints[0], this),
- this.linePoints[0] && this.linePoints[0].destroy && this.linePoints[0].destroy(),
- this.linePoints[1] && this.linePoints[1].destroy && this.linePoints[1].destroy(),
- (this.attachment = null),
- (this.linePoints = null),
- (this.update = null),
- t.prototype.destroy.call(this),
- this.attachment.update())
- }),
- (e.attaArch = new Map()),
- e
- )
- })(I.CADElement)
- e.default = u
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__awaiter) ||
- function (t, e, i, n) {
- return new (i || (i = Promise))(function (g, A) {
- function r(t) {
- try {
- C(n.next(t))
- } catch (t) {
- A(t)
- }
- }
- function o(t) {
- try {
- C(n.throw(t))
- } catch (t) {
- A(t)
- }
- }
- function C(t) {
- var e
- t.done
- ? g(t.value)
- : ((e = t.value),
- e instanceof i
- ? e
- : new i(function (t) {
- t(e)
- })).then(r, o)
- }
- C((n = n.apply(t, e || [])).next())
- })
- },
- o =
- (this && this.__generator) ||
- function (t, e) {
- var i,
- n,
- g,
- A,
- r = {
- label: 0,
- sent: function () {
- if (1 & g[0]) throw g[1]
- return g[1]
- },
- trys: [],
- ops: []
- }
- return (
- (A = { next: o(0), throw: o(1), return: o(2) }),
- 'function' == typeof Symbol &&
- (A[Symbol.iterator] = function () {
- return this
- }),
- A
- )
- function o(A) {
- return function (o) {
- return (function (A) {
- if (i) throw new TypeError('Generator is already executing.')
- for (; r; )
- try {
- 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)
- )
- return g
- switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
- case 0:
- case 1:
- g = A
- break
- case 4:
- return r.label++, { value: A[1], done: !1 }
- case 5:
- r.label++, (n = A[1]), (A = [0])
- continue
- case 7:
- ;(A = r.ops.pop()), r.trys.pop()
- continue
- default:
- if (
- !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
- (6 === A[0] || 2 === A[0])
- ) {
- r = 0
- continue
- }
- if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
- r.label = A[1]
- break
- }
- if (6 === A[0] && r.label < g[1]) {
- ;(r.label = g[1]), (g = A)
- break
- }
- if (g && r.label < g[2]) {
- ;(r.label = g[2]), r.ops.push(A)
- break
- }
- g[2] && r.ops.pop(), r.trys.pop()
- continue
- }
- A = e.call(t, r)
- } catch (t) {
- ;(A = [6, t]), (n = 0)
- } finally {
- i = g = 0
- }
- if (5 & A[0]) throw A[1]
- return { value: A[0] ? A[1] : void 0, done: !0 }
- })([A, o])
- }
- }
- },
- C =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- I =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- s =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var a = s(i(6)),
- l = i(3),
- u = i(0),
- c = (function (t) {
- function e(i) {
- var n = i.hover,
- g = C(i, ['hover']),
- A = this
- if (!g.renderer) throw g
- return (
- n ||
- (n = {
- fillColor: e.Setting.get(g.renderer).fillColor,
- storkeColor: e.Setting.get(g.renderer).storkeColor
- }),
- ((A = t.call(this, g) || this).hover = n),
- (A.hover.r = A.hover.r || A.init.r),
- A.real.setAttribute('class', 'variable'),
- (A.adopt = !1),
- (A.disable = !1),
- (A.zIndex = 2),
- A
- )
- }
- return (
- g(e, t),
- (e.prototype.setHoverStyle = function () {
- ;(this.fillColor = this.hover.fillColor),
- (this.strokeWidth = this.hover.r),
- (this.storkeColor = this.hover.storkeColor)
- }),
- (e.prototype.setUnHoverStyle = function () {
- ;(this.fillColor = this.init.fillColor),
- (this.strokeWidth = this.init.strokeWidth),
- (this.storkeColor = this.init.storkeColor)
- }),
- (e.prototype.dragStart = function () {
- this.dragStartPoint = { x: this.x, y: this.y }
- }),
- (e.prototype.drag = function (t) {
- if (this.disable || (0 === t.x && 0 === t.y)) return !1
- ;(this.x = this.dragStartPoint.x + t.x * this.multiple),
- (this.y = this.dragStartPoint.y + t.y * this.multiple)
- }),
- (e.prototype.update = function () {
- var e = this
- t.prototype.update.call(this),
- this.renderer.processing.lines
- .filter(function (t) {
- return ~t.ele.points.indexOf(e)
- })
- .map(function (t) {
- return t.ele
- })
- .forEach(function (t) {
- t.showAngle = e.hover && e.fillColor === e.hover.fillColor
- })
- }),
- (e.prototype.intercept = function (t, e, i) {
- var n = this,
- g = e.x,
- r = e.y
- e.select
- if (l.type.isUndefined(g) || l.type.isUndefined(r)) return !0
- if (this.dragStartPoint) {
- for (
- var o,
- C = { x: g, y: r },
- s = this.renderer.processing.lines.map(function (t) {
- return t.ele
- }),
- a = s
- .filter(function (t) {
- return ~t.points.indexOf(n)
- })
- .map(function (t) {
- var e = t.points.indexOf(n),
- i = Number(!e),
- g = s.filter(function (e) {
- return ~e.points.indexOf(t.points[i]) && t !== e
- }),
- A = I(t.points)
- return (A[e] = C), I([{ points: A }], g)
- }),
- c = function (t) {
- var e = a[t]
- if (e.length < 2) return 'continue'
- var i = e.slice(1).map(function (t) {
- var i = u.getAngle(e[0], t)
- return i > 90 && (i = 180 - i), { line: t, angle: u.getAngle(e[0], t) }
- }),
- n = i
- .map(function (t) {
- return A(A({}, t), { angle: t.angle > 90 ? 180 - t.angle : t.angle })
- })
- .sort(function (t, e) {
- return t.angle - e.angle
- })
- if (n[0].angle <= 5) {
- var g = n[0].line
- o = u.getLinePoint(g, o || C)
- }
- var r = i.find(function (t) {
- var e = t.angle
- return e > 85 && e < 95 && 90 !== e
- })
- r &&
- (o = u.getVectorPosPoint(
- u.verticalLine(r.line),
- r.line.points.find(function (t) {
- return ~e[0].points.indexOf(t)
- }),
- o || C
- ))
- },
- h = 0;
- h < a.length;
- h++
- )
- c(h)
- return o
- }
- }),
- (e.prototype.dragEnd = function () {
- return r(this, void 0, void 0, function () {
- var t,
- e,
- n,
- g,
- A,
- r,
- C = this
- return o(this, function (o) {
- switch (o.label) {
- case 0:
- return (
- delete this.dragStartPoint,
- (t = i(4).default),
- (e = this).stopDragEnd || e.dragEnding
- ? [2]
- : ((e.dragEnding = !0),
- (n =
- e.__join_lines &&
- e.__join_lines.find(function (e) {
- return !(
- u.lineDis({ points: e.points }) > 0.1 ||
- (t.attaArch.get(e) && t.attaArch.get(e).length)
- )
- }))
- ? [4, n.judgeMerge()]
- : [3, 4])
- )
- case 1:
- return (g = o.sent())
- ? [
- 4,
- new Promise(function (t) {
- ;(g.adopt = !1),
- n.nextTick(function () {
- g.nextTick(function () {
- n.destroy(), n.destoryPoint(g), t()
- })
- })
- })
- ]
- : [3, 3]
- case 2:
- o.sent(), (o.label = 3)
- case 3:
- return [3, 8]
- case 4:
- ;(A = this.renderer.processing.lines
- .map(function (t) {
- return t.ele
- })
- .filter(function (t) {
- return ~t.points.indexOf(C)
- })),
- (r = 0),
- (o.label = 5)
- case 5:
- return r < A.length ? [4, A[r].judgePoint()] : [3, 8]
- case 6:
- o.sent(), (o.label = 7)
- case 7:
- return r++, [3, 5]
- case 8:
- return (e.dragEnding = !1), this.renderer.processing.depLines(), [2]
- }
- })
- })
- }),
- (e.Setting = new Map()),
- e
- )
- })(a.default)
- e.default = c
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var o = i(2),
- C = i(1),
- I = 1,
- s = (function (t) {
- function e(i) {
- var n = i.strokeWidth,
- g = void 0 === n ? 0 : n,
- o = i.r,
- C = void 0 === o ? 4 : o,
- I = i.r1,
- s = void 0 === I ? 4 : I,
- a = i.fillColor,
- l = i.storkeColor,
- u = r(i, ['strokeWidth', 'r', 'r1', 'fillColor', 'storkeColor']),
- c = this
- return (
- (a = a || e.Setting.get(u.renderer).fillColor),
- (l = l || e.Setting.get(u.renderer).storkeColor),
- ((c =
- t.call(this, A({ storkeColor: l, fillColor: a, r: C, r1: s, strokeWidth: g }, u)) ||
- this).init = { strokeWidth: g, r: C, r1: s, fillColor: a, storkeColor: l }),
- c.update(),
- c
- )
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- var t = document.createElementNS(C.SVGURI, 'ellipse')
- return t.setAttribute('_id', (I++).toString()), t
- }),
- (e.prototype.update = function () {
- var t = this.r * this.multiple,
- e = this.r1 * this.multiple,
- i = this.strokeWidth * this.multiple
- try {
- this.real.setAttribute('cx', this.x.toString()),
- this.real.setAttribute('cy', this.y.toString()),
- this.real.setAttribute('fill', this.fillColor),
- this.real.setAttribute('rx', t.toString()),
- this.real.setAttribute('ry', e.toString()),
- this.real.setAttribute('stroke-width', i.toString()),
- this.real.setAttribute('stroke', this.storkeColor)
- } catch (t) {
- console.error(this.x)
- }
- }),
- (e.prototype.destroy = function () {
- t.prototype.destroy.call(this)
- }),
- (e.fillColor = 'rgb(0, 200, 175)'),
- (e.storkeColor = 'green'),
- (e.Setting = new Map()),
- e
- )
- })(o.CADElement)
- e.default = s
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- o =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- C =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var I = i(1),
- s = C(i(5)),
- a = i(2),
- l = C(i(4)),
- u = i(3),
- c = i(0),
- h = (function (t) {
- function e(e) {
- var i = e.points,
- n = e.fill,
- g = void 0 === n ? 'rgba(0,0,0,0)' : n,
- o = e.stroke,
- C = void 0 === o ? 'rgba(255,255,255,0.5)' : o,
- I = e.width,
- a = void 0 === I ? 1 : I,
- l = e.hover,
- u = r(e, ['points', 'fill', 'stroke', 'width', 'hover']),
- h = this,
- p = [i[0], i[1]],
- d = i.slice(2).map(function (t) {
- return new s.default(A(A({}, t), { renderer: u.renderer }))
- }),
- f = { fill: g, stroke: C, width: a }
- return (
- (l =
- l ||
- A(A({}, f), {
- fill: 'rgba(243, 255, 0, 0.8)',
- strokeBorder: 'rgba(243, 255, 0, 0.8)'
- })),
- ((h =
- t.call(this, A(A({ linePoints: p, hover: l, otherPoints: d }, f), u)) ||
- this).points = h.linePoints.concat(h.otherPoints)),
- (h.selectLineIndex = -1),
- (h.init = f),
- (h.cacheVers = [
- c.lineVector({ points: [h.points[1], h.points[2]] }),
- c.lineVector({ points: [h.points[0], h.points[3]] })
- ]),
- (h.__enterHandle = function () {
- h.hasTriggerEvent() ||
- (~h.selectLineIndex && !h.select) ||
- Object.keys(h.hover).forEach(function (t) {
- return (h[t] = h.hover[t])
- })
- }),
- (h.__leaveHandle = function () {
- h.hasTriggerEvent() ||
- h.select ||
- Object.keys(h.init).forEach(function (t) {
- return (h[t] = h.init[t])
- })
- }),
- (h.__lineEnter = function (t) {
- h.hasTriggerEvent() ||
- ~h.selectLineIndex ||
- h.__draging ||
- ((h.selectLineIndex = h.lines.indexOf(t.target)), h.update())
- }),
- (h.__lineLeave = function (t) {
- h.hasTriggerEvent() || h.__draging || ((h.selectLineIndex = -1), h.update())
- }),
- (h.__lineClick = function (t) {
- return t.stopPropagation()
- }),
- h
- )
- }
- return (
- g(e, t),
- (e.prototype.updateFirstLinePoints = function () {
- this.firstLinePoints = this.attachment.points.map(function (t) {
- return { x: t.x, y: t.y }
- })
- }),
- (e.prototype.grentNode = function () {
- var t = this,
- e = document.createElementNS(I.SVGURI, 'g')
- return (
- (this.wrapPath = document.createElementNS(I.SVGURI, 'path')),
- (this.leftLine = document.createElementNS(I.SVGURI, 'path')),
- (this.rightLine = document.createElementNS(I.SVGURI, 'path')),
- (this.bottomLeft = document.createElementNS(I.SVGURI, 'path')),
- (this.topLine = document.createElementNS(I.SVGURI, 'path')),
- (this.overLine1 = document.createElementNS(I.SVGURI, 'path')),
- (this.overLine2 = document.createElementNS(I.SVGURI, 'path')),
- (this.lines = [
- this.leftLine,
- this.rightLine,
- this.topLine,
- this.overLine1,
- this.overLine2,
- this.bottomLeft
- ]),
- this.wrapPath.setAttribute('stroke', 'rgba(0,0,0,0)'),
- this.nextTick(function () {
- ;(t.points = t.linePoints.concat(t.otherPoints)),
- t.addEvent(),
- t.updateThickness(),
- t.updateFirstLinePoints()
- }),
- e.appendChild(this.overLine1),
- e.appendChild(this.overLine2),
- e.appendChild(this.wrapPath),
- e.appendChild(this.leftLine),
- e.appendChild(this.topLine),
- e.appendChild(this.rightLine),
- e.appendChild(this.bottomLeft),
- e
- )
- }),
- (e.prototype.update = function () {
- var t = this
- if (this.points) {
- var e = this.width * this.multiple
- this.lines.forEach(function (i) {
- i.setAttribute('stroke-width', e.toString()),
- i.setAttribute('stroke-linecap', 'round'),
- i.setAttribute('stroke', t.stroke)
- }),
- u.type.isNumber(this.hoverIndex)
- ? this.lines[this.hoverIndex].setAttribute('stroke', this.hover.strokeBorder)
- : (this.wrapPath.setAttribute('stroke-width', '0'),
- this.wrapPath.setAttribute('fill', this.fill),
- this.wrapPath.setAttribute(
- 'd',
- 'M ' +
- this.points
- .map(function (t) {
- return t.x + ' ' + t.y
- })
- .join(' L ')
- )),
- isNaN(this.points[0].x) ||
- (this.overLine1.setAttribute(
- 'd',
- 'M ' +
- this.points[0].x +
- ' ' +
- this.points[0].y +
- ' L ' +
- this.points[2].x +
- ' ' +
- this.points[2].y
- ),
- this.overLine2.setAttribute(
- 'd',
- 'M ' +
- this.points[3].x +
- ' ' +
- this.points[3].y +
- ' L ' +
- this.points[1].x +
- ' ' +
- this.points[1].y
- ),
- this.topLine.setAttribute(
- 'd',
- 'M ' +
- this.points[3].x +
- ' ' +
- this.points[3].y +
- ' L ' +
- this.points[2].x +
- ' ' +
- this.points[2].y
- ),
- this.leftLine.setAttribute(
- 'd',
- 'M ' +
- this.points[0].x +
- ' ' +
- this.points[0].y +
- ' L ' +
- this.points[3].x +
- ' ' +
- this.points[3].y
- ),
- this.rightLine.setAttribute(
- 'd',
- 'M ' +
- this.points[2].x +
- ' ' +
- this.points[2].y +
- ' L ' +
- this.points[1].x +
- ' ' +
- this.points[1].y
- ),
- this.bottomLeft.setAttribute(
- 'd',
- 'M ' +
- this.points[0].x +
- ' ' +
- this.points[0].y +
- ' L ' +
- this.points[1].x +
- ' ' +
- this.points[1].y
- ),
- ~this.selectLineIndex &&
- this.lines[this.selectLineIndex].setAttribute(
- 'stroke',
- this.hover.strokeBorder
- ),
- this.attachment.update())
- }
- }),
- (e.prototype.hasTriggerEvent = function () {
- return a.CADElement.examples.get(this.renderer).some(function (t) {
- return t.__draging
- })
- }),
- (e.prototype.wallSelect = function () {
- var t = this
- this.select
- ? Object.keys(this.hover).forEach(function (e) {
- return (t[e] = t.hover[e])
- })
- : Object.keys(this.init).forEach(function (e) {
- return (t[e] = t.init[e])
- })
- }),
- (e.prototype.addEvent = function () {
- var t = this
- this.wrapPath.addEventListener('mouseenter', this.__enterHandle, !1),
- this.wrapPath.addEventListener('mouseleave', this.__leaveHandle, !1),
- this.lines.forEach(function (e) {
- e.addEventListener('mouseenter', t.__lineEnter, !1),
- e.addEventListener('mouseleave', t.__lineLeave, !1),
- e.addEventListener('click', t.__lineClick, !1)
- })
- }),
- (e.prototype.updateThickness = function (t) {
- void 0 === t && (t = [this.points[0], this.points[3]]),
- (this.thickness = c.lineDis({ points: t }))
- }),
- (e.prototype.checkPeripheral = function (t) {
- return void 0 === t && (t = this.points), !0
- }),
- (e.prototype.getPeripheral = function (t) {
- void 0 === t && (t = this.points)
- var e = {
- x: this.firstLinePoints[0].x - this.attachment.points[0].x,
- y: this.firstLinePoints[0].y - this.attachment.points[0].y
- },
- i = {
- x: this.firstLinePoints[1].x - this.attachment.points[1].x,
- y: this.firstLinePoints[1].y - this.attachment.points[1].y
- },
- n = e.x || e.y ? e : i,
- g = { x: t[3].x + n.x, y: t[3].y + n.y },
- A = { x: t[2].x + n.x, y: t[2].y + n.y },
- r = { points: [t[0], t[1]] },
- C = c.getDisVerticalLinePoints(r, t[0], this.thickness).sort(function (t, e) {
- return c.lineDis({ points: [t, g] }) - c.lineDis({ points: [e, g] })
- })[0],
- I = c.getDisVerticalLinePoints(r, t[1], this.thickness).sort(function (t, e) {
- return c.lineDis({ points: [t, A] }) - c.lineDis({ points: [e, A] })
- })[0],
- s = c.getDisPointLinePoints({ points: [t[0], C] }, t[0], this.thickness),
- a = s[0],
- l = s[1]
- C = c.lineDis({ points: [a, t[3]] }) > c.lineDis({ points: [l, t[3]] }) ? l : a
- var u = c.getDisPointLinePoints({ points: [t[1], I] }, t[1], this.thickness),
- h = u[0],
- p = u[1],
- d = null
- return (
- c.lineDis({ points: [h, t[2]] }) > c.lineDis({ points: [p, t[2]] })
- ? ((I = p), (d = h))
- : ((I = h), (d = p)),
- Math.abs(c.lineDis({ points: [I, C] }) - c.lineDis({ points: [t[0], t[1]] })) >
- 0.01 && (I = d),
- ((t = o(t))[2] = I),
- (t[3] = C),
- this.checkPeripheral(t) ? [I, C] : []
- )
- }),
- (e.prototype.updatePeripheral = function (t) {
- void 0 === t && (t = this.points)
- var e = this.getPeripheral(t)
- return (
- (this.points[2].x = e[0].x),
- (this.points[2].y = e[0].y),
- (this.points[3].x = e[1].x),
- (this.points[3].y = e[1].y),
- (this.readyPoints = t.slice(0, 2).concat(e)),
- !0
- )
- }),
- (e.prototype.intercept = function (e, i, n) {
- var g,
- r,
- C,
- I,
- s = i.x,
- a = i.y
- if (u.type.isUndefined(s) || u.type.isUndefined(a)) return !0
- if (!1 === (g = t.prototype.intercept.call(this, e, { x: s, y: a }, n))) return g
- if (
- ((r = this.points.findIndex(function (t) {
- return e.some(function (e) {
- return e === t
- })
- })),
- (I = this.attachment.points.findIndex(function (t) {
- return (C = e.find(function (e) {
- return e === t
- }))
- })),
- !~r && C)
- ) {
- ;((h = [])[this.points.indexOf(this.linePoints[0])] = g.__points[0]),
- (h[this.points.indexOf(this.linePoints[1])] = g.__points[1]),
- h.push(this.points[2], this.points[3]),
- (this.firstLinePoints[I] = C)
- var l = this.getPeripheral(h)
- if (
- ((this.cacheVers = [
- c.lineVector({ points: [this.points[1], this.points[2]] }),
- c.lineVector({ points: [this.points[0], this.points[3]] })
- ]),
- 0 === l.length)
- )
- return !1
- } else {
- var h = o(this.points)
- if (!~r) return g
- if (((h[r] = A({}, n[e.indexOf(h[r])])), !(r < 2))) {
- var p,
- d = void 0,
- f = void 0,
- y = void 0,
- v = void 0,
- m = void 0
- 2 === r
- ? ((d = { points: [this.points[1], this.points[2]] }),
- (f = { points: [this.points[0], this.points[3]] }),
- (p = this.points[2]),
- (y = 2),
- (v = 3),
- (m = this.cacheVers[1]))
- : ((f = { points: [this.points[1], this.points[2]] }),
- (d = { points: [this.points[0], this.points[3]] }),
- (p = this.points[3]),
- (y = 3),
- (v = 2),
- (m = d),
- (m = this.cacheVers[0]))
- var b = c.lineVector(d)
- if (b.x - m.x < 0.01 && b.y - m.y < 0.01) {
- var x = c.getLinePoint(d, { x: s, y: a }),
- _ = c.getLinePoint(f, { x: s, y: a }),
- w = f.points[1].x + s - p.x,
- P = f.points[1].y + a - p.y,
- O = c.getLinePoint(f, { x: w, y: P }),
- S =
- Math.abs(this.moveLineDis - c.lineDis({ points: [x, _] })) >
- Math.abs(this.moveLineDis - c.lineDis({ points: [x, O] }))
- ? O
- : _
- ;(h[y] = x), (h[v] = S)
- }
- return (this.readyPoints = h), !0
- }
- if (!this.updatePeripheral(h)) return !1
- }
- return g
- }),
- (e.prototype.dragStart = function (t) {
- var e = this.lines.indexOf(t.target)
- ;(this.__index = e < 3 ? e : -1),
- (this.__startPoints = this.points.map(function (t) {
- return { x: t.x, y: t.y }
- }))
- }),
- (e.prototype.drag = function (t) {
- var e = t.x * this.multiple,
- i = t.y * this.multiple,
- n = ~this.__index ? [this.points[this.__index]] : this.linePoints,
- g = ~this.__index ? [this.__startPoints[this.__index]] : this.__startPoints
- if (this.__index < 2)
- n.forEach(function (t, n) {
- ;(t.x = g[n].x + e), (t.y = g[n].y + i)
- })
- else {
- var A = c.getLinePoint(
- { points: [this.points[0], this.points[3]] },
- { x: this.__startPoints[3].x + e, y: this.__startPoints[3].y + i }
- ),
- r = c.getLinePoint(
- { points: [this.points[1], this.points[2]] },
- { x: this.__startPoints[2].x + e, y: this.__startPoints[2].y + i }
- )
- this.checkPeripheral(
- this.points
- .slice(0, 2)
- .map(function (t) {
- return { x: t.x, y: t.y }
- })
- .concat([r, A])
- ) &&
- ((this.points[3].x = A.x),
- (this.points[3].y = A.y),
- (this.points[2].x = r.x),
- (this.points[2].y = r.y))
- }
- }),
- (e.prototype.dragEnd = function () {
- delete this.dragStartPoints,
- delete this.__index,
- this.updateThickness(),
- this.__leaveHandle(),
- this.__lineLeave(),
- t.prototype.dragEnd.call(this)
- }),
- (e.prototype.delEvent = function () {
- var t = this
- this.wrapPath.removeEventListener('mouseenter', this.__enterHandle, !1),
- this.wrapPath.removeEventListener('mouseleave', this.__leaveHandle, !1),
- this.lines.forEach(function (e) {
- e.removeEventListener('mouseenter', t.__lineEnter, !1),
- e.removeEventListener('mouseleave', t.__lineLeave, !1),
- e.removeEventListener('click', t.__lineClick, !1)
- })
- }),
- (e.prototype.destroy = function () {
- this.delEvent(), t.prototype.destroy.call(this)
- }),
- e
- )
- })(l.default)
- e.default = h
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- o =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- },
- C =
- (this && this.__importStar) ||
- function (t) {
- if (t && t.__esModule) return t
- var e = {}
- if (null != t) for (var i in t) Object.hasOwnProperty.call(t, i) && (e[i] = t[i])
- return (e.default = t), e
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var I = i(1),
- s = o(i(4)),
- a = i(0),
- l = { defaultIcon: C(i(34)), darkIcon: C(i(35)) },
- u = (function (t) {
- function e(e) {
- var i = e.points,
- n = e.fill,
- g = void 0 === n ? 'rgba(0,0,0,0)' : n,
- o = e.icon,
- C = void 0 === o ? 'defaultIcon' : o,
- I = e.stroke,
- s = void 0 === I ? 'rgba(255,255,255,0.5)' : I,
- a = e.outWidth,
- l = void 0 === a ? 1 : a,
- u = e.foorWidth,
- c = void 0 === u ? 6 : u,
- h = e.linecap,
- p = void 0 === h ? 'square' : h,
- d = e.foorColor,
- f = void 0 === d ? 'rgba(0,0,0,0)' : d,
- y = e.hover,
- v = e.within,
- m = void 0 === v ? 0 : v,
- b = e.start,
- x = void 0 !== b && b,
- _ = r(e, [
- 'points',
- 'fill',
- 'icon',
- 'stroke',
- 'outWidth',
- 'foorWidth',
- 'linecap',
- 'foorColor',
- 'hover',
- 'within',
- 'start'
- ]),
- w = this,
- P = { fill: g, stroke: s, outWidth: l, foorWidth: c, foorColor: f, linecap: p }
- return (
- (y = y || A(A({}, P), { fill: 'rgba(243, 255, 0, 0.8)' })),
- ((w =
- t.call(this, A(A({ linePoints: i, hover: y, within: m, start: x, icon: C }, P), _)) ||
- this).init = P),
- (w.showStart = !0),
- w
- )
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- var t = this,
- e = document.createElementNS(I.SVGURI, 'g')
- return (
- (this.arc = document.createElementNS(I.SVGURI, 'path')),
- (this.outLine = document.createElementNS(I.SVGURI, 'path')),
- (this.image = document.createElementNS(I.SVGURI, 'image')),
- e.appendChild(this.outLine),
- e.appendChild(this.arc),
- e.appendChild(this.image),
- this.nextTick(function () {
- t.linePoints &&
- (e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real))
- }),
- e
- )
- }),
- (e.prototype.getCalcPoint = function (t) {
- void 0 === t && (t = a.lineDis({ points: this.linePoints }))
- var e = this.linePoints[0]
- return a.getDisVectorPoints(a.verticalLine(this.attachment), e, t)[0]
- }),
- (e.prototype.click = function (e) {
- t.prototype.click.call(this, e), console.log(this.within)
- }),
- (e.prototype.getDrawArgs = function () {
- var t, e, i, n
- 0 === this.within || 2 === this.within
- ? ((i = (t = this.linePoints)[0]), (n = t[1]))
- : ((n = (e = this.linePoints)[0]), (i = e[1]))
- var g,
- A = a.lineDis({ points: this.linePoints }),
- r = a.getDisVerticalLinePoints(this.attachment, i, A),
- o = r[0],
- C = r[1],
- I = { x: 0, y: 0 },
- s = a.lineDis({ points: [o, I] }) < a.lineDis({ points: [C, I] })
- return [
- i,
- n,
- (g = 0 === this.within || 3 === this.within ? (s ? o : C) : s ? C : o),
- A,
- a.isClockWise([i, n, g])
- ]
- }),
- (e.prototype.update = function () {
- this.real.style.display = this.show ? 'initial' : 'none'
- var t = this.getDrawArgs(),
- e = t[0],
- i = t[1],
- n = t[2],
- g = t[3],
- A = t[4]
- if (isNaN(n.x)) this.destroy()
- else if (
- ((this.ctl = [n]),
- this.arc.setAttribute(
- 'd',
- 'M ' +
- e.x +
- ' ' +
- e.y +
- ' L ' +
- n.x +
- ' ' +
- n.y +
- ' A ' +
- g +
- ' ' +
- g +
- ' 0 0 ' +
- (A ? '1' : '0') +
- ' ' +
- i.x +
- ' ' +
- i.y +
- ' Z'
- ),
- this.arc.setAttribute('stroke-width', (this.outWidth * this.multiple).toString()),
- this.arc.setAttribute('stroke', this.stroke),
- this.arc.setAttribute('fill', this.fill),
- this.icon !== this.firstIcon &&
- ((this.image.href.baseVal = l[this.icon]), (this.firstIcon = this.icon)),
- this.outLine.setAttribute('stroke', this.foorColor),
- this.outLine.setAttribute('fill', this.fill),
- this.outLine.setAttribute(
- 'stroke-width',
- (this.foorWidth * this.multiple).toString()
- ),
- this.outLine.setAttribute('stroke-linecap', this.linecap),
- this.outLine.setAttribute(
- 'd',
- 'M ' +
- this.linePoints[0].x +
- ' ' +
- this.linePoints[0].y +
- ' L ' +
- this.linePoints[1].x +
- ' ' +
- this.linePoints[1].y
- ),
- this.attachment.update(),
- this.start && this.showStart)
- ) {
- var r = a.lineDis({ points: this.linePoints }),
- o = a.lineStretch({ points: this.linePoints }, r / 2).points,
- C = a.lineDis({ points: o })
- if (isNaN(C)) return
- var I = 4 * C,
- s = o[1],
- u = s === o[1] ? o[0] : o[1],
- c = a.getDisVerticalLinePoints({ points: this.linePoints }, s, I),
- h =
- a.lineDis({ points: [c[0], n] }) > a.lineDis({ points: [c[1], n] }) ? c[0] : c[1],
- p = a.getDisVerticalLinePoints({ points: this.linePoints }, u, I),
- d =
- a.lineDis({ points: [p[0], n] }) > a.lineDis({ points: [p[1], n] }) ? p[0] : p[1],
- f = a.faceCenter([s, h, d, u]),
- y = a.lineDeg({ points: [s, h] }) + 90
- this.image.setAttribute('width', C.toString()),
- this.image.setAttribute('height', I.toString()),
- this.image.setAttribute('x', (f.x - C / 2).toString()),
- this.image.setAttribute('y', (f.y - I / 2).toString()),
- this.image.setAttribute('transform', 'rotate(' + y + ', ' + f.x + ', ' + f.y + ')'),
- (this.image.style.display = 'block')
- } else this.image.style.display = 'none'
- }),
- (e.prototype.dragStart = function (t) {
- ;(this.__index =
- t.target === this.linePoints[0].real
- ? 0
- : t.target === this.linePoints[1].real
- ? 1
- : -1),
- (this.__startPoints = this.linePoints.map(function (t) {
- return { x: t.x, y: t.y }
- }))
- }),
- (e.prototype.drag = function (t) {
- var e = this,
- i = ~this.__index ? [this.linePoints[this.__index]] : this.linePoints,
- n = ~this.__index ? [this.__startPoints[this.__index]] : this.__startPoints
- i.forEach(function (i, g) {
- ;(i.x = n[g].x + t.x * e.multiple), (i.y = n[g].y + t.y * e.multiple)
- })
- }),
- (e.prototype.dragEnd = function () {
- delete this.dragStartPoints, delete this.__index, t.prototype.dragEnd.call(this)
- }),
- (e.prototype.setHoverStyle = function () {
- var t = this
- Object.keys(this.hover).forEach(function (e) {
- return (t[e] = t.hover[e])
- })
- }),
- (e.prototype.setUnHoverStyle = function () {
- var t = this
- Object.keys(this.init).forEach(function (e) {
- return (t[e] = t.init[e])
- })
- }),
- e
- )
- })(s.default)
- e.default = u
- },
- function (t, e, i) {
- var n =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var g = n(i(30)),
- A = {
- t: function (t, e) {
- for (var i = t.split('.'), n = g.default; i.length; ) n = n[i.shift()]
- return n
- }
- }
- e.i18n = A
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var o = i(2),
- C = i(1),
- I = (function (t) {
- function e(i) {
- var n = i.color,
- g = i.width,
- o = i.showAngle,
- C = void 0 !== o && o,
- I = i.linecap,
- s = void 0 === I ? 'square' : I,
- a = r(i, ['color', 'width', 'showAngle', 'linecap']),
- l = this
- return (
- (g = g || e.Setting.get(a.renderer).width),
- (n = n || e.Setting.get(a.renderer).color),
- ((l =
- t.call(this, A({ color: n, width: g, linecap: s, showAngle: C }, a)) || this).init = {
- color: n,
- width: g,
- linecap: s
- }),
- l
- )
- }
- return (
- g(e, t),
- (e.prototype.intercept = function (t, e, i) {
- return !0
- }),
- (e.prototype.grentNode = function () {
- return document.createElementNS(C.SVGURI, 'path')
- }),
- (e.prototype.update = function () {
- var t = this.width * this.multiple
- this.real.setAttribute('stroke', this.color),
- this.real.setAttribute('stroke-width', t.toString()),
- this.real.setAttribute('stroke-linecap', this.linecap),
- this.real.setAttribute(
- 'd',
- 'M ' +
- this.points[0].x +
- ' ' +
- this.points[0].y +
- ' L ' +
- this.points[1].x +
- ' ' +
- this.points[1].y
- )
- }),
- (e.Setting = new Map()),
- e
- )
- })(o.CADElement)
- e.default = I
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- o =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var C = o(i(12)),
- I = i(1),
- s = o(i(4)),
- a = i(0),
- l = (function (t) {
- function e(e) {
- var i = e.points,
- n = e.fill,
- g = void 0 === n ? 'rgba(0,0,0,0)' : n,
- o = e.seam,
- C = void 0 === o ? 'rgba(255,255,255,0)' : o,
- I = e.bgColor,
- s = void 0 === I ? 'rgba(255,255,255,0.5)' : I,
- a = e.width,
- l = void 0 === a ? 6 : a,
- u = e.stamWidth,
- c = void 0 === u ? 0.5 : u,
- h = e.hover,
- p = r(e, ['points', 'fill', 'seam', 'bgColor', 'width', 'stamWidth', 'hover']),
- d = this,
- f = { fill: g, seam: C, width: l, stamWidth: c }
- return (
- (h = h || A(A({}, f), { fill: 'rgba(243, 255, 0, 0.8)' })),
- ((d =
- t.call(this, A(A({ linePoints: i, bgColor: s, hover: h }, p), f)) || this).eleHover =
- !1),
- d
- )
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- var t = this,
- e = document.createElementNS(I.SVGURI, 'g')
- return (
- this.nextTick(function () {
- ;(t.outLine = new C.default({
- points: t.linePoints,
- width: t.width,
- color: t.fill,
- renderer: t.renderer
- })),
- (t.innerline = new C.default({
- points: t.linePoints,
- width: t.stamWidth,
- color: t.seam,
- renderer: t.renderer
- })),
- (t.outLine.click = t.innerline.click =
- function () {
- return t.changeSelect(!0)
- }),
- e.appendChild(t.outLine.real),
- e.appendChild(t.innerline.real),
- e.appendChild(t.linePoints[0].real),
- e.appendChild(t.linePoints[1].real),
- t.interceptUpdateStyle(),
- t.outLine.update(),
- t.innerline.update()
- }),
- (this.clip1 = document.createElementNS(I.SVGURI, 'path')),
- (this.clip2 = document.createElementNS(I.SVGURI, 'path')),
- (this.clip3 = document.createElementNS(I.SVGURI, 'path')),
- (this.clip4 = document.createElementNS(I.SVGURI, 'path')),
- e.appendChild(this.clip1),
- e.appendChild(this.clip2),
- e.appendChild(this.clip3),
- e.appendChild(this.clip4),
- e
- )
- }),
- (e.prototype.getStyle = function () {
- return this.eleHover || this.select
- ? this.hover
- : { width: this.width, fill: this.fill, seam: this.seam, stamWidth: this.stamWidth }
- }),
- (e.prototype.interceptUpdateStyle = function () {
- var t = this,
- e = this.outLine.intercept,
- i = this.innerline.intercept
- ;(this.outLine.intercept = function (i, n) {
- var g = i[0],
- A = n.width,
- r = n.color
- if (g === t.outLine && (A || r)) {
- var o = t.getStyle()
- return { width: o.width, color: o.fill }
- }
- return e.call(t)
- }),
- (this.innerline.intercept = function (e, n) {
- var g = e[0],
- A = n.width,
- r = n.color
- if (g === t.innerline && (A || r)) {
- var o = t.getStyle()
- return { width: o.stamWidth, color: o.seam }
- }
- return i.call(t)
- })
- }),
- (e.prototype.update = function () {
- this.outLine &&
- ((this.outLine.width = this.outLine.width + 1e-8),
- (this.innerline.width = this.innerline.width + 1e-8))
- var t = a.getDisVerticalLinePoints(
- this.attachment,
- this.linePoints[0],
- 0.4 * this.width * this.multiple
- ),
- e = t[0],
- i = t[1],
- n = a.getDisVerticalLinePoints(
- this.attachment,
- this.linePoints[1],
- 0.4 * this.width * this.multiple
- ),
- g = n[0],
- A = n[1],
- r = a.getDisVerticalLinePoints(
- this.attachment,
- this.linePoints[0],
- 0.1 * this.width * this.multiple
- ),
- o = r[0],
- C = r[1],
- I = a.getDisVerticalLinePoints(
- this.attachment,
- this.linePoints[1],
- 0.1 * this.width * this.multiple
- ),
- s = I[0],
- l = I[1]
- isNaN(e.x) ||
- (this.clip1.setAttribute('stroke-width', this.multiple.toString()),
- this.clip1.setAttribute('d', 'M ' + e.x + ' ' + e.y + ' L ' + g.x + ' ' + g.y),
- this.clip2.setAttribute('stroke-width', this.multiple.toString()),
- this.clip2.setAttribute('d', 'M ' + i.x + ' ' + i.y + ' L ' + A.x + ' ' + A.y),
- this.clip3.setAttribute('stroke-width', this.multiple.toString()),
- this.clip3.setAttribute('d', 'M ' + o.x + ' ' + o.y + ' L ' + s.x + ' ' + s.y),
- this.clip4.setAttribute('stroke-width', this.multiple.toString()),
- this.clip4.setAttribute('d', 'M ' + C.x + ' ' + C.y + ' L ' + l.x + ' ' + l.y),
- this.clip1.setAttribute('stroke', this.bgColor),
- this.clip2.setAttribute('stroke', this.bgColor),
- this.clip3.setAttribute('stroke', this.bgColor),
- this.clip4.setAttribute('stroke', this.bgColor),
- this.attachment.update())
- }),
- (e.prototype.wallSelect = function () {
- this.update && this.update()
- }),
- (e.prototype.enter = function () {
- ;(this.eleHover = !0), this.update()
- }),
- (e.prototype.leave = function () {
- ;(this.eleHover = !1), this.update()
- }),
- (e.prototype.drag = function (t) {}),
- e
- )
- })(s.default)
- e.default = l
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- o =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var C = (function (t) {
- function e(e) {
- var i = e.hover,
- n = e.color,
- g = void 0 === n ? '#fff' : n,
- o = e.width,
- C = void 0 === o ? 3 : o,
- I = e.linecap,
- s = r(e, ['hover', 'color', 'width', 'linecap']),
- a = this,
- l = { color: g, width: C, linecap: I }
- return (
- (i = i || A(A({}, l), { color: 'rgba(243, 255, 0, 0.8)' })),
- ((a = t.call(this, A({ width: C, color: g }, s)) || this).hover = i),
- (a.init = l),
- (a.disable = !1),
- a.real.setAttribute('class', 'variable'),
- a
- )
- }
- return (
- g(e, t),
- (e.prototype.setHoverStyle = function () {
- var t = this
- console.log(this.hover),
- Object.keys(this.hover).forEach(function (e) {
- return (t[e] = t.hover[e])
- })
- }),
- (e.prototype.setUnHoverStyle = function () {
- var t = this
- Object.keys(this.init).forEach(function (e) {
- return (t[e] = t.init[e])
- })
- }),
- (e.prototype.dragStart = function () {
- this.dragStartPoints = this.points.map(function (t) {
- return { x: t.x, y: t.y }
- })
- }),
- (e.prototype.drag = function (t) {
- var e = this
- if (this.disable) return !1
- this.points.forEach(function (i, n) {
- ;(i.x = e.dragStartPoints[n].x + t.x * e.multiple),
- (i.y = e.dragStartPoints[n].y + t.y * e.multiple)
- })
- }),
- (e.prototype.dragEnd = function () {
- delete this.dragStartPoints
- }),
- e
- )
- })(o(i(10)).default)
- e.default = C
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- o =
- (this && this.__spreadArrays,
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- })
- Object.defineProperty(e, '__esModule', { value: !0 })
- var C = i(2),
- I = o(i(5)),
- s = i(0),
- a = i(3),
- l = i(1),
- u = o(i(12)),
- c = (function (t) {
- function e(e) {
- var i = e.minWidth,
- n = void 0 === i ? 0.1 : i,
- g = e.points,
- o = e.renderer,
- C = e.top,
- a = e.bottom,
- l = e.angle,
- c = void 0 === l ? 0 : l,
- h = e.stroke,
- p = void 0 === h ? 'rgba(255,255,255,0.5)' : h,
- d = e.width,
- f = void 0 === d ? 1 : d,
- y = r(e, [
- 'minWidth',
- 'points',
- 'renderer',
- 'top',
- 'bottom',
- 'angle',
- 'stroke',
- 'width'
- ]),
- v = this,
- m = g.map(function (t) {
- return new I.default(A(A({}, t), { renderer: o }))
- }),
- b = m.map(function (t, e) {
- return new u.default({
- points: [m[e], m[e === m.length - 1 ? 0 : e + 1]],
- renderer: o,
- width: f,
- color: p
- })
- })
- ;((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),
- (v.points = m),
- (v.zIndex = 1),
- (v.minWidth = n),
- (v.stop = !0)
- var x = []
- return (
- Object.defineProperty(v, 'movePoints', {
- get: function () {
- return x
- },
- set: function (t) {
- ;(x = t),
- t && t.length >= 2
- ? (this.moveLineDis = s.lineDis({ points: x }))
- : delete this.moveLineDis
- }
- }),
- v.real.setAttribute('class', 'variable'),
- Object.defineProperty(v, 'top', {
- get: function () {
- return C
- },
- set: function (t) {
- ;(C = t), this.wallPos && this.wallPos()
- }
- }),
- Object.defineProperty(v, 'bottom', {
- get: function () {
- return a
- },
- set: function (t) {
- ;(a = t), this.wallPos && this.wallPos()
- }
- }),
- v
- )
- }
- return (
- g(e, t),
- (e.prototype.setHoverStyle = function () {
- this.fill = 'rgba(243, 255, 0, 0.8)'
- }),
- (e.prototype.setUnHoverStyle = function () {
- this.fill = 'rgba(243, 255, 0, 0)'
- }),
- (e.prototype.rotate = function (t) {
- var e = this
- if (t === this.angle) return !1
- var i = s.faceRotate(this.points, t - this.angle)
- return (
- !!this.check(i) &&
- ((this.stop = !1),
- this.points.forEach(function (t, e) {
- ;(t.x = i[e].x), (t.y = i[e].y)
- }),
- this.nextTick(function () {
- return (e.stop = !0)
- }),
- !0)
- )
- }),
- (e.prototype.grentNode = function () {
- var t = this,
- e = document.createElementNS(l.SVGURI, 'g')
- return (
- (this.wrapPath = document.createElementNS(l.SVGURI, 'path')),
- e.appendChild(this.wrapPath),
- this.nextTick(function () {
- t.lines.forEach(function (i) {
- ;(i.changeSelect = function (e) {
- e && t.changeSelect(e)
- }),
- i.update(),
- e.appendChild(i.real)
- })
- }),
- e
- )
- }),
- (e.prototype.update = function () {
- var t = this
- this.wrapPath &&
- (this.wrapPath.setAttribute('stroke-width', (this.width * this.multiple).toString()),
- this.wrapPath.setAttribute(
- 'd',
- 'M ' +
- this.points
- .map(function (t) {
- return t.x + ' ' + t.y
- })
- .join(' L ') +
- ' z'
- ),
- this.wrapPath.setAttribute('fill', this.fill),
- this.wrapPath.setAttribute('stroke', this.stroke)),
- this.lines.forEach(function (e) {
- e.real.setAttribute('stroke', t.stroke)
- })
- }),
- (e.prototype.checkWidth = function (t) {
- var e = this
- return (
- void 0 === t && (t = this.points),
- !t.some(function (i, n) {
- var g = t[n === t.length - 1 ? 0 : n + 1]
- return s.lineDis({ points: [i, g] }) <= e.minWidth
- })
- )
- }),
- (e.prototype.qualified = function (t, e) {
- void 0 === t && (t = this.points), void 0 === e && (e = this.room)
- var i = this.renderer.processing.getRoomEles(e)
- return (
- !!s.isFaceContain(i.ground, t) &&
- !i.hole.some(function (e) {
- return s.isFaceIntersect(e, t) || s.isFaceContain(e, t) || s.isFaceContain(t, e)
- })
- )
- }),
- (e.prototype.check = function (t) {
- return void 0 === t && (t = this.points), this.checkWidth(t)
- }),
- (e.prototype.intercept = function (t, e, i) {
- e.x, e.y
- var n = e.angle
- return !a.type.isNumber(n) || this.rotate(n)
- }),
- (e.prototype.directUpdate = function (t) {
- var e = this
- t.forEach(function (t, i) {
- ;(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()
- }),
- this.lines.forEach(function (t) {
- t.update()
- }),
- this.update(),
- this.wallPos && this.wallPos(),
- this.fromAsync && this.fromAsync()
- }),
- (e.prototype.dragStart = function (t) {
- if (
- this.lines.some(function (e) {
- return e.real === t.target
- })
- ) {
- var e = this.lines.find(function (e) {
- return e.real === t.target
- })
- this.moveLineDis = s.lineDis(e)
- } else
- this.initPoints = this.points.map(function (t) {
- return { x: t.x, y: t.y }
- })
- }),
- (e.prototype.drag = function (t) {
- var e = this
- if (this.initPoints) {
- this.stop = !1
- var i = this.points.map(function (i, n) {
- return {
- x: e.initPoints[n].x + t.x * e.multiple,
- y: e.initPoints[n].y + t.y * e.multiple
- }
- })
- setTimeout(function () {
- e.directUpdate(i)
- })
- }
- }),
- (e.prototype.dragEnd = function () {
- var t = this
- this.nextTick(function () {
- ;(t.stop = !0), delete t.moveLineDis
- }),
- delete this.initPoints
- }),
- (e.prototype.destroy = function () {
- this.points.forEach(function (t) {
- return t.destroy()
- }),
- (this.room = null),
- (this.points = null),
- (this.update = null),
- t.prototype.destroy.call(this)
- }),
- e
- )
- })(C.CADElement)
- e.default = c
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__awaiter) ||
- function (t, e, i, n) {
- return new (i || (i = Promise))(function (g, A) {
- function r(t) {
- try {
- C(n.next(t))
- } catch (t) {
- A(t)
- }
- }
- function o(t) {
- try {
- C(n.throw(t))
- } catch (t) {
- A(t)
- }
- }
- function C(t) {
- var e
- t.done
- ? g(t.value)
- : ((e = t.value),
- e instanceof i
- ? e
- : new i(function (t) {
- t(e)
- })).then(r, o)
- }
- C((n = n.apply(t, e || [])).next())
- })
- },
- o =
- (this && this.__generator) ||
- function (t, e) {
- var i,
- n,
- g,
- A,
- r = {
- label: 0,
- sent: function () {
- if (1 & g[0]) throw g[1]
- return g[1]
- },
- trys: [],
- ops: []
- }
- return (
- (A = { next: o(0), throw: o(1), return: o(2) }),
- 'function' == typeof Symbol &&
- (A[Symbol.iterator] = function () {
- return this
- }),
- A
- )
- function o(A) {
- return function (o) {
- return (function (A) {
- if (i) throw new TypeError('Generator is already executing.')
- for (; r; )
- try {
- 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)
- )
- return g
- switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
- case 0:
- case 1:
- g = A
- break
- case 4:
- return r.label++, { value: A[1], done: !1 }
- case 5:
- r.label++, (n = A[1]), (A = [0])
- continue
- case 7:
- ;(A = r.ops.pop()), r.trys.pop()
- continue
- default:
- if (
- !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
- (6 === A[0] || 2 === A[0])
- ) {
- r = 0
- continue
- }
- if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
- r.label = A[1]
- break
- }
- if (6 === A[0] && r.label < g[1]) {
- ;(r.label = g[1]), (g = A)
- break
- }
- if (g && r.label < g[2]) {
- ;(r.label = g[2]), r.ops.push(A)
- break
- }
- g[2] && r.ops.pop(), r.trys.pop()
- continue
- }
- A = e.call(t, r)
- } catch (t) {
- ;(A = [6, t]), (n = 0)
- } finally {
- i = g = 0
- }
- if (5 & A[0]) throw A[1]
- return { value: A[0] ? A[1] : void 0, done: !0 }
- })([A, o])
- }
- }
- },
- C =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- I =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var s = I(i(33)),
- a = I(i(4)),
- l = I(i(7)),
- u = i(1),
- c = i(0),
- h = (function (t) {
- function e() {
- return (null !== t && t.apply(this, arguments)) || this
- }
- return (
- g(e, t),
- (e.prototype.setHoverStyle = function () {
- ;(this.color = this.hover.color),
- (this.width = this.hover.width),
- (this.linecap = this.hover.linecap)
- }),
- (e.prototype.setUnHoverStyle = function () {
- ;(this.color = this.init.color),
- (this.width = this.init.width),
- (this.linecap = this.init.linecap)
- }),
- (e.prototype.dragStart = function () {
- ;(this.clones = []),
- (this.bkpoints = this.points.map(function (t) {
- return { x: t.x, y: t.y }
- })),
- (this.startPoint = this.renderer.screenToRealPoint({ x: 0, y: 0 })),
- (this.bkverctor = c.lineVector(this))
- }),
- (e.prototype.drag = function (t) {
- var e = this.renderer.screenToRealPoint(t)
- this.exterior ||
- this.changePos({ x: e.x - this.startPoint.x, y: e.y - this.startPoint.y })
- }),
- (e.prototype.dragEnd = function () {
- return r(this, void 0, void 0, function () {
- var t,
- e = this
- return o(this, function (i) {
- return (
- (t = this.renderer.processing).lines.forEach(function (t) {
- t.ele.__state.direct = !1
- }),
- t.points.forEach(function (t) {
- t.ele.__state.direct = !1
- }),
- setTimeout(function () {
- e.renderer.processing.depLines()
- }, 500),
- [2]
- )
- })
- })
- }),
- (e.prototype.directUpdate = function (t) {
- this.__state.direct = !0
- var e = C(this.points)
- e.forEach(function (t) {
- return (t.__state.direct = !0)
- }),
- t(),
- (e = Array.from(new Set(e.concat(this.points)))).forEach(function (t) {
- return (t.__state.direct = !1)
- }),
- (this.__state.direct = !1),
- e.concat(e).forEach(function (t) {
- return t.update()
- }),
- this.wallLines
- .filter(function (t) {
- return t.points.some(function (t) {
- return ~e.indexOf(t)
- })
- })
- .forEach(function (t) {
- t.update(),
- t.points[0].wallPos && t.points[0].wallPos(),
- t.points[1].wallPos && t.points[1].wallPos(),
- t.wallPos && t.wallPos(),
- t.fromAsync && t.fromAsync(),
- t.updateJoin()
- })
- }),
- (e.prototype.grentNewJoinLine = function (t, e) {
- var i,
- n = this,
- g = this.renderer.processing,
- r = g.points.find(function (e) {
- return e.ele === t
- }),
- o = g.lines.find(function (t) {
- return t.ele === n
- }),
- I = g.addPoint(
- A(
- {
- id:
- Math.max.apply(
- Math,
- g.points.map(function (t) {
- return t.id
- })
- ) + 1
- },
- e
- )
- )
- g.data.vertex.push({ id: I.id, x: e.x, y: e.y })
- var s = o.ele,
- a = C(s.points)
- return (
- (a[s.points.indexOf(t)] = I.ele),
- s.directUpdate(function () {
- ;(s.points = a), s.listenPointDrag(a)
- }),
- s.update(),
- (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),
- this.wallLines
- .filter(function (t) {
- return ~t.points.indexOf(n.points[0]) || ~t.points.indexOf(n.points[1])
- })
- .forEach(function (t) {
- t.update(),
- t.points[0].wallPos && t.points[0].wallPos(),
- t.points[1].wallPos && t.points[1].wallPos(),
- t.wallPos && t.wallPos(),
- t.fromAsync && t.fromAsync()
- }),
- i
- )
- }),
- (e.prototype.getPointJoinLines = function (t) {
- for (
- var e = this,
- i = this.wallLines.filter(function (i) {
- return (
- ~i.points.indexOf(t) &&
- !(~e.points.indexOf(i.points[0]) && ~e.points.indexOf(i.points[1]))
- )
- }),
- n = [],
- g = function (t) {
- n.some(function (e) {
- return ~e.points.indexOf(i[t].points[0]) && ~e.points.indexOf(i[t].points[1])
- }) || n.push(i[t])
- },
- A = 0;
- A < i.length;
- A++
- )
- g(A)
- return n
- }),
- (e.prototype.updatePoint = function (t, e, i) {
- var n = this.getPointJoinLines(t),
- g = n[0],
- r = c.lineVector(this),
- o = Number(!this.points.indexOf(t)),
- C = this.points[o],
- I = !1
- if (g) {
- var s = c.lineVector(g) || g.lineVerctor,
- a = !1
- isNaN(s.x) && !isNaN(r.x) && (I = !0)
- var l = this.points.indexOf(t),
- u = n.every(function (t) {
- var e = c.lineVector(t)
- 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
- )
- }),
- 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)
- if (!~this.clones.indexOf(l) && (h || I)) {
- if (!I && n.length > 1)
- (g =
- n.find(function (t) {
- var e = c.lineVector(t)
- return e.x - r.x < 0.1 && e.y - r.y < 0.1
- }) ||
- n.find(function (t) {
- var e = c.lineVector(t),
- i = Math.abs(e.x - r.x),
- n = Math.abs(e.y - r.y)
- return (i > 0.1 && i < 0.9) || (n > 0.1 && n < 0.9)
- }) ||
- n[0]),
- (s = g.lineVector || c.lineVector(g))
- var p = A({}, e)
- Math.abs(r.x) > Math.abs(r.y) ? (p.x = t.x) : (p.y = t.y),
- I && (e = p),
- (p.x === t.x && p.y === t.y) ||
- ((g = this.grentNewJoinLine(t, p.x === t.x && p.y === t.y ? e : p)),
- (a = !0),
- this.clones.push(l),
- (t = g.points[Number(!g.points.indexOf(t))]),
- (s = c.lineVector(g)),
- (g.lineVerctor = s))
- }
- if (
- ((e = c.getVectorPosPoint(s, g.points[0], e)),
- (g.lineVector = s),
- !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))
- ) {
- var d = c.segmentsIntrFine(g, {
- points: [C, { x: C.x + 1e4 * this.bkverctor.x, y: C.y + 1e4 * this.bkverctor.y }]
- })
- d && (e = d)
- }
- } else {
- if (this.getPointJoinLines(C).length) {
- var f = this.points.indexOf(t)
- 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
- }
- }
- g = this
- }
- var y = c.lineVector({ points: [C, e] })
- return (
- !(
- isNaN(e.x) ||
- isNaN(e.y) ||
- (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))
- ) &&
- ((t.__state.direct = !0),
- (t.x = e.x),
- (t.y = e.y),
- t.update(),
- (t.__state.direct = !1),
- g)
- )
- }),
- (e.prototype.getVerPos = function (t) {
- var e = c.verticalLine(this)
- if (0 === e.x) return { x: 0, y: t.y }
- if (0 === e.y) return { x: t.x, y: 0 }
- var i = {
- points: [
- { x: -100 * e.x, y: -100 * e.y },
- { x: 100 * e.x, y: 100 * e.y }
- ]
- },
- n = c.pointLineDis(i, t),
- g = Math.sqrt(Math.pow(t.x, 2) + Math.pow(t.y, 2) - Math.pow(n, 2)),
- A = c.getDisPointLinePoints(i, { x: 0, y: 0 }, g),
- r = A[0],
- o = A[1]
- return c.lineDis({ points: [r, t] }) > c.lineDis({ points: [o, t] }) ? o : r
- }),
- (e.prototype.checkJoinArch = function () {
- var t = a.default.attaArch.get(this)
- if (!t || 0 === t.length) return !1
- var e = t.map(function (t) {
- return [t.linePoints[0].getLineInsertPoint(), t.linePoints[1].getLineInsertPoint()]
- })
- return t.some(function (t, i) {
- 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)
- )
- })
- }),
- (e.prototype.updateArchs = function () {
- var t = a.default.attaArch.get(this)
- if (t && 0 !== t.length) {
- var e = t.map(function (t) {
- return t.lineChange().points
- })
- t.forEach(function (t, i) {
- if (
- ((t.__state.direct = !0),
- (t.linePoints[0].__state.direct = !0),
- (t.linePoints[1].__state.direct = !0),
- (t.linePoints[0].x = e[i][0].x),
- (t.linePoints[0].y = e[i][0].y),
- (t.linePoints[1].x = e[i][1].x),
- (t.linePoints[1].y = e[i][1].y),
- t.linePoints[0].update(),
- t.linePoints[1].update(),
- (t.linePoints[0].__state.direct = !1),
- (t.linePoints[1].__state.direct = !1),
- t instanceof l.default)
- ) {
- var n = t.getPeripheral()
- ;(t.points[2].__state.direct = !0),
- (t.points[3].__state.direct = !0),
- (t.points[2].x = n[0].x),
- (t.points[2].y = n[0].y),
- (t.points[3].x = n[1].x),
- (t.points[3].y = n[1].y),
- t.points[2].update(),
- t.points[3].update(),
- (t.points[2].__state.direct = !1),
- (t.points[3].__state.direct = !1)
- }
- ;(t.__state.direct = !1), t.dragEnd(), t.update()
- })
- }
- }),
- (e.prototype.changePos = function (t) {
- var e = this
- ;(0 === t.x && 0 === t.y) || (t = this.getVerPos(t)),
- this.directUpdate(function () {
- e.points.map(function (t) {
- return { x: t.x, y: t.y }
- })
- var i = [0, 1],
- n = e.getPointJoinLines(e.points[0]),
- g = e.getPointJoinLines(e.points[1]),
- A =
- (e.points.map(function (t) {
- return { x: t.x, y: t.y }
- }),
- !0)
- if (0 === n.length) i = [1, 0]
- else if (0 !== g.length) {
- i =
- c.getPointCoordDistance(e.bkverctor, c.lineVector(n[0])) >
- c.getPointCoordDistance(e.bkverctor, c.lineVector(g[0]))
- ? [0, 1]
- : [1, 0]
- }
- i.forEach(function (i, n) {
- A &&
- (e.updatePoint(
- e.points[i],
- { x: e.bkpoints[i].x + t.x, y: e.bkpoints[i].y + t.y },
- !!n
- ) ||
- (A = !1))
- }),
- e.renderer.processing.lines
- .filter(function (t) {
- return (
- ~t.ele.points.indexOf(e.points[0]) || ~t.ele.points.indexOf(e.points[1])
- )
- })
- .forEach(function (t) {
- t.ele.updateArchs()
- })
- })
- }),
- (e.prototype.correct = function () {
- for (
- var t = this.renderer.processing,
- e = t.points.map(function (t) {
- return t.ele
- }),
- i = t.lines.map(function (t) {
- return t.ele
- }),
- n = i.filter(function (t) {
- return ~e.indexOf(t.points[0]) || ~e.indexOf(t.points[1])
- }),
- g = function (t, e, i) {
- return ~t.points.indexOf(e) && ~t.points.indexOf(i)
- },
- A = function (A) {
- var o = i[A],
- I = e.find(function (t) {
- return (
- !~o.points.indexOf(t) &&
- (c.lineDis({ points: [o.points[0], t] }) < 0.02 ||
- c.lineDis({ points: [o.points[1], t] }) < 0.02)
- )
- })
- if (!I) return 'continue'
- var s = 0
- if (
- i.some(function (t) {
- return g(t, I, o.points[0])
- })
- )
- s = 0
- else {
- if (
- !i.some(function (t) {
- return g(t, I, o.points[1])
- })
- )
- return 'continue'
- s = 1
- }
- var a = o.points[s]
- return (
- n
- .filter(function (t) {
- return ~t.points.indexOf(a)
- })
- .forEach(function (t) {
- var e = t.points.indexOf(a),
- i = t.points,
- n = C(i)
- ;(n[e] = I),
- t.directUpdate(function () {
- ;(t.points = n), t.listenPointDrag(n)
- })
- }),
- n
- .filter(function (t) {
- return ~t.points.indexOf(I) && ~t.points.indexOf(a)
- })
- .forEach(function (e) {
- t.lines.splice(
- t.lines.findIndex(function (t) {
- return t.ele === e
- }),
- 1
- ),
- e.destroy()
- }),
- a.destroy(),
- { value: r.correct() }
- )
- },
- r = this,
- o = 0;
- o < i.length;
- o++
- ) {
- var I = A(o)
- if ('object' == typeof I) return I.value
- }
- }),
- e
- )
- })(s.default)
- e.default = h
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- o =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var C = o(i(8)),
- I = i(1),
- s = i(0),
- a = (function (t) {
- function e(e) {
- var i = e.points,
- n = e.foorWidth,
- g = void 0 === n ? 6 : n,
- o = e.foorColor,
- C = void 0 === o ? 'rgba(255,255,255,0.5)' : o,
- I = e.clipColor,
- s = void 0 === I ? 'rgba(0,0,0,1)' : I,
- a = (e.linecap, e.within),
- l = void 0 === a ? 0 : a,
- u = r(e, ['points', 'foorWidth', 'foorColor', 'clipColor', 'linecap', 'within']),
- c = this
- return (
- (i[0].fillColor = 'rgba(0,0,0,0)'),
- (i[1].fillColor = 'rgba(0,0,0,0)'),
- ((c =
- t.call(this, A(A({}, u), { points: i, foorWidth: g, foorColor: C, within: l })) ||
- this).clipColor = s),
- c
- )
- }
- return (
- g(e, t),
- (e.prototype.setHoverStyle = function () {
- ;(this.clipColor = 'rgba(243, 255, 0, 0.8)'),
- (this.foorColor = 'rgba(243, 255, 0, 0.8)')
- }),
- (e.prototype.setUnHoverStyle = function () {
- ;(this.clipColor = 'rgba(0,0,0,1)'), (this.foorColor = 'rgba(255,255,255,0.5)')
- }),
- (e.prototype.grentNode = function () {
- var t = this,
- e = document.createElementNS(I.SVGURI, 'g')
- return (
- (this.clip1 = document.createElementNS(I.SVGURI, 'path')),
- e.appendChild(this.clip1),
- (this.clip2 = document.createElementNS(I.SVGURI, 'path')),
- e.appendChild(this.clip2),
- (this.path1 = document.createElementNS(I.SVGURI, 'path')),
- e.appendChild(this.path1),
- (this.path2 = document.createElementNS(I.SVGURI, 'path')),
- e.appendChild(this.path2),
- (this.left = document.createElementNS(I.SVGURI, 'rect')),
- this.left.setAttribute('width', '0.00001'),
- this.left.setAttribute('height', '0.00001'),
- e.appendChild(this.left),
- (this.right = document.createElementNS(I.SVGURI, 'rect')),
- this.right.setAttribute('width', '0.00001'),
- this.right.setAttribute('height', '0.00001'),
- e.appendChild(this.right),
- this.nextTick(function () {
- e.appendChild(t.linePoints[0].real),
- e.appendChild(t.linePoints[1].real),
- t.linePoints.forEach(function (e) {
- e.changeSelect = function (e) {
- e && t.changeSelect(e)
- }
- })
- }),
- e
- )
- }),
- (e.prototype.update = function () {
- var t,
- e,
- i,
- n,
- g = this.foorWidth * this.multiple,
- A = s.lineDis({ points: this.linePoints }),
- r = 2 * this.multiple,
- o = 0.6 * A
- if (
- (this.within
- ? ((i = (t = this.linePoints)[0]), (n = t[1]))
- : ((n = (e = this.linePoints)[0]), (i = e[1])),
- !isNaN(i.x))
- ) {
- var C = s.getLineDisSelectPoint({ points: this.linePoints }, i, o),
- I = s.getLineDisSelectPoint({ points: this.linePoints }, i, o - r),
- a = s.getLineDisSelectPoint({ points: this.linePoints }, n, o),
- l = s.getLineDisSelectPoint({ points: this.linePoints }, n, o - r),
- u = s.verticalLine({ points: this.linePoints }),
- c = g / 2,
- h = (g - c) / 2 - 1e-4 * this.multiple,
- p = i.x + u.x * h,
- d = i.y + u.y * h,
- f = C.x + u.x * h,
- y = C.y + u.y * h,
- v = I.x + u.x * h,
- m = I.y + u.y * h,
- b = n.x - u.x * h,
- x = n.y - u.y * h,
- _ = a.x - u.x * h,
- w = a.y - u.y * h,
- P = l.x - u.x * h,
- O = l.y - u.y * h
- this.path1.setAttribute('stroke', this.foorColor),
- this.path1.setAttribute('stroke-width', c.toString()),
- this.path1.setAttribute('d', 'M ' + p + ' ' + d + ' L ' + f + ' ' + y),
- this.clip1.setAttribute('stroke', this.clipColor),
- this.clip1.setAttribute(
- 'stroke-width',
- (c - this.bwithin * this.multiple).toString()
- ),
- this.clip1.setAttribute('d', 'M ' + p + ' ' + d + ' L ' + v + ' ' + m),
- this.path2.setAttribute('stroke', this.foorColor),
- this.path2.setAttribute('stroke-width', c.toString()),
- this.path2.setAttribute('d', 'M ' + b + ' ' + x + ' L ' + _ + ' ' + w),
- this.clip2.setAttribute('stroke', this.clipColor),
- this.clip2.setAttribute(
- 'stroke-width',
- (c - this.bwithin * this.multiple).toString()
- ),
- this.clip2.setAttribute('d', 'M ' + b + ' ' + x + ' L ' + P + ' ' + O),
- this.left.setAttribute('x', i.x.toString()),
- this.left.setAttribute('y', i.y.toString()),
- this.left.setAttribute('stroke-width', g.toString()),
- this.left.setAttribute('stroke', 'rgba(0,0,0,0)'),
- this.right.setAttribute('x', n.x.toString()),
- this.right.setAttribute('y', n.y.toString()),
- this.right.setAttribute('stroke-width', g.toString()),
- this.right.setAttribute('stroke', 'rgba(0,0,0,0)'),
- this.attachment.update()
- }
- }),
- e
- )
- })(C.default)
- e.default = a
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var r = A(i(8)),
- o = i(1),
- C = i(0),
- I = (function (t) {
- function e(e) {
- return t.call(this, e) || this
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- var t = this,
- e = document.createElementNS(o.SVGURI, 'g')
- return (
- (this.arc1 = document.createElementNS(o.SVGURI, 'path')),
- (this.outLine1 = document.createElementNS(o.SVGURI, 'path')),
- (this.arc2 = document.createElementNS(o.SVGURI, 'path')),
- (this.outLine2 = document.createElementNS(o.SVGURI, 'path')),
- e.appendChild(this.outLine1),
- e.appendChild(this.arc1),
- e.appendChild(this.outLine2),
- e.appendChild(this.arc2),
- this.nextTick(function () {
- e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real)
- }),
- e
- )
- }),
- (e.prototype.update = function () {
- var t
- this.real.style.display = this.show ? 'initial' : 'none'
- var e = C.lineCenter({ points: this.linePoints }),
- i = this.getDrawArgs.call({
- linePoints: [this.linePoints[0], e],
- within: 1 === this.within ? 2 : this.within,
- attachment: this.attachment
- }),
- n = i[0],
- g = i[1],
- A = i[2],
- r = i[3],
- o = i[4]
- isNaN(A.x)
- ? this.destroy()
- : (this.arc1.setAttribute(
- 'd',
- 'M ' +
- n.x +
- ' ' +
- n.y +
- ' L ' +
- A.x +
- ' ' +
- A.y +
- ' A ' +
- r +
- ' ' +
- r +
- ' 0 0 ' +
- (o ? '1' : '0') +
- ' ' +
- g.x +
- ' ' +
- g.y +
- ' Z'
- ),
- this.arc1.setAttribute('stroke-width', (this.outWidth * this.multiple).toString()),
- this.arc1.setAttribute('stroke', this.stroke),
- this.arc1.setAttribute('fill', this.fill),
- this.outLine1.setAttribute('stroke', this.foorColor),
- this.outLine1.setAttribute('fill', this.fill),
- this.outLine1.setAttribute(
- 'stroke-width',
- (this.foorWidth * this.multiple).toString()
- ),
- this.outLine1.setAttribute('stroke-linecap', this.linecap),
- this.outLine1.setAttribute(
- 'd',
- 'M ' +
- this.linePoints[0].x +
- ' ' +
- this.linePoints[0].y +
- ' L ' +
- this.linePoints[1].x +
- ' ' +
- this.linePoints[1].y
- ),
- (n = (t = this.getDrawArgs.call({
- linePoints: [this.linePoints[1], e],
- within: 1 === this.within ? 2 : this.within,
- attachment: this.attachment
- }))[0]),
- (g = t[1]),
- (A = t[2]),
- (r = t[3]),
- (o = t[4]),
- isNaN(A.x)
- ? this.destroy()
- : (this.arc2.setAttribute(
- 'd',
- 'M ' +
- n.x +
- ' ' +
- n.y +
- ' L ' +
- A.x +
- ' ' +
- A.y +
- ' A ' +
- r +
- ' ' +
- r +
- ' 0 0 ' +
- (o ? '1' : '0') +
- ' ' +
- g.x +
- ' ' +
- g.y +
- ' Z'
- ),
- this.arc2.setAttribute(
- 'stroke-width',
- (this.outWidth * this.multiple).toString()
- ),
- this.arc2.setAttribute('stroke', this.stroke),
- this.arc2.setAttribute('fill', this.fill),
- this.outLine2.setAttribute('stroke', this.foorColor),
- this.outLine2.setAttribute('fill', this.fill),
- this.outLine2.setAttribute(
- 'stroke-width',
- (this.foorWidth * this.multiple).toString()
- ),
- this.outLine2.setAttribute('stroke-linecap', this.linecap),
- this.outLine2.setAttribute(
- 'd',
- 'M ' +
- this.linePoints[0].x +
- ' ' +
- this.linePoints[0].y +
- ' L ' +
- this.linePoints[1].x +
- ' ' +
- this.linePoints[1].y
- ),
- this.attachment.update()))
- }),
- e
- )
- })(r.default)
- e.default = I
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var r = A(i(13)),
- o = i(1),
- C = (function (t) {
- function e() {
- return (null !== t && t.apply(this, arguments)) || this
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- var e = t.prototype.grentNode.call(this)
- return (
- (this.path1 = document.createElementNS(o.SVGURI, 'path')),
- (this.path2 = document.createElementNS(o.SVGURI, 'path')),
- this.path1.setAttribute('stroke', this.stroke),
- this.path2.setAttribute('stroke', this.stroke),
- e.insertBefore(this.path1, e.childNodes[0]),
- e.insertBefore(this.path2, e.childNodes[0]),
- e
- )
- }),
- (e.prototype.update = function () {
- t.prototype.update.call(this),
- this.path1.setAttribute('stroke-width', (this.width * this.multiple).toString()),
- this.path2.setAttribute('stroke-width', (this.width * this.multiple).toString()),
- this.path1.setAttribute(
- 'd',
- 'M ' +
- this.points[0].x +
- ' ' +
- this.points[0].y +
- ' L ' +
- this.points[2].x +
- ' ' +
- this.points[2].y
- ),
- this.path2.setAttribute(
- 'd',
- 'M ' +
- this.points[1].x +
- ' ' +
- this.points[1].y +
- ' L ' +
- this.points[3].x +
- ' ' +
- this.points[3].y
- ),
- this.path1.setAttribute('stroke', this.stroke),
- this.path2.setAttribute('stroke', this.stroke)
- }),
- e
- )
- })(r.default)
- e.default = C
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var r = A(i(13)),
- o = i(1),
- C = i(0),
- I = (function (t) {
- function e() {
- return (null !== t && t.apply(this, arguments)) || this
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- var e = t.prototype.grentNode.call(this)
- return (
- (this.g = document.createElementNS(o.SVGURI, 'g')),
- (this.path1 = document.createElementNS(o.SVGURI, 'path')),
- (this.path2 = document.createElementNS(o.SVGURI, 'path')),
- this.path1.setAttribute('stroke', this.stroke),
- this.path1.setAttribute('fill', 'rgba(0,0,0,0)'),
- this.path2.setAttribute('stroke', this.stroke),
- this.path2.setAttribute('fill', 'rgba(0,0,0,0)'),
- this.g.appendChild(this.path1),
- this.g.appendChild(this.path2),
- e.insertBefore(this.g, e.children[0]),
- e
- )
- }),
- (e.prototype.update = function () {
- t.prototype.update.call(this)
- var e = C.faceCenter(this.points),
- i = C.lineDis({ points: [this.points[1], this.points[2]] }) / this.multiple,
- n = C.lineDis({ points: [this.points[2], this.points[3]] }) / this.multiple,
- g = (n - 5 * this.width) / n,
- A = (i - 5 * this.width) / i
- ;(g = g <= 0 ? 1 : g),
- (A = A <= 0 ? 1 : A),
- this.g.setAttribute(
- 'transform',
- 'translate(' +
- e.x +
- ',' +
- e.y +
- ') scale(' +
- (g < A ? A : g) +
- ') translate(' +
- -e.x +
- ',' +
- -e.y +
- ')'
- ),
- this.path1.setAttribute(
- 'stroke-width',
- ((this.width * this.multiple) / (g < A ? A : g)).toString()
- ),
- this.path1.setAttribute(
- 'd',
- 'M ' +
- this.points
- .map(function (t) {
- return t.x + ' ' + t.y
- })
- .join(' L ') +
- ' Z'
- ),
- this.path2.setAttribute('stroke', this.stroke)
- var r = this.points[2],
- o = { points: [this.points[1], this.points[3]] },
- I = C.lineCenter(o),
- s = C.lineDis({ points: [I, r] }) * (1 / 3),
- a = C.getDisVerticalLinePoints(o, I, s),
- l = a[0],
- u = a[1],
- c = C.lineDis({ points: [r, l] }) > C.lineDis({ points: [r, u] }) ? u : l
- C.pointInside(this.points, c) || (c = C.lineCenter(o)),
- this.path2.setAttribute('stroke', this.stroke),
- this.path2.setAttribute('stroke-width', (this.width * this.multiple).toString()),
- this.path2.setAttribute(
- 'd',
- 'M ' +
- this.points[1].x +
- ' ' +
- this.points[1].y +
- ' L ' +
- c.x +
- ' ' +
- c.y +
- ' L ' +
- this.points[3].x +
- ' ' +
- this.points[3].y
- )
- }),
- e
- )
- })(r.default)
- e.default = I
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var o = i(2),
- C = i(1),
- I = i(9),
- s = (function (t) {
- function e(e) {
- var i = e.pos,
- n = e.renderer,
- g = e.fontSize,
- o = void 0 === g ? 12 : g,
- C = e.color,
- I = void 0 === C ? '#fff' : C,
- s = r(e, ['pos', 'renderer', 'fontSize', 'color']),
- a =
- t.call(this, A(A({}, s), { x: i.x, y: i.y, fontSize: o, renderer: n, color: I })) ||
- this
- return (a.zIndex = -1), a
- }
- return (
- g(e, t),
- (e.prototype.changeSelect = function (e) {
- t.prototype.changeSelect.call(this, e)
- }),
- (e.prototype.dragStart = function () {
- this.dragStartPoint = { x: this.x, y: this.y }
- }),
- (e.prototype.drag = function (t) {
- ;(this.x = this.dragStartPoint.x + t.x * this.multiple),
- (this.y = this.dragStartPoint.y + t.y * this.multiple)
- }),
- (e.prototype.grentNode = function () {
- var t = this,
- e = document.createElementNS(C.SVGURI, 'g')
- return (
- (this.titleNode = document.createElementNS(C.SVGURI, 'text')),
- this.titleNode.setAttribute('fill', '#fff'),
- this.titleNode.setAttribute('text-anchor', 'middle'),
- this.titleNode.setAttribute('dy', '.4em'),
- (this.contentNode = document.createElementNS(C.SVGURI, 'text')),
- this.contentNode.setAttribute('fill', '#fff'),
- this.contentNode.setAttribute('text-anchor', 'middle'),
- this.contentNode.setAttribute('dy', '.4em'),
- e.appendChild(this.titleNode),
- e.appendChild(this.contentNode),
- this.nextTick(function () {
- return t.update()
- }),
- e
- )
- }),
- (e.prototype.setHoverStyle = function () {}),
- (e.prototype.setUnHoverStyle = function () {}),
- (e.prototype.update = function () {
- var t = this.fontSize * this.multiple
- this.titleNode.setAttribute('x', this.x.toString()),
- this.titleNode.setAttribute('y', this.y.toString()),
- this.titleNode.setAttribute('font-size', t.toString()),
- (this.titleNode.style.display = this.show && this.showTitle ? 'inherit' : 'none'),
- (this.titleNode.textContent =
- this.title || I.i18n.t('modules.model.tagging_name_tips')),
- this.contentNode.setAttribute('x', this.x.toString()),
- this.contentNode.setAttribute('y', (this.y + t + t / 5).toString()),
- this.contentNode.setAttribute('font-size', t.toString()),
- (this.contentNode.style.display = this.show && this.showContent ? 'inherit' : 'none'),
- (this.contentNode.textContent = this.content),
- this.select
- ? (this.titleNode.setAttribute('fill', 'rgb(0, 200, 175)'),
- this.contentNode.setAttribute('fill', 'rgb(0, 200, 175)'))
- : (this.titleNode.setAttribute('fill', this.color),
- this.contentNode.setAttribute('fill', this.color))
- }),
- (e.prototype.destroy = function () {
- t.prototype.destroy.call(this)
- }),
- e
- )
- })(o.CADElement)
- e.default = s
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- o =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var C = i(1),
- I = o(i(4)),
- s = i(0),
- a = (function (t) {
- function e(e) {
- var i = e.points,
- n = e.width,
- g = void 0 === n ? 3 : n,
- o = r(e, ['points', 'width'])
- return (
- t.call(this, A({ linePoints: i, fill: 'rgba(255,255,255,0.5)', width: g }, o)) || this
- )
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- var t = this,
- e = document.createElementNS(C.SVGURI, 'g')
- return (
- (this.clip1 = document.createElementNS(C.SVGURI, 'path')),
- (this.clip2 = document.createElementNS(C.SVGURI, 'path')),
- (this.clip3 = document.createElementNS(C.SVGURI, 'path')),
- (this.clip4 = document.createElementNS(C.SVGURI, 'path')),
- (this.clip5 = document.createElementNS(C.SVGURI, 'path')),
- this.clip1.setAttribute('stroke', this.fill),
- this.clip2.setAttribute('stroke', this.fill),
- this.clip3.setAttribute('stroke', this.fill),
- this.clip4.setAttribute('stroke', this.fill),
- this.clip5.setAttribute('stroke', this.fill),
- e.appendChild(this.clip1),
- e.appendChild(this.clip2),
- e.appendChild(this.clip3),
- e.appendChild(this.clip4),
- e.appendChild(this.clip5),
- this.nextTick(function () {
- e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real)
- }),
- e
- )
- }),
- (e.prototype.setHoverStyle = function () {
- this.fill = 'rgba(243, 255, 0, 0.8)'
- }),
- (e.prototype.setUnHoverStyle = function () {
- this.fill = 'rgba(255,255,255,0.5)'
- }),
- (e.prototype.update = function () {
- var t = s.getDisVerticalLinePoints(
- this.attachment,
- this.linePoints[0],
- 0.4 * this.width * this.multiple
- ),
- e = t[0],
- i = t[1],
- n = s.getDisVerticalLinePoints(
- this.attachment,
- this.linePoints[1],
- 0.4 * this.width * this.multiple
- ),
- g = n[0],
- A = n[1],
- r = s.getDisVerticalLinePoints(
- this.attachment,
- this.linePoints[0],
- 0.15 * this.width * this.multiple
- ),
- o = r[0],
- C = r[1],
- I = s.getDisVerticalLinePoints(
- this.attachment,
- this.linePoints[1],
- 0.15 * this.width * this.multiple
- ),
- a = I[0],
- l = I[1],
- u = s.lineCenter({ points: [o, a] }),
- c = s.lineCenter({ points: [C, l] })
- isNaN(e.x) ||
- (this.clip1.setAttribute('stroke-width', this.multiple.toString()),
- this.clip1.setAttribute('d', 'M ' + e.x + ' ' + e.y + ' L ' + g.x + ' ' + g.y),
- this.clip2.setAttribute('stroke-width', this.multiple.toString()),
- this.clip2.setAttribute('d', 'M ' + i.x + ' ' + i.y + ' L ' + A.x + ' ' + A.y),
- this.clip3.setAttribute('stroke-width', this.multiple.toString()),
- this.clip3.setAttribute('d', 'M ' + o.x + ' ' + o.y + ' L ' + a.x + ' ' + a.y),
- this.clip4.setAttribute('stroke-width', this.multiple.toString()),
- this.clip4.setAttribute('d', 'M ' + C.x + ' ' + C.y + ' L ' + l.x + ' ' + l.y),
- this.clip5.setAttribute('stroke-width', (6 * this.multiple).toString()),
- this.clip5.setAttribute('d', 'M ' + u.x + ' ' + u.y + ' L ' + c.x + ' ' + c.y),
- this.clip1.setAttribute('stroke', this.fill),
- this.clip2.setAttribute('stroke', this.fill),
- this.clip3.setAttribute('stroke', this.fill),
- this.clip4.setAttribute('stroke', this.fill),
- this.clip5.setAttribute('stroke', this.fill),
- this.attachment.update())
- }),
- (e.prototype.dragStart = function (t) {
- ;(this.move =
- this.linePoints[0].real === t.target || this.linePoints[1].real === t.target),
- (this.dragStartPoints = this.linePoints.map(function (t) {
- return { x: t.x, y: t.y }
- }))
- }),
- (e.prototype.drag = function (t) {
- var e = this
- this.move ||
- this.linePoints.forEach(function (i, n) {
- ;(i.x = e.dragStartPoints[n].x + t.x * e.multiple),
- (i.y = e.dragStartPoints[n].y + t.y * e.multiple)
- })
- }),
- (e.prototype.dragEnd = function () {
- ;(this.move = !1), delete this.dragStartPoints
- }),
- e
- )
- })(I.default)
- e.default = a
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- o =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var C = i(1),
- I = o(i(4)),
- s = i(0),
- a = (function (t) {
- function e(e) {
- var i = e.points,
- n = e.within,
- g = void 0 === n ? 0 : n,
- o = e.width,
- C = void 0 === o ? 1 : o,
- I = r(e, ['points', 'within', 'width'])
- return (
- (i[0].fillColor = 'rgba(0,0,0,0)'),
- (i[1].fillColor = 'rgba(0,0,0,0)'),
- 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
- )
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- var t = this,
- e = document.createElementNS(C.SVGURI, 'g')
- return (
- (e.innerHTML =
- '\n <path class="ground-case-out" stroke="' +
- this.stroke +
- '" fill="rgba(0,0,0,0)"/>\n <path class="ground-case-in" stroke="' +
- this.stroke +
- '" 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 '),
- (this.out = e.querySelector('.ground-case-out')),
- (this.in = e.querySelector('.ground-case-in')),
- (this.left = e.querySelector('.ground-case-left')),
- (this.right = e.querySelector('.ground-case-right')),
- this.nextTick(function () {
- e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real)
- }),
- e
- )
- }),
- (e.prototype.setHoverStyle = function () {
- this.fill = 'rgba(243, 255, 0, 0.8)'
- }),
- (e.prototype.setUnHoverStyle = function () {
- this.fill = 'rgba(0,0,0,0)'
- }),
- (e.prototype.getOutInPath = function (t, e, i, n, g, A, r) {
- var o = this
- void 0 === A && (A = 0), void 0 === r && (r = 0)
- var C,
- I = i,
- a = s.getDisVerticalLinePoints(this.attachment, t, I),
- l = s.getDisVerticalLinePoints(this.attachment, e, I),
- u = { x: 0, y: 0 },
- c = s.lineDis({ points: [a[0], u] }) < s.lineDis({ points: [a[1], u] }),
- h = this.within ? (c ? a[1] : a[0]) : c ? a[0] : a[1]
- h
- ? (C = l[a.indexOf(h)])
- : (C = this.within
- ? l.find(function (t) {
- return o.rooms.find(function (e) {
- return !s.pointInside(e, t)
- })
- })
- : l.find(function (t) {
- return o.rooms.find(function (e) {
- return s.pointInside(e, t)
- })
- }))
- ? (h = a[l.indexOf(C)])
- : ((h = a[0]), (C = l[0])),
- (A = A || h),
- (r = r || C)
- var p = s.getDisVerticalLinePoints(this.attachment, t, g).sort(function (t, e) {
- return s.lineDis({ points: [A, t] }) - s.lineDis({ points: [A, e] })
- })[1]
- return [
- h,
- C,
- s.getDisVerticalLinePoints(this.attachment, e, g).sort(function (t, e) {
- return s.lineDis({ points: [r, t] }) - s.lineDis({ points: [r, e] })
- })[1],
- p,
- h
- ]
- }),
- (e.prototype.update = function () {
- var t = 3 * this.width * this.multiple,
- e = this.width * this.multiple,
- i = 0.4 * s.lineDis({ points: this.linePoints })
- i / this.multiple > 30 && (i = 30 * this.multiple)
- var n = this.linePoints[0],
- g = this.linePoints[1],
- A = s.getDisPointLinePoints(this.attachment, n, t),
- r = A[0],
- o = A[1],
- C = s.getDisPointLinePoints(this.attachment, g, t),
- I = C[0],
- a = C[1]
- if (
- ((n = s.lineDis({ points: [r, g] }) > s.lineDis({ points: [o, g] }) ? r : o),
- (g = s.lineDis({ points: [I, n] }) > s.lineDis({ points: [a, n] }) ? I : a),
- !isNaN(r.x))
- ) {
- this.left.setAttribute('stroke-width', t.toString()),
- this.left.setAttribute('x', this.linePoints[0].x.toString()),
- this.left.setAttribute('y', this.linePoints[0].y.toString()),
- this.right.setAttribute('stroke-width', t.toString()),
- this.right.setAttribute('x', this.linePoints[1].x.toString()),
- this.right.setAttribute('y', this.linePoints[1].y.toString())
- var l = this.getOutInPath(n, g, t, e, i)
- ;(this.ctl = [l[2], l[3]]),
- this.out.setAttribute('fill', this.fill),
- this.out.setAttribute('stroke-width', e.toString()),
- this.out.setAttribute('stroke', this.stroke),
- this.out.setAttribute(
- 'd',
- l
- .map(function (t, e) {
- return (e ? 'L ' : 'M ') + t.x + ' ' + t.y
- })
- .join(' ')
- )
- var u = s.getLineDisSelectPoint({ points: this.linePoints }, n, t),
- c = s.getLineDisSelectPoint({ points: this.linePoints }, g, t)
- this.in.setAttribute('fill', this.fill),
- this.in.setAttribute('stroke-width', e.toString()),
- this.in.setAttribute('stroke', this.stroke),
- this.in.setAttribute(
- 'd',
- this.getOutInPath(u, c, t, e, i - s.lineDis({ points: [u, n] }), l[0], l[1])
- .map(function (t, e) {
- return (e ? 'L ' : 'M ') + t.x + ' ' + t.y
- })
- .join(' ')
- ),
- this.attachment.update()
- }
- }),
- (e.prototype.dragStart = function (t) {
- ;(this.move =
- this.linePoints[0].real === t.target || this.linePoints[1].real === t.target),
- (this.dragStartPoints = this.linePoints.map(function (t) {
- return { x: t.x, y: t.y }
- }))
- }),
- (e.prototype.drag = function (t) {
- var e = this
- this.move ||
- this.linePoints.forEach(function (i, n) {
- ;(i.x = e.dragStartPoints[n].x + t.x * e.multiple),
- (i.y = e.dragStartPoints[n].y + t.y * e.multiple)
- })
- }),
- (e.prototype.dragEnd = function () {
- ;(this.move = !1), delete this.dragStartPoints
- }),
- e
- )
- })(I.default)
- e.default = a
- },
- function (t, e, i) {
- var n =
- (this && this.__assign) ||
- function () {
- return (n =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- g =
- (this && this.__awaiter) ||
- function (t, e, i, n) {
- return new (i || (i = Promise))(function (g, A) {
- function r(t) {
- try {
- C(n.next(t))
- } catch (t) {
- A(t)
- }
- }
- function o(t) {
- try {
- C(n.throw(t))
- } catch (t) {
- A(t)
- }
- }
- function C(t) {
- var e
- t.done
- ? g(t.value)
- : ((e = t.value),
- e instanceof i
- ? e
- : new i(function (t) {
- t(e)
- })).then(r, o)
- }
- C((n = n.apply(t, e || [])).next())
- })
- },
- A =
- (this && this.__generator) ||
- function (t, e) {
- var i,
- n,
- g,
- A,
- r = {
- label: 0,
- sent: function () {
- if (1 & g[0]) throw g[1]
- return g[1]
- },
- trys: [],
- ops: []
- }
- return (
- (A = { next: o(0), throw: o(1), return: o(2) }),
- 'function' == typeof Symbol &&
- (A[Symbol.iterator] = function () {
- return this
- }),
- A
- )
- function o(A) {
- return function (o) {
- return (function (A) {
- if (i) throw new TypeError('Generator is already executing.')
- for (; r; )
- try {
- 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)
- )
- return g
- switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
- case 0:
- case 1:
- g = A
- break
- case 4:
- return r.label++, { value: A[1], done: !1 }
- case 5:
- r.label++, (n = A[1]), (A = [0])
- continue
- case 7:
- ;(A = r.ops.pop()), r.trys.pop()
- continue
- default:
- if (
- !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
- (6 === A[0] || 2 === A[0])
- ) {
- r = 0
- continue
- }
- if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
- r.label = A[1]
- break
- }
- if (6 === A[0] && r.label < g[1]) {
- ;(r.label = g[1]), (g = A)
- break
- }
- if (g && r.label < g[2]) {
- ;(r.label = g[2]), r.ops.push(A)
- break
- }
- g[2] && r.ops.pop(), r.trys.pop()
- continue
- }
- A = e.call(t, r)
- } catch (t) {
- ;(A = [6, t]), (n = 0)
- } finally {
- i = g = 0
- }
- if (5 & A[0]) throw A[1]
- return { value: A[0] ? A[1] : void 0, done: !0 }
- })([A, o])
- }
- }
- },
- r =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- o =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var C = o(i(49)),
- I = o(i(5)),
- s = o(i(11)),
- a = o(i(8)),
- l = o(i(7)),
- u = o(i(20)),
- c = o(i(15)),
- h = o(i(21)),
- p = o(i(17)),
- d = o(i(18)),
- f = i(3),
- y = o(i(12)),
- v = o(i(14)),
- m = o(i(16)),
- b = o(i(19)),
- x = o(i(50))
- ;(e.roateDataY = function (t) {
- return (
- [
- (t = n(n({}, t), {
- vertex: t.vertex.map(function (t) {
- return n(n({}, t), { y: -t.y })
- }),
- window: r(t.window),
- column: r(t.column),
- door: r(t.door),
- groundCase: r(t.groundCase),
- slideDoor: r(t.slideDoor),
- bayCase: r(t.bayCase),
- tagging: r(t.tagging),
- furnColumn: r(t.furnColumn),
- furnFlue: r(t.furnFlue),
- doubleDoor: r(t.doubleDoor)
- })).window,
- t.column,
- t.door,
- t.slideDoor,
- t.tagging,
- t.groundCase,
- t.bayCase,
- t.furnColumn,
- t.furnFlue,
- t.doubleDoor
- ].forEach(function (t) {
- t.forEach(function (e, i) {
- t[i] = n(n({}, e), {
- pos: e.pos.map(function (t, e) {
- return e % 2 ? -t : t
- })
- })
- })
- }),
- t
- )
- }),
- (e.attchTransform = function (t) {
- ;(t.getData = function (i) {
- return (
- void 0 === i && (i = !1),
- {
- floors: t.processings.map(function (n) {
- var g = e.roateDataY(n.toData())
- return (g.dire = n.direction.angle), i && (g = x.default(g, t)), g
- })
- }
- )
- }),
- (t.loadData = function (i) {
- i.floors || ((i.show = !0), (i = { floors: [i] }))
- var n = JSON.parse(JSON.stringify(i))
- n.floors.some(function (t) {
- return t.show
- }) || (n.floors[0].show = !0),
- (n.floors = n.floors.map(function (t) {
- return e.roateDataY(
- (function (t) {
- ;(t.column = t.column || []),
- (t.window = t.window || []),
- (t.doubleDoor = t.doubleDoor || []),
- (t.door = t.door || []),
- (t.groundCase = t.groundCase || []),
- (t.bayCase = t.bayCase || []),
- (t.slideDoor = t.slideDoor || []),
- (t.tagging = t.tagging || []),
- (t.furnColumn = t.furnColumn || []),
- (t.furnFlue = t.furnFlue || [])
- var e = [
- 'column',
- 'window',
- 'door',
- 'groundCase',
- 'bayCase',
- 'slideDoor',
- 'tagging',
- 'furnColumn',
- 'furnFlue'
- ]
- t['vertex-xy'] &&
- ((t.vertex = t['vertex-xy']),
- (t.wall = t.segment.map(function (t) {
- return {
- id: t.id,
- p1: t.a,
- p2: t.b,
- border: t.border,
- exterior: t.exterior
- }
- }))),
- t['outdoor-segment'] &&
- ((t.wall = t.wall.concat(
- t['outdoor-segment'].map(function (t) {
- return { id: t.id, p1: t.a, p2: t.b, border: t.border, exterior: !0 }
- })
- )),
- (t.vertex = t.vertex.concat(t['outdoor-vertex'])))
- for (
- var i,
- n = function (n) {
- var g = t.wall
- .filter(function (e) {
- return e !== t.wall[n]
- })
- .find(function (e) {
- var i = e.p1,
- g = e.p2
- return (
- (i === t.wall[n].p1 && g === t.wall[n].p2) ||
- (g === t.wall[n].p1 && i === t.wall[n].p2)
- )
- })
- g &&
- (e.forEach(function (e) {
- t[e].forEach(function (e) {
- e.line === t.wall[n].id &&
- ((e.line = g.id), console.log('update', e))
- })
- }),
- t.wall.splice(n--, 1)),
- (i = n)
- },
- g = 0;
- g < t.wall.length;
- g++
- )
- n(g), (g = i)
- return (
- (t.vertex = t.vertex.filter(function (e) {
- return t.wall.some(function (t) {
- var i = t.p1,
- n = t.p2
- return e.id === i || e.id === n
- })
- })),
- t
- )
- })(t)
- )
- })),
- !0,
- t.processings.forEach(function (t) {
- t.attrs.forEach(function (e) {
- for (; t[e].length; ) t[e][0].ele.destroy(!0, !0)
- })
- }),
- n.floors.forEach(function (e) {
- var i = t.processings.find(function (t) {
- return t.id === e.id
- })
- i || ((i = t.addProcessing()).id = e.id)
- })
- for (
- var g,
- A = function (e) {
- n.floors.some(function (i) {
- var n = i.id
- return t.processings[e].id === n
- }) || t.delProcessing(t.processings[e--]),
- (g = e)
- },
- r = 0;
- r < t.processings.length;
- r++
- )
- A(r), (r = g)
- t.processings.forEach(function (t) {
- for (
- var e,
- i = function (i) {
- var n = t.render.elements[i]
- ;[
- 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(function (t) {
- return n instanceof t
- }) && (t.render.remove(n), i--),
- (e = i)
- },
- n = 0;
- n < t.render.elements.length;
- n++
- )
- i(n), (n = e)
- }),
- n.floors.forEach(function (e) {
- var i = t.processings.find(function (t) {
- return t.id === e.id
- })
- ;(e.surplus = []),
- i.toEles(e),
- (i.direction.__state.direct = !0),
- (i.direction.angle = e.dire || 0),
- (i.direction.__state.direct = !1),
- i.direction.update(),
- t.adapt(e, void 0, void 0, n.floors[0])
- }),
- setTimeout(function () {
- return !1
- }, 5e3)
- })
- }),
- (e.attchStack = function (t) {
- sessionStorage.clear()
- var e = 0,
- i = new C.default('cad_' + Date.now())
- t.stack = i
- var n = function (t) {
- void 0 === t && (t = e)
- var n = i.getLength()
- return { previous: (1 !== n || 1 !== e) && t > 0, next: t < n - 1 }
- }
- ;(t.clearStack = function () {
- sessionStorage.clear(), i.setLength((e = 0))
- }),
- (t.getCurrentData = function () {
- return i.get(e - 1)
- }),
- (t.preservation = f.debounce(function () {
- if (!t.stoppreservation) {
- var n = t.getData(),
- g = i.getLength() - 1
- ;(0 !== g && JSON.stringify(n) === JSON.stringify(i.get(g))) || (i.push(n), ++e)
- }
- }, 500))
- var g
- Date.now()
- ;(t.previous = function () {
- return n().previous
- ? (--e,
- clearTimeout(g),
- (g = setTimeout(function () {
- t.loadData(i.get(e))
- }, 500)),
- n())
- : n()
- }),
- (t.next = function () {
- return n().next
- ? (++e,
- clearTimeout(g),
- (g = setTimeout(function () {
- t.loadData(i.get(e))
- }, 500)),
- n())
- : n()
- }),
- (t.getStackState = n)
- var A = t.destroy
- t.destroy = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- ;(i = null), A.apply(this, t)
- }
- }),
- (e.autoPreservation = function (t) {
- ;[
- 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 (e) {
- var i = e.prototype.dragEnd
- e.prototype.dragEnd = function () {
- for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]
- return g(this, void 0, void 0, function () {
- return A(this, function (n) {
- switch (n.label) {
- case 0:
- return i ? [4, i.call.apply(i, r([this], e))] : [3, 2]
- case 1:
- n.sent(), (n.label = 2)
- case 2:
- return (
- setTimeout(function () {
- t.preservation()
- }, 100),
- [2]
- )
- }
- })
- })
- }
- var n = t.destroy
- t.destroy = function () {
- for (var t = [], g = 0; g < arguments.length; g++) t[g] = arguments[g]
- n.apply(this, t), (e.prototype.dragEnd = i)
- }
- })
- var e = t.increase
- ;(t.increase = function () {
- for (var i = [], n = 0; n < arguments.length; n++) i[n] = arguments[n]
- var g = e.call.apply(e, r([t], i))
- return (
- g.error ||
- setTimeout(function () {
- t.preservation()
- }, 100),
- g
- )
- }),
- t.preservation()
- })
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var r = i(2),
- o = i(1),
- C = i(0),
- I = function (t, e) {
- return t.contains
- ? t.contains(e)
- : Array.from(t.childNodes).some(function (t) {
- return t === e
- })
- },
- s = (function (t) {
- function e(e) {
- var i = e.local,
- n = e.renderer,
- g = e.active,
- A = void 0 === g ? 0 : g,
- r = e.show,
- o = void 0 === r || r,
- C = t.call(this, { local: i, renderer: n, dialog: 0, active: A, show: o }) || this
- return (
- (C.items = []),
- (C.layerClick = function () {
- return (C.dialog = 0)
- }),
- n.layer.addEventListener('click', C.layerClick),
- C
- )
- }
- return (
- g(e, t),
- (e.prototype.grentImage = function (t) {
- var e = document.createElementNS(o.SVGURI, 'image')
- return (
- (e.href.baseVal = i(54)),
- e.setAttribute('x', (-t / 2).toString()),
- e.setAttribute('y', (-t / 2).toString()),
- e.setAttribute('width', t.toString()),
- e.setAttribute('height', t.toString()),
- e
- )
- }),
- (e.prototype.grentNode = function () {
- var t = document.createElementNS(o.SVGURI, 'g')
- ;(this.path = document.createElementNS(o.SVGURI, 'path')),
- this.path.setAttribute('stroke', 'rgb(0, 200, 175)'),
- this.path.setAttribute('fill', 'transparent')
- var e = document.createElementNS(o.SVGURI, 'circle')
- e.setAttribute('fill', 'rgb(0, 200, 175)'), e.setAttribute('stroke', '#fff')
- var i = document.createElementNS(o.SVGURI, 'text')
- return (
- i.setAttribute('fill', '#fff'),
- i.setAttribute('text-anchor', 'middle'),
- i.setAttribute('dy', '.4em'),
- (this.temp = document.createElementNS(o.SVGURI, 'g')),
- this.temp.appendChild(e),
- this.temp.appendChild(i),
- (this.temp.style.cursor = 'pointer'),
- (this.dialogLayer = document.createElementNS(o.SVGURI, 'g')),
- (this.itemsLayout = document.createElementNS(o.SVGURI, 'path')),
- this.itemsLayout.setAttribute('fill', 'rgba(255,255,255,0.7)'),
- this.dialogLayer.appendChild(this.itemsLayout),
- t.appendChild(this.path),
- t
- )
- }),
- (e.prototype.update = function () {
- var t = this,
- e = 9 * this.multiple,
- i = 2 * this.multiple
- if (
- ((this.real.style.display = this.show ? 'initial' : 'none'),
- this.path.setAttribute('stroke-width', (2 * this.multiple).toString()),
- this.local.length > 0)
- )
- this.path.setAttribute(
- 'd',
- 'M ' +
- this.local
- .map(function (t) {
- return t.x + ' ' + t.y
- })
- .join(' L ')
- )
- else if ((this.path.setAttribute('d', ''), this.dialog)) return (this.dialog = 0)
- this.items.forEach(function (e) {
- try {
- t.real.removeChild(e)
- } catch (t) {}
- }),
- (this.items = []),
- (this.temp.style.display = this.show ? 'initial' : 'none')
- var n = this.local.length - this.items.length
- if (n > 0)
- for (var g = 0; g < n; g++) {
- var A = this.temp.cloneNode(!0)
- this.real.appendChild(A), this.items.push(A)
- }
- else if (n < 0)
- for (g = 0; g > n; g--) {
- var r = this.items.shift()
- this.real.removeChild(r)
- }
- var o = 0
- for (g = 0; g < this.local.length; g++) {
- var C = this.items[g].querySelector('circle'),
- I = this.items[g].querySelector('text')
- this.items[g].setAttribute(
- 'transform',
- 'translate(' + this.local[g].x + ',' + this.local[g].y + ')'
- ),
- (this.items[g].style.display = 'inherit'),
- C.setAttribute('stroke-width', i.toString()),
- C.setAttribute('r', e.toString()),
- I.setAttribute('font-size', (10 * this.multiple).toString()),
- this.local[g].rangn
- ? (C.setAttribute('fill', '#666666'),
- this.items[g].appendChild(this.grentImage(e + i)))
- : (I.textContent = (++o).toString()),
- this.local[g] === this.active &&
- (I.setAttribute('fill', 'rgb(250,250,0)'),
- C.setAttribute('stroke', 'rgb(250,250,0)'),
- this.items[g].setAttribute('class', 'active'))
- }
- var s = this.calcGroup()
- for (g = 0; g < s.length; g++)
- s[g].body.forEach(function (e) {
- var i = t.local.indexOf(e)
- t.items[i].style.display = 'none'
- })
- this.showDialog(2 * (e + i))
- }),
- (e.prototype.showDialog = function (t) {
- var e = this
- if (0 !== this.dialog) {
- for (var i = 0; i < this.dialogLayer.childNodes.length; i++)
- this.dialogLayer.childNodes[i] !== this.itemsLayout &&
- (this.dialogLayer.removeChild(this.dialogLayer.childNodes[i]), i--)
- this.itemsLayout.innerHTML = ''
- var n = 5 * this.multiple,
- g = (t + n) * this.dialog.items.length,
- A = t + 2 * n,
- r = this.dialog.pos.x - g / 2,
- o = this.dialog.pos.y - A - t,
- C = 8 * this.multiple
- this.itemsLayout.setAttribute(
- 'd',
- '\n M ' +
- r +
- ' ' +
- (o + A) +
- '\n A ' +
- A / 2 +
- ' ' +
- A / 2 +
- ' 0 1 1 ' +
- r +
- ' ' +
- o +
- '\n L ' +
- (r + g) +
- ' ' +
- o +
- '\n A ' +
- A / 2 +
- ' ' +
- A / 2 +
- ' 0 1 1 ' +
- (r + g) +
- ' ' +
- (o + A) +
- '\n L ' +
- (r + g / 2 + C) +
- ' ' +
- (o + A) +
- '\n L ' +
- (r + g / 2) +
- ' ' +
- (o + A + C) +
- '\n L ' +
- (r + g / 2 - C) +
- ' ' +
- (o + A) +
- '\n L ' +
- r +
- ' ' +
- (o + A) +
- '\n '
- )
- var I = function (i, g) {
- i.setAttribute(
- 'transform',
- 'translate(' + (r + (t + n) * g) + ',' + (o + (t / 2 + n)) + ')'
- ),
- (i.style.display = 'inline'),
- e.dialogLayer.appendChild(i)
- }
- this.dialog.items.forEach(function (t, i) {
- I(e.items[e.local.indexOf(t)], i + 1)
- }),
- I(this.items[this.local.indexOf(this.dialog.pos)].cloneNode(!0), 0)
- }
- }),
- (e.prototype.calcGroup = function () {
- var t = this,
- e = 18 * this.multiple,
- i = []
- return (
- this.local.forEach(function (n) {
- if (
- !i.find(function (t) {
- return ~t.body.indexOf(n)
- })
- ) {
- var g = t.local.filter(function (t) {
- return n !== t && C.lineDis({ points: [n, t] }) < e
- })
- g.length > 0 && i.push({ head: n, body: g })
- }
- }),
- i
- )
- }),
- (e.prototype.notice = function () {
- 0 !== this.dialog
- ? this.real.appendChild(this.dialogLayer)
- : I(this.real, this.dialogLayer) && this.real.removeChild(this.dialogLayer)
- }),
- (e.prototype.intercept = function (t, e) {
- var i = this,
- n = e.active
- if (!n) return !0
- var g = this.calcGroup().find(function (t) {
- var e = t.head,
- i = t.body
- return e === n || ~i.indexOf(n)
- })
- if (
- (this.nextTick(function () {
- i.dialog = g ? { pos: g.head, items: A(g.body) } : 0
- }),
- this.active && this.items[this.local.indexOf(this.active)])
- ) {
- var r = this.items[this.local.indexOf(this.active)],
- o = r.querySelector('circle')
- r.querySelector('text').setAttribute('fill', '#fff'),
- o.setAttribute('stroke', '#fff'),
- r.setAttribute('class', 'active')
- }
- return !0
- }),
- (e.prototype.setActive = function (t) {
- this.active = t
- }),
- (e.prototype.click = function (t) {
- t.stopPropagation()
- for (var e = 0; e < this.items.length; e++)
- if (I(this.items[e], t.target) || t.target === this.items[e]) {
- this.setActive(this.local[e])
- break
- }
- }),
- (e.prototype.destroy = function () {
- this.renderer.layer.removeEventListener('click', this.layerClick)
- }),
- e
- )
- })(r.CADElement)
- e.default = s
- },
- function (t, e, i) {
- var n =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- g =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 }), i(25)
- var A = g(i(26)),
- r = i(39),
- o = i(40),
- C = i(46),
- I = i(48),
- s = i(22),
- a = i(51),
- l = i(52),
- u = i(53),
- c = i(55),
- h = i(56),
- p = g(i(57)),
- d = i(58),
- f = g(i(7))
- e.Column = f.default
- var y = g(i(8))
- e.Door = y.default
- var v = g(i(11))
- e.Casement = v.default
- var m = i(2),
- b = g(i(23)),
- x = g(i(59)),
- _ = g(i(63)),
- w = m.CADElement.prototype.listen
- m.CADElement.prototype.listen = function () {
- for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
- var g = this.render.processing.cad.edits.some(function (e) {
- return t instanceof e
- })
- ;(g || this.render.processing.cad.edit || this instanceof b.default) &&
- w.call.apply(w, n([this], e))
- }
- var P = f.default.prototype.addEvent
- function O(t) {
- var e = t.data,
- i = t.layer,
- n = t.edit,
- g = void 0 === n || n,
- f = t.padding,
- y = void 0 === f ? 20 : f,
- v = new A.default({ dom: i, padding: y })
- return (
- (v.edit = g),
- r.attachInsert(v),
- g
- ? (s.attchTransform(v),
- s.attchStack(v),
- s.autoPreservation(v),
- a.attchDOMTranform(v),
- l.attachDisabled(v),
- p.default(v))
- : (s.attchTransform(v), a.attchDOMTranform(v)),
- h.attchCustom(v),
- c.attachStyle(v),
- I.attachScreenshot(v),
- C.attachSign(v),
- o.attachGauge(v),
- u.attachRote(v),
- g && (v.openMouseHandle(), v.showGauge()),
- d.other(v),
- x.default(v),
- v.loadData(e),
- (v.toCanvas = function (t) {
- return _.default(v, t)
- }),
- v
- )
- }
- ;(f.default.prototype.addEvent = function () {
- for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
- var g = this.render.processing.cad.edits.some(function (e) {
- return t instanceof e
- })
- ;(g || this.render.processing.cad.edit) && P.call.apply(P, n([this], e))
- }),
- (e.structureCAD = O),
- (e.default = O),
- (window.structureCAD = O)
- },
- function (t, e) {
- !(function () {
- try {
- if ('undefined' == typeof SVGElement || Boolean(SVGElement.prototype.innerHTML)) return
- } catch (t) {
- return
- }
- function t(e) {
- switch (e.nodeType) {
- case 1:
- return (function (e) {
- var i = ''
- ;(i += '<' + e.tagName),
- e.hasAttributes() &&
- [].forEach.call(e.attributes, function (t) {
- i += ' ' + t.name + '="' + t.value + '"'
- })
- ;(i += '>'),
- e.hasChildNodes() &&
- [].forEach.call(e.childNodes, function (e) {
- i += t(e)
- })
- return (i += '</' + e.tagName + '>')
- })(e)
- case 3:
- return (function (t) {
- return t.textContent
- .replace(/&/g, '&')
- .replace(/</g, '<')
- .replace(/>/g, '>')
- })(e)
- case 8:
- return (function (t) {
- return '\x3c!--' + t.nodeValue + '--\x3e'
- })(e)
- }
- }
- Object.defineProperty(SVGElement.prototype, 'innerHTML', {
- get: function () {
- var e = ''
- return (
- [].forEach.call(this.childNodes, function (i) {
- e += t(i)
- }),
- e
- )
- },
- set: function (t) {
- for (; this.firstChild; ) this.removeChild(this.firstChild)
- try {
- var e = new DOMParser()
- e.async = !1
- var i =
- "<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>" +
- t +
- '</svg>',
- n = e.parseFromString(i, 'text/xml').documentElement
- ;[].forEach.call(
- n.childNodes,
- function (t) {
- this.appendChild(this.ownerDocument.importNode(t, !0))
- }.bind(this)
- )
- } catch (t) {
- throw new Error('Error parsing markup string')
- }
- }
- }),
- Object.defineProperty(SVGElement.prototype, 'innerSVG', {
- get: function () {
- return this.innerHTML
- },
- set: function (t) {
- this.innerHTML = t
- }
- })
- })()
- },
- function (t, e, i) {
- var n =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var g = i(3),
- A = n(i(27)),
- r = i(2),
- o = (function () {
- function t(t) {
- var e = this,
- i = t.dom,
- n = t.padding,
- g = void 0 === n ? 20 : n
- ;(this.processings = []),
- Object.defineProperty(this, 'processing', {
- get: function () {
- return this.processings.find(function (t) {
- return t.show
- })
- }
- }),
- (this.layer = i),
- (this.padding = g),
- (this.isDestroy = !1),
- (this.resizeHandle = function () {
- return e.processing.data && e.adapt(e.processing.data)
- }),
- this.init()
- }
- return (
- (t.prototype.addProcessing = function () {
- var t = new A.default({ dom: this.layer })
- return (t.cad = this), this.processings.push(t), t
- }),
- (t.prototype.delProcessing = function (t) {
- t.render.elements.forEach(function (t) {
- return t.destroy()
- }),
- this.processings.splice(this.processings.indexOf(t), 1)
- }),
- (t.prototype.adapt = function (t, e, i, n) {
- void 0 === t && (t = this.processing.data)
- var A = this.processings.find(function (e) {
- return e.data.id === t.id
- })
- ;(e =
- e ||
- A.render.layer.offsetWidth ||
- parseInt(getComputedStyle(A.render.layer).width) ||
- 100),
- (i =
- i ||
- A.render.layer.offsetHeight ||
- parseInt(getComputedStyle(A.render.layer).height) ||
- 100),
- 0 === t.vertex.length
- ? (A.render.props = g.getMapMultipleWH(
- e,
- i,
- {
- vertex: [
- { x: -15, y: -15 },
- { x: -15, y: 15 },
- { x: 15, y: -15 },
- { x: 15, y: 15 }
- ]
- },
- this.padding
- ))
- : (e && i && (A.render.props = g.getMapMultipleWH(e, i, t, this.padding)),
- A.render.props.scale <= 0 &&
- (A.render.props = {
- width: 0,
- height: 0,
- multiple: 0,
- scale: 1,
- top: 0,
- left: 0
- })),
- A.render.adaptLayer(e, i),
- r.CADElement.update(A.render)
- }),
- (t.prototype.init = function () {
- window.addEventListener('resize', this.resizeHandle, !1)
- }),
- (t.prototype.destroy = function () {
- for (var t in (window.removeEventListener('resize', this.resizeHandle, !1),
- this.processing.destroy(),
- (this.processing = null),
- (this.isDestroy = !0),
- this))
- 'function' == typeof this[t] ? (this[t] = function () {}) : delete this[t]
- }),
- t
- )
- })()
- e.default = o
- },
- function (t, e, i) {
- var n =
- (this && this.__assign) ||
- function () {
- return (n =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- g =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- A =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var r = A(i(28)),
- o = i(31),
- C = i(36),
- I = i(37),
- s = i(38),
- a = (function () {
- function t(t) {
- var e = t.dom
- ;(this.render = new r.default({ layer: e, processing: this })),
- (this.id = 1),
- (this.points = []),
- (this.lines = []),
- (this.cases = []),
- (this.doors = []),
- (this.columns = []),
- (this.slideDoors = []),
- (this.groundCases = []),
- (this.taggings = []),
- (this.bayCases = []),
- (this.furnColumns = []),
- (this.furnFlues = []),
- (this.doubleDoors = []),
- this.manageShow()
- }
- return (
- (t.prototype.manageShow = function () {
- var t = this,
- e = !1
- Object.defineProperty(this, 'show', {
- get: function () {
- return e
- },
- set: function (i) {
- console.log('---------', e),
- (e = i),
- (t.render.svg.style.display = e ? 'block' : 'none')
- }
- })
- }),
- (t.prototype.rep = function (t) {
- var e = this
- this.attrs.forEach(function (i) {
- var n = e[i].findIndex(function (e) {
- return e.ele === t
- })
- ~n && ((t.__id = e[i][n] && e[i][n].id), e[i].splice(n, 1))
- }),
- this.render || console.error('鎺夌敤 rep'),
- this.render && this.render.remove(t)
- }),
- (t.prototype.retrofitElementDestroy = function (t) {
- var e = this,
- i = t.destroy
- t.__load_destroy ||
- ((t.__load_destroy = !0),
- (t.destroy = function () {
- for (var n = [], A = 0; A < arguments.length; A++) n[A] = arguments[A]
- n[0]
- ? e.rep(t)
- : t.nextTick(function () {
- return e.rep(t)
- }),
- i.call.apply(i, g([t], n)),
- (t.__load_destroy = !1)
- }))
- }),
- (t.prototype.updateWallPoints = function (t, e, i) {}),
- (t.prototype.retrofitElementIntercept = function (t) {}),
- (t.prototype.depLines = function () {
- for (
- var t,
- e = g(this.lines),
- i = function (i) {
- var n = e[i].ele,
- g = e.some(function (t) {
- var e = t.ele
- return (
- n !== e &&
- ((n.points[0] === e.points[0] && n.points[1] === e.points[1]) ||
- (n.points[1] === e.points[0] && n.points[0] === e.points[1]))
- )
- })
- ;(n.points[0] === n.points[1] || g) && (e[i].ele.destroy(), e.splice(i--, 1)),
- (t = i)
- },
- n = 0;
- n < e.length;
- n++
- )
- i(n), (n = t)
- }),
- (t.prototype.destroy = function () {
- var t = this,
- e = this.attrs.map(function (e) {
- return t[e]
- })
- ;(this.data = {
- id: 1,
- show: !0,
- vertex: [],
- wall: [],
- window: [],
- column: [],
- door: [],
- surplus: [],
- slideDoor: [],
- tagging: [],
- groundCase: [],
- bayCase: [],
- doubleDoor: [],
- furnColumn: [],
- furnFlue: [],
- dire: 0
- }),
- e.forEach(function (t) {
- for (; t.length; ) t[0].ele.destroy(!0)
- }),
- this.render.destroy(),
- (this.render = null)
- }),
- t
- )
- })()
- ;(e._Processing = a), (e.default = a)
- var l = n(n(n(n({}, o.methods), C.methods), I.methods), s.methods)
- Object.keys(l).forEach(function (t) {
- return (a.prototype[t] = l[t])
- })
- },
- function (t, e, i) {
- Object.defineProperty(e, '__esModule', { value: !0 })
- var n = i(2),
- g = i(1),
- A = (function () {
- function t(t) {
- var e = this,
- i = t.layer,
- g = t.width,
- A = void 0 === g ? i.offsetWidth : g,
- r = t.height,
- o = void 0 === r ? i.offsetHeight : r,
- C = t.processing
- ;(this.clickHandle = function () {
- e.elements.forEach(function (t) {
- return t.changeSelect(!1)
- })
- }),
- n.CADElement.init(this),
- (this.props = { left: 0, top: 0, width: A, height: o, multiple: 1, scale: 1 }),
- (this.elements = []),
- (this.processing = C),
- this.init(i)
- }
- return (
- (t.prototype.init = function (t) {
- ;(this.svg = document.createElementNS(g.SVGURI, 'svg')),
- (this.g = document.createElementNS(g.SVGURI, 'g')),
- this.svg.appendChild(this.g),
- (this.layer = t),
- (this.layer.style.position = 'relative'),
- (this.svg.style.position = 'absolute'),
- (this.svg.style.left = '0'),
- (this.svg.style.top = '0'),
- (this.svg.style.right = '0'),
- (this.svg.style.bottom = '0'),
- this.svg.setAttribute('version', '1.0'),
- this.svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg'),
- this.svg.setAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink'),
- this.svg.addEventListener('click', this.clickHandle, !1),
- this.layer.appendChild(this.svg)
- }),
- (t.prototype.adaptLayer = function (t, e) {
- void 0 === t && (t = this.layer.offsetWidth),
- void 0 === e && (e = this.layer.offsetHeight)
- var i = this.props.width / 2 - this.props.left,
- g = this.props.height / 2 - this.props.top
- this.g.setAttribute(
- 'transform',
- '\n translate(' +
- this.props.left +
- ',' +
- this.props.top +
- ')\n translate(' +
- i +
- ',' +
- g +
- ')\n scale(' +
- this.props.scale +
- ',' +
- this.props.scale +
- ')\n translate(' +
- -i +
- ',' +
- -g +
- ')\n '
- ),
- this.svg.setAttribute('width', t.toString()),
- this.svg.setAttribute('height', e.toString()),
- this.svg.setAttribute('viewBox', '0 0 ' + this.props.width + ' ' + this.props.height),
- (this.realWidth = t),
- (this.realHeight = e),
- n.CADElement.update(this)
- }),
- (t.prototype.render = function () {
- n.CADElement.update(this)
- }),
- (t.prototype.screenToRealPoint = function (t) {
- var e = t.x,
- i = t.y,
- n = this.props.width / 2 - this.props.left,
- g = this.props.height / 2 - this.props.top,
- A = this.props.width / this.props.multiple,
- r = this.props.height / this.props.multiple
- return 0 == A || 0 == r
- ? { x: n, y: g }
- : {
- x: ((e * this.props.width) / A - this.props.left - n) / this.props.scale + n,
- y: ((i * this.props.height) / r - this.props.top - g) / this.props.scale + g
- }
- }),
- (t.prototype.realPointToScreen = function (t) {
- var e = t.x,
- i = t.y,
- n = this.props.width / 2 - this.props.left,
- g = this.props.height / 2 - this.props.top,
- A = this.props.width / this.props.multiple,
- r = this.props.height / this.props.multiple
- return {
- x: (((e - n) * this.props.scale + n + this.props.left) * A) / this.props.width,
- y: (((i - g) * this.props.scale + g + this.props.top) * r) / this.props.height
- }
- }),
- (t.prototype.push = function () {
- for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
- e.forEach(function (e) {
- var i = t.elements.find(function (t) {
- return t.zIndex > e.zIndex
- })
- if (i) {
- try {
- t.g.insertBefore(e.real, i.real)
- } catch (i) {
- t.g.appendChild(e.real)
- }
- t.elements.splice(t.elements.indexOf(i), 0, e)
- } else t.g.appendChild(e.real), t.elements.push(e)
- })
- }),
- (t.prototype.remove = function () {
- for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
- e.forEach(function (e) {
- try {
- t.g.removeChild(e.real)
- } catch (t) {}
- ~t.elements.indexOf(e) && t.elements.splice(t.elements.indexOf(e), 1)
- })
- }),
- (t.prototype.destroy = function () {
- this.svg.removeEventListener('click', this.clickHandle, !1),
- this.layer.removeChild(this.svg)
- }),
- t
- )
- })()
- e.default = A
- },
- function (t, e, i) {
- var n =
- (this && this.__assign) ||
- function () {
- return (n =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- g =
- (this && this.__awaiter) ||
- function (t, e, i, n) {
- return new (i || (i = Promise))(function (g, A) {
- function r(t) {
- try {
- C(n.next(t))
- } catch (t) {
- A(t)
- }
- }
- function o(t) {
- try {
- C(n.throw(t))
- } catch (t) {
- A(t)
- }
- }
- function C(t) {
- var e
- t.done
- ? g(t.value)
- : ((e = t.value),
- e instanceof i
- ? e
- : new i(function (t) {
- t(e)
- })).then(r, o)
- }
- C((n = n.apply(t, e || [])).next())
- })
- },
- A =
- (this && this.__generator) ||
- function (t, e) {
- var i,
- n,
- g,
- A,
- r = {
- label: 0,
- sent: function () {
- if (1 & g[0]) throw g[1]
- return g[1]
- },
- trys: [],
- ops: []
- }
- return (
- (A = { next: o(0), throw: o(1), return: o(2) }),
- 'function' == typeof Symbol &&
- (A[Symbol.iterator] = function () {
- return this
- }),
- A
- )
- function o(A) {
- return function (o) {
- return (function (A) {
- if (i) throw new TypeError('Generator is already executing.')
- for (; r; )
- try {
- 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)
- )
- return g
- switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
- case 0:
- case 1:
- g = A
- break
- case 4:
- return r.label++, { value: A[1], done: !1 }
- case 5:
- r.label++, (n = A[1]), (A = [0])
- continue
- case 7:
- ;(A = r.ops.pop()), r.trys.pop()
- continue
- default:
- if (
- !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
- (6 === A[0] || 2 === A[0])
- ) {
- r = 0
- continue
- }
- if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
- r.label = A[1]
- break
- }
- if (6 === A[0] && r.label < g[1]) {
- ;(r.label = g[1]), (g = A)
- break
- }
- if (g && r.label < g[2]) {
- ;(r.label = g[2]), r.ops.push(A)
- break
- }
- g[2] && r.ops.pop(), r.trys.pop()
- continue
- }
- A = e.call(t, r)
- } catch (t) {
- ;(A = [6, t]), (n = 0)
- } finally {
- i = g = 0
- }
- if (5 & A[0]) throw A[1]
- return { value: A[0] ? A[1] : void 0, done: !0 }
- })([A, o])
- }
- }
- },
- r =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var o = i(3),
- C = (function () {
- function t(t, e) {
- var i = this,
- n = e.notice,
- C = e.intercept,
- I = e.childAttr,
- s = e.afferent
- return (
- (this.updateNotices = []),
- (this.changeNotices = []),
- (this.getSubAll = function () {
- var t = []
- return (
- i.subscribe.forEach(function (e) {
- t.push.apply(t, e.getSubAll())
- }),
- r(i.subscribe, t)
- )
- }),
- (this.data = t),
- (this.subscribe = []),
- (this.updateKeys = new Set()),
- (this.attrs = []),
- (this.intercept = C),
- (this.afferent = s),
- (this.notice = n),
- (this.direct = !1),
- (this.childAttr = I),
- (this.deleteUpdateKey = this.deleteUpdateKey.bind(this)),
- (this.addUpdateKey = this.addUpdateKey.bind(this)),
- (this.changeNotices = []),
- (this.setHandle = o.debounce(
- function (t) {
- return g(i, void 0, void 0, function () {
- var e
- return A(this, function (i) {
- switch (i.label) {
- case 0:
- return [4, this.setVal.apply(this, t)]
- case 1:
- return (
- (e = i.sent()),
- Object.keys(t[4]).forEach(this.deleteUpdateKey),
- this.noticeTick(),
- this.noticeAll(e || { args: {} }),
- e && this.noticeChange(),
- [2]
- )
- }
- })
- })
- },
- 0,
- function (t) {
- var e = t[0][0],
- i = e.sub,
- n = e.current,
- g = e.state,
- A = e.childAttr,
- r = {}
- return (
- t.forEach(function (t) {
- var e = t[0],
- i = e.key,
- n = e.val
- return (r[i] = n)
- }),
- [i, n, g, A, r]
- )
- },
- function () {
- i.changeNotices = []
- }
- )),
- this
- )
- }
- return (
- (t.prototype.addUpdateKey = function (t) {
- var e = this
- this.updateKeys.add(t),
- this.subscribe.forEach(function (t) {
- t.updateKeys.has(e) || t.addUpdateKey(e)
- })
- }),
- (t.prototype.deleteUpdateKey = function (t) {
- var e = this
- this.updateKeys.delete(t),
- 0 === this.updateKeys.size &&
- (this.subscribe.forEach(function (t) {
- t.deleteUpdateKey(e)
- }),
- this.test && this.test())
- }),
- (t.prototype.noticeTick = function () {
- if (0 === this.updateKeys.size)
- for (; this.updateNotices.length; ) this.updateNotices.shift()()
- this.subscribe.forEach(function (t) {
- return t.noticeTick()
- })
- }),
- (t.prototype.noticeChange = function () {
- for (; this.changeNotices.length; ) this.changeNotices.shift()()
- this.subscribe.forEach(function (t) {
- return t.noticeChange()
- })
- }),
- (t.prototype.nextTick = function (t) {
- var e = this
- setTimeout(function () {
- 0 === e.updateKeys.size
- ? t()
- : (e.updateNotices.push(t),
- setTimeout(function () {
- if (~e.updateNotices.indexOf(t)) {
- e.updateNotices.slice(e.updateNotices.indexOf(t), 1)
- t()
- }
- }, 200))
- })
- }),
- (t.prototype.nextChange = function (t) {
- this.changeNotices.push(t)
- }),
- (t.prototype.interceptAll = function (t) {
- return g(this, void 0, void 0, function () {
- var e, i, n, g, C, I
- return A(this, function (A) {
- for (
- e = [], i = [], g = r([this], this.getSubAll()), C = void 0, I = 0;
- (C = g[I]);
- I++
- )
- if ((i.push(C.afferent), C.intercept)) {
- if (((n = C.intercept(i, t, e)), e.push(n), o.type.isBoolean(n) && !n))
- return [2, !1]
- } else e.push(void 0)
- return [2, e]
- })
- })
- }),
- (t.prototype.noticeAll = function (t) {
- t = n(n({}, t), {
- state: { data: this.afferent || this, trigger: t.state, ret: void 0 }
- })
- var e = this.notice(t)
- t.state.ret = e
- for (var i = 0; i < this.subscribe.length; i++) this.subscribe[i].noticeAll(t)
- return t
- }),
- (t.prototype.bindDataChange = function () {
- var t = this
- ;(this.__firstBind = !0),
- Object.keys(this.data).forEach(function (e) {
- t.attrs.push(e), t.bindItem(t, t, t.data, e, t.childAttr)
- }),
- (this.__firstBind = !1)
- }),
- (t.prototype.getSeftSub = function () {
- return [
- this,
- this.subscribe.flatMap(function (t) {
- return t.getSeftSub()
- })
- ]
- }),
- (t.prototype.setVal = function (t, e, i, r, C) {
- return g(this, void 0, void 0, function () {
- var g,
- I,
- s,
- a = this
- return A(this, function (A) {
- switch (A.label) {
- case 0:
- return (
- (g = { args: C }),
- !o.type.isUndefined(C.x) && o.type.isUndefined(C.y)
- ? (C.y = this.afferent.y)
- : !o.type.isUndefined(C.y) &&
- o.type.isUndefined(C.x) &&
- (C.x = this.afferent.x),
- [4, t.interceptAll(C)]
- )
- case 1:
- return (I = A.sent())
- ? ((s = n({}, C)),
- I.forEach(function (t) {
- return (s = n(n({}, s), t))
- }),
- Object.keys(i).forEach(function (n) {
- 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]))
- }),
- [2, g])
- : [2, null]
- }
- })
- })
- }),
- (t.prototype.relieveOldSubs = function (e, i) {
- var n = this
- o.type.isUndefined(e) ||
- (e instanceof t || (i && e[i] instanceof t)
- ? this.relieveOldSub(e, i)
- : o.type.isArray(e)
- ? e.forEach(function (t, e) {
- n.relieveOldSub(t, i)
- })
- : o.type.isObject(e) &&
- Object.values(e).forEach(function (t) {
- n.relieveOldSub(t, i)
- }))
- }),
- (t.prototype.relieveOldSub = function (e, i) {
- e instanceof t
- ? e.subscribe.splice(e.subscribe.indexOf(this), 1)
- : i && e[i] instanceof t && e[i].subscribe.splice(e[i].subscribe.indexOf(this), 1)
- }),
- (t.prototype.continueListen = function (e, i, n, g, A, r) {
- var C = this
- o.type.isNull(r) ||
- o.type.isUndefined(r) ||
- (r instanceof t || (A && r[A] instanceof t)
- ? ~(r instanceof t ? r : r[A]).subscribe.indexOf(e) ||
- this.bindItem(e, i[g], n, g, A, !0)
- : o.type.isArray(r)
- ? r.forEach(function (t, n) {
- C.bindItem(e, i[g], r, n, A, !0)
- })
- : o.type.isObject(r) &&
- Object.keys(n[g]).forEach(function (t) {
- C.bindItem(e, i[g], r, t, A, !0)
- }))
- }),
- (t.prototype.bindItem = function (e, i, n, g, A, r) {
- void 0 === r && (r = !1),
- n instanceof t
- ? n.subscribe.push(e)
- : A && n[g] && n[g][A] instanceof t && n[g][A].subscribe.push(e),
- r ||
- (Object.defineProperty(i, g, {
- get: function () {
- return n[g]
- },
- set: function (t) {
- this.__firstBind || this.direct
- ? ((n[g] = t), this.continueListen(e, i, n, g, A, t))
- : (this.addUpdateKey(g),
- this.setHandle({
- sub: e,
- current: i,
- state: n,
- key: g,
- childAttr: A,
- val: t
- }))
- }
- }),
- this.continueListen(e, i, n, g, A, n[g]))
- }),
- t
- )
- })()
- ;(e._State = C),
- (e.getter = function (t, e) {
- e.attrs.forEach(function (i) {
- Object.defineProperty(t, i, {
- configurable: !0,
- get: function () {
- return e[i]
- }
- })
- })
- }),
- (e.setter = function (t, e) {
- e.attrs.forEach(function (i) {
- Object.defineProperty(t, i, {
- configurable: !0,
- set: function (t) {
- e[i] = t
- }
- })
- })
- }),
- (e.State = C)
- },
- function (t, e, i) {
- Object.defineProperty(e, '__esModule', { value: !0 }),
- (e.default = {
- menu: {
- __name: '鑿滃崟',
- music: '鑳屾櫙闊充箰',
- base: '鍩虹璁剧疆',
- information: '鍦烘櫙淇℃伅',
- screen: '鍒濆鐢婚潰',
- hotspot: '娣诲姞鐑偣',
- guide: '鑷姩瀵艰',
- sign: '鍦伴潰Logo',
- walk: '婕父鍙',
- model: '3D妯″瀷',
- cad: '鎴峰瀷鍥�',
- data: '鏁版嵁瀵规帴',
- custom: '涓婁紶涓嬭浇',
- videos: '娣诲姞瑙嗛',
- vrhouse: '鐪嬫埧 4Dkankan',
- business: '鐪嬪簵 4Dkankan',
- scene: '鍦烘櫙璺宠浆',
- video: '娣诲姞瑙嗛',
- decor: '涓€閿崲瑁�',
- link: '鍦烘櫙鍏宠仈'
- },
- modules: {
- __name: '妯″潡',
- base: {
- __name: '鍩虹璁剧疆',
- qrcode: '鍦烘櫙浜岀淮鐮�',
- qrcode_download: '涓嬭浇浜岀淮鐮�',
- qrcode_tips: '鑷畾涔塴ogo',
- scene_link: '鍦烘櫙鍦板潃',
- scene_link_copy: '澶嶅埗閾炬帴',
- scene_link_copy_tips: '鍦烘櫙閾炬帴澶嶅埗鎴愬姛',
- bgm: '鑳屾櫙闊充箰',
- pano_text: '婕父瑙嗚鍙',
- mode_2d_text: '骞抽潰鍥惧彲瑙�',
- mode_3d_text: '涓夌淮妯″瀷鍙',
- map_text: '灏忓湴鍥鹃瑙堝彲瑙�',
- vr_text: 'VR妯″紡鍙',
- vr_tips: '璇峰湪鎵嬫満灞曠ず椤甸潰瑙傜湅VR鏁堟灉',
- guide_text: '鑷姩瀵艰鍙',
- rule_text: '鏍囧昂鍙',
- cad_text: '淇鍥炬埛鍨嬪彲瑙�',
- measure_text: '娴嬮噺宸ュ叿鍙',
- measure_tips: '缂栬緫妯″紡涓嬫棤娉曚娇鐢ㄦ祴璺濆姛鑳斤紝璇峰湪灞曠ず椤甸潰鎿嶄綔',
- turned_vr: 'VR鍔熻兘宸瞷status}',
- turned_map: '灏忓湴鍥惧姛鑳藉凡{status}',
- turned_cad: '淇鍥炬埛鍨嬪姛鑳藉凡{status}',
- turned_m2d: '骞抽潰瑙嗚鍔熻兘宸瞷status}',
- turned_m3d: '涓夌淮瑙嗚鍔熻兘宸瞷status}',
- turned_pano: '婕父瑙嗚鍔熻兘宸瞷status}',
- turned_rule: '鏍囧昂鍔熻兘宸瞷status}',
- turned_guide: '鑷姩瀵艰鍔熻兘宸瞷status}',
- turned_measure: '娴嬭窛鍔熻兘宸瞷status}',
- shortcut_copy: '涓€閿鍒�',
- share_link: '鍒嗕韩閾炬帴缁欏ソ鍙�',
- measure_show_tips: '璇峰湪灞曠ず椤甸潰浣跨敤娴嬭窛鍔熻兘',
- delete_measure_line: '鍒犻櫎娴嬮噺绾�',
- please_click_tips: "'璇风偣鍑烩€滃厑璁糕€�'",
- vr_fail_app_tips:
- '娴忚鍣ㄦ湭鑳芥娴嬪埌杞姩銆傝鍦ㄦ墜鏈烘垨娴忚鍣ㄨ缃腑寮€鍚簡杩愬姩鍜屾柟鍚戣闂瓑璁剧疆锛岀劧鍚庡埛鏂版椤甸潰銆�',
- vr_fail_safari_tips:
- '娴忚鍣ㄦ湭鑳芥娴嬪埌杞姩銆備负瀹屾暣浣撻獙VR鏁堟灉锛岃鎵撳紑 鈥滆缃€� > 鈥淪afari鈥� > 鈥滈殣绉佸拰瀹夊叏鈥� 涓嬬殑 鈥滆繍鍔ㄥ拰鏂瑰悜璁块棶鈥� 寮€鍏筹紝鐒跺悗鍒锋柊姝ら〉闈€€�',
- loading_bottom_text: '鍥涚淮鏃朵唬鎻愪緵鎶€鏈敮鎸�',
- vr_fail_reopen_tips:
- '杩愬姩鍜屾柟鍚戣闂け璐ャ€傛偍闇€瑕佸畬鍏ㄥ叧闂搴旂敤锛岀劧鍚庡啀娆℃墦寮€锛屽苟鍏佽璁块棶杩愬姩涓庢柟鍚�',
- add_music_title: '娣诲姞鑳屾櫙闊充箰',
- add_music_tips: '鏀寔MP3銆乄AV绛夐煶棰戞牸寮忥紝涓嶈秴杩�5MB',
- re_add_music: '閲嶆柊娣诲姞',
- re_add_title: '閲嶆柊娣诲姞鑳屾櫙闊充箰',
- re_add_tips:
- '鏂版坊鍔犵殑闊充箰浼氭浛鎹㈠凡娣诲姞鐨勯煶涔愶紝<br>纭畾缁х画娣诲姞鍚楋紵',
- re_add_mobile_tips: '閲嶆柊娣诲姞灏嗕細瑕嗙洊宸叉坊鍔犻煶涔�',
- delete_tips: '鎮ㄧ‘瀹氬垹闄ゅ綋鍓嶉煶涔愬悧锛�',
- delete_title: '鍒犻櫎鑳屾櫙闊充箰',
- bgm_empty_tips: '璇烽€夋嫨鑳屾櫙闊充箰',
- wechat: '寰俊',
- friend_circle: '鏈嬪弸鍦�'
- },
- information: {
- __name: '鍦烘櫙淇℃伅',
- title: '鏍囬',
- title_tips: '璇峰~鍐欐爣棰�',
- title_require: '璇锋坊鍔犳爣棰橈紙{limit}瀛椾互鍐咃級',
- description: '绠€浠�',
- description_tips: '璇峰~鍐欑畝浠�',
- link: '娣诲姞閾炬帴',
- link_text_tips: '璇峰~鍐欓摼鎺ユ枃鏈�',
- link_href_tips: '璇峰~鍐欓摼鎺ュ湴鍧€',
- link_text_require: '璇峰~鍐欓摼鎺ユ枃鏈�',
- link_href_require: '璇峰~鍐欓摼鎺ュ湴鍧€',
- classify: '鍒嗙被',
- upload_time: '涓婁紶鏃堕棿',
- record: '鏈褰�',
- shoot_count: '鎷嶆憚鏁伴噺',
- password: '璁块棶瀵嗙爜',
- password_tips: '璁块棶瀵嗙爜',
- password_desc:
- '璁剧疆瀹屽瘑鐮佸悗锛屽綋鍏朵粬浜鸿闂偍鐨勫満鏅椂锛岄渶瑕佽緭鍏ユ偍璁剧疆鐨勫瘑鐮佹墠鑳借闂€傚鏃犻渶璁剧疆鐐瑰嚮鈥滃叕寮€鈥濆嵆鍙€�',
- password_require: '璇疯緭鍏limit}浣嶆暟鐨勫瘑鐮�',
- logo_edit: '缂栬緫椤甸潰Logo',
- logo_exit: '閫€鍑洪〉闈ogo缂栬緫',
- logo_show_bottom: '鏄剧ず鍒濆Logo',
- logo_style1: '椤堕儴Logo-鏂�',
- logo_style2: '椤堕儴Logo-闀�',
- logo_delete: '鏄惁鍒犻櫎宸蹭笂浼燣ogo锛�'
- },
- screen: {
- __name: '鍒濆鐢婚潰',
- current: '褰撳墠鍒濆瑙嗚',
- current_set: '璁剧疆涓哄垵濮嬬敾闈�',
- tips: '绉诲姩灞忓箷,鐐瑰嚮淇濆瓨鎮ㄧ殑鍒濆鐢婚潰銆�'
- },
- hotspot: {
- __name: '娣诲姞鐑偣',
- add: '娣诲姞鐑偣',
- edit: '缂栬緫鐑偣',
- count: '宸叉坊鍔犵儹鐐�',
- location: '鐑偣瀹氫綅',
- location_tips: '灏嗙儹鐐规爣璁板苟鎷栧姩鍒板悎閫傜殑浣嶇疆銆�',
- location_modify: '淇敼鐑偣浣嶇疆',
- location_confirm: '纭畾鐑偣浣嶇疆',
- location_desc:
- '璇蜂簬宸︽柟涓や釜鍦烘櫙鍖哄煙鎷栧姩鐑偣骞跺鍑嗘墍闇€鏍囪鐨勪綅缃€�',
- style: '閫夋嫨鐑偣鏍峰紡',
- style_desc:
- '閫夋嫨榛樿鏍峰紡锛屾垨鑰呮墜鍔ㄤ笂浼犲浘鐗囪嚜瀹氫箟鏍峰紡锛屼笂浼犲浘鐗囨牸寮廝NG/JPG',
- style_name: '鏍峰紡',
- style_dele: '鏄惁鍒犻櫎璇ユ牱寮忥紵',
- style_manage: '绠$悊',
- style_exit: '閫€鍑�',
- media_photo: '鍙坊鍔犲浘鐗囦互涓板瘜鐑偣鍐呭',
- media_video: '鍙笂浼犳湰鍦拌棰戯紝杩涜鏇村鐨勫睍绀�',
- media_voice: '鍙笂浼犳湰鍦伴煶棰戝唴瀹硅繘琛岀儹鐐硅瑙�',
- media_link: '鍙坊鍔犺棰戠殑瓒呴摼鎺ワ紝瑙嗛灏嗗湪鐑偣閲屾挱鏀�',
- title: '鏍囬',
- title_tips: '璇峰~鍐欐爣棰�',
- title_require: '璇锋坊鍔犳爣棰橈紙{limit}瀛椾互鍐咃級',
- description: '绠€浠�',
- description_tips: '璇峰~鍐欑畝浠�',
- text_link: '娣诲姞閾炬帴',
- text_link_text_tips: '璇峰~鍐欓摼鎺ユ枃鏈�',
- text_link_href_tips: '璇峰~鍐欓摼鎺ュ湴鍧€',
- text_link_text_require: '閾炬帴鏂囨湰涓嶈兘涓虹┖',
- text_link_href_require: '閾炬帴鍦板潃涓嶈兘涓虹┖',
- link: '宓屽叆寮忛摼鎺�',
- link_require: '璇锋坊鍔犲閾�',
- photo: '鍥剧墖',
- voice: '闊抽',
- video: '瑙嗛',
- photo_tips: '鏀寔JPG銆丳NG绛夊浘鐗囨牸寮忥紝涓嶈秴杩噞size}MB',
- voice_tips: '鏀寔MP3銆乄AV绛夐煶棰戞牸寮忥紝涓嶈秴杩噞size}MB',
- video_tips: '鏀寔MP4銆丮OV绛夎棰戞牸寮忥紝涓嶈秴杩噞size}MB',
- photo_require: '璇锋坊鍔犲浘鐗�',
- voice_require: '璇锋坊鍔犻煶棰�',
- video_require: '璇锋坊鍔犺棰�',
- m_location_tips1: '灏嗕笂涓嬪垎灞忕儹鐐瑰鍑嗗悓涓€涓墍鏍囪鐩爣',
- m_location_tips2: '纭畾鐑偣浣嶇疆锛岀偣鍑讳笅涓€姝ョ紪杈戝唴瀹�',
- m_location_up: '涓婃柟',
- m_location_left: '宸︿晶',
- m_location_move_tips:
- '杈呭姪鏍″噯浣嶇疆鍙兘涓嶅噯纭紝<br>璇锋鏌ュ苟鎷栧姩鍒皗direction}鐩稿悓浣嶇疆',
- set_visible_btn: '璁剧疆鐑偣鍙',
- save_visible_btn: '淇濆瓨褰撳墠璁剧疆',
- save_hotspot_done: '淇濆瓨鐑偣鎴愬姛',
- save_hotspot_fail: '淇濆瓨鐑偣澶辫触',
- delete_hotspot_tips: '鏄惁鍒犻櫎褰撳墠鐑偣锛�',
- delete_hotspot_done: '鐑偣鍒犻櫎鎴愬姛',
- delete_hotspot_fail: '鐑偣鍒犻櫎澶辫触',
- cant_add_hotspot_tips: '鏃犳硶娣诲姞鐑偣',
- cant_add_hotspot_content: '鐑偣鏁扮洰宸茶揪鏈€澶э細{limit}',
- link_text_tips: '閾炬帴鏍囬',
- link_href_tips: '閾炬帴',
- link_text_require: '璇峰~鍐欓摼鎺ユ枃鏈�',
- link_href_require: '璇峰~鍐欓摼鎺ュ湴鍧€',
- add_media: '娣诲姞澶氬獟浣�'
- },
- guide: {
- __name: '鑷姩瀵艰',
- route: '瀵艰埅璺嚎',
- view: '鍒囨崲瑙嗚',
- record: '寮€濮嬪綍鍒�',
- record_audio: '褰曢煶',
- pause: '鏆傚仠',
- stop: '鍋滄',
- end: '缁撴潫',
- delete: '鍒犻櫎',
- continue: '缁х画褰曞埗',
- preview: '棰勮',
- clear: '娓呯┖',
- sync: '澹扮敾鍚屾',
- sound: '褰曞埗闊抽',
- file: '涓婁紶闊抽',
- file_add: '娣诲姞闊抽',
- tips: '鐐瑰嚮寮€濮嬪綍鍒跺瑙�',
- start: '寮€濮�',
- finish: '瀹屾垚褰曞埗',
- less: '灏忎簬',
- replace_tips: '鏄惁閲嶆柊褰曞埗瀵艰锛�',
- replace_content: '閲嶆柊褰曞埗灏嗚鐩栦箣鍓嶇殑鏁版嵁',
- sound_open_fail_tips: '楹﹀厠椋庡紑鍚け璐�',
- sound_tips: '楹﹀厠椋庡紑鍚け璐ワ紝鏄惁缁х画褰曞埗锛�',
- sound_content:
- '鎮ㄩ渶瑕佸湪娴忚鍣ㄧ殑璁剧疆涓厑璁告缃戠珯浣跨敤楹﹀厠椋庯紝骞朵笖娣诲姞楹﹀厠椋庤澶囷紝鐒跺悗鍒锋柊璇ラ〉闈€€�',
- upload_sound_done: '涓婁紶璇煶璁茶В鎴愬姛',
- upload_sound_fail: '涓婁紶璇煶璁茶В澶辫触',
- delete_sound_done: '鍒犻櫎璇煶璁茶В鎴愬姛',
- delete_sound_fail: '鍒犻櫎璇煶璁茶В澶辫触',
- room_title: '鏍囬',
- room_title_tips: '璇疯緭鍏ュ瑙堟爣棰�',
- room_title_require: '璇疯緭鍏ユ爣棰�',
- room_panel_title: '瀵艰淇℃伅',
- room_sound_title: '褰曞埗闊抽',
- delete_video_content: '鎮ㄥ綋鍓嶅綍鍒剁殑鐢婚潰灏嗕細琚垹闄�',
- delete_file_content: '鎮ㄥ綋鍓嶄笂浼犵殑璇煶璁茶В灏嗕細琚垹闄�',
- delete_sound_content: '宸插綍鍒堕厤闊冲皢浼氳鍒犻櫎',
- camera_save_success: '闀滃ご淇濆瓨鎴愬姛',
- clear_video_tip: '鎮ㄥ綋鍓嶅綍鍒剁殑鍐呭灏嗕細琚竻绌�',
- saving_sound: '姝e湪淇濆瓨褰曢煶',
- save_sound_done: '褰曢煶淇濆瓨鎴愬姛',
- save_sound_fail: '褰曢煶淇濆瓨澶辫触',
- no_sound_tips: '褰撳墠涓嶆敮鎸佸綍闊�<br>鍙湪寰俊鎴栫數鑴戠褰曢煶',
- sound_success_tips: '楹﹀厠椋庡紑鍚垚鍔�',
- sound_fail_tips: '褰撳墠涓嶆敮鎸佸綍闊�<br>鍏紬鍙蜂俊鎭厤缃敊璇�',
- wechat_sound_fail_tips: '寰俊楹﹀厠椋庡紑鍚け璐�',
- open_sound_guide_tips:
- '鍙兘鎮ㄨ嫢瑕佸紑鍚綍闊筹紝璇蜂簬寰俊鐨勮缃€旈殣绉佲€旀巿鏉冪鐞嗕腑寮€鍚€備笖淇濊瘉褰曢煶璁惧姝e父',
- sound_cant_open_tips:
- '姝ゆ祻瑙堝櫒涓嶆敮鎸佸綍闊炽€�<br>寤鸿鏇存崲鍏朵粬涓绘祦娴忚鍣紝浣撻獙鏇翠匠',
- replace_sound_tips: '鏄惁閲嶆柊褰曞埗锛�',
- replace_sound_content: '宸叉湁璇煶璁茶В灏嗕細琚浛鎹�',
- merge_sound_fail: '鍚堝苟璇煶璁茶В澶辫触',
- sound_limit: '褰曞埗鏃堕暱涓簕time}鍒嗛挓锛屽綋鍓嶅凡缁忚揪鍒颁笂闄�',
- select_to_record: '璇烽€夋嫨瀵瑰簲鐐逛綅杩涜鏈尯鍩熺殑瀵艰褰曞埗'
- },
- sign: {
- title: 'Logo鏍峰紡',
- size: 'Logo澶у皬',
- style0: '鏍峰紡涓€',
- style1: '鏍峰紡浜�',
- style2: '鏍峰紡涓�',
- style3: '鎵嬪姩涓婁紶'
- },
- walk: {
- title: '婕父鍙',
- tips1:
- '閫氳繃璁剧疆婕父鍙锛岃繘涓€姝ヤ紭鍖栧湪婕父鏃跺嚭鐜扮殑浣撻獙锛涗緥濡傦紝鎮ㄥ湪婕父鏃讹紝鍑虹幇绌块€忔埧闂寸殑鎯呭喌銆�',
- tips2: '閫氳繃鐐归€夊悇涓极娓哥偣鐨勮繛绾垮嵆鍙缃极娓哥偣鐨勫彲琛屾€с€�',
- save: '淇濆瓨褰撳墠璁剧疆',
- hide: '闅愯棌璇ョ偣浣嶇疆',
- show: '鏄剧ず璇ョ偣浣嶇疆',
- pano_tips:
- '鎻愮ず锛氭偍闅愯棌浜嗗垵濮嬬敾闈㈢偣浣嶏紝姝ゆ搷浣滃皢浣胯繘鍏ュ満鏅悗鏃犳硶婕父銆�'
- },
- model: {
- __name: '3D妯″瀷',
- cad: 'CAD瑙嗚',
- cad_download: '骞抽潰鍥句笅杞�',
- view: '鍒囨崲瑙嗚',
- title: '澧炴坊缁撴瀯',
- title_door: '闂ㄧ獥绫�',
- title_component: '鏋勫缓绫�',
- title_other: '鍏朵粬',
- attribute: '灞炴€�',
- door: '闂�',
- double_door: '闂�',
- slideDoor: '绉婚棬',
- casement: '绐�',
- bayCase: '椋樼獥',
- groundCase: '钀藉湴绐�',
- column: '鏌卞瓙',
- furnColumn: '妗嗘灦鏌�',
- furnFlue: '鐑熼亾',
- point: '鐐�',
- line: '澧�',
- tagging: '鏍囨敞',
- tagging_name_tips: '璇疯緭鍏ュ悕绉�',
- tagging_area_tips: '杈撳叆闈㈢Н锛屾敮鎸佸皬鏁扮偣鍚庨潰涓や綅',
- direction: '鎸囧崡閽�',
- wallLine: '澧欏睘鎬�',
- widget_delete: '{widget}灏嗚鍒犻櫎',
- panel_btn_default: '鎭㈠榛樿',
- panel_btn_delete: '鍒犻櫎閮ㄤ欢',
- attr_angle: '鏃嬭浆瑙掑害',
- attr_within: '缈昏浆鏂瑰悜',
- attr_ewidth: '瀹藉害',
- attr_eheight: '楂樺害',
- attr_tick: '鍘氬害',
- attr_showTitle: '鏍囨敞鍚嶇О',
- attr_showContent: '鏍囨敞闈㈢Н',
- attr_top: '椤堕儴',
- attr_bottom: '搴曢儴',
- attr_estart: '鍏ユ埛闂�',
- success: '鎴愬姛娣诲姞{widget}',
- error_location: '褰撳墠浣嶇疆鏃犳硶娣诲姞{widget}',
- error_outdoor: '鎴峰鏃犳硶娣诲姞{widget}',
- error_something: '褰撳墠浣嶇疆鐐规湁寤虹瓚锛屾棤娉曟坊鍔爗widget}',
- error_widget: '褰撳墠浣嶇疆涓嶅彲娣诲姞{widget}',
- enter_adjust_floor: '杩涘叆鍦伴潰楂樺害璋冭妭妯″紡',
- exit_adjust_floor: '閫€鍑哄湴闈㈤珮搴﹁皟鑺傛ā寮�',
- color_title: '閲忚鍣ㄩ鑹诧細'
- },
- cad: {
- __name: '鎴峰瀷鍥�',
- name: '鎴峰瀷鍥�',
- no_tip: '涓嶅啀鎻愮ず',
- reset: '閲嶇疆',
- cad_download: '鎴峰瀷鍥句笅杞�',
- cad_download_ing: '涓嬭浇涓€�',
- label_tip: '鐐瑰嚮鍙抽敭鎴朎sc閿彲浠ラ€€鍑烘坊鍔犳爣娉ㄣ€�',
- wall_tip: '鐐瑰嚮鍙抽敭鎴朎sc閿彲浠ラ€€鍑虹敾澧欍€�',
- save_undf_tip: '鏃犳硶淇濆瓨绌烘埛鍨嬪浘銆�',
- reload_tip:
- '鍗冲皢瀵煎叆鐢辨ā鍨嬬敓鎴愮殑鎴峰瀷鍥撅紝姝ゆ搷浣滀細娓呯┖鐜版湁鎴峰瀷锛屾槸鍚︾户缁紵',
- reset_tip: '姝ゆ搷浣滀細娓呯┖鐜版湁鎴峰瀷锛屾槸鍚︾户缁紵',
- title_door: '闂ㄧ獥',
- title_component: '鏋勫缓',
- title_wall: '鐢诲',
- title_other: '鏍囨敞',
- border_wall: '澶栧',
- wall: '鍐呭',
- attribute: '灞炴€�',
- door: '闂�',
- slideDoor: '绉婚棬',
- doubleDoor: '鍙屽紑闂�',
- casement: '绐�',
- bayCase: '椋樼獥',
- groundCase: '钀藉湴绐�',
- column: '鏌卞瓙',
- furnColumn: '妗嗘灦鏌�',
- furnFlue: '鐑熼亾',
- point: '鐐�',
- line: '澧�',
- tagging: '鍗曚釜',
- un_data_tip: '鏃犳硶涓嬭浇绌烘埛鍨嬪浘锛岃鍏堢粯鍒躲€�',
- taggings: '澶氫釜',
- tagging_name_tips: '璇疯緭鍏ュ悕绉�',
- tagging_custom_name_tips: '鑷畾涔夋埧闂村悕绉�',
- tagging_area_tips: '杈撳叆闈㈢Н锛屾敮鎸佸皬鏁扮偣鍚庨潰涓や綅',
- direction: '鎸囧崡閽�',
- wallLine: '澧欏睘鎬�',
- widget_delete: '{widget}灏嗚鍒犻櫎',
- panel_btn_default: '鎭㈠榛樿',
- panel_btn_delete: '鍒犻櫎閮ㄤ欢',
- attr_angle: '鏃嬭浆瑙掑害',
- attr_within: '缈昏浆鏂瑰悜',
- attr_ewidth: '瀹藉害',
- attr_eheight: '楂樺害',
- attr_tick: '鍘氬害',
- attr_showTitle: '鏍囨敞鍚嶇О',
- attr_showContent: '鏍囨敞闈㈢Н',
- attr_top: '椤堕儴',
- attr_bottom: '搴曢儴',
- attr_estart: '鍏ユ埛闂�',
- success: '鎴愬姛娣诲姞{widget}',
- error_location: '褰撳墠浣嶇疆鏃犳硶娣诲姞{widget}',
- error_outdoor: '鎴峰鏃犳硶娣诲姞{widget}',
- error_something: '褰撳墠浣嶇疆鐐规湁寤虹瓚锛屾棤娉曟坊鍔爗widget}',
- error_widget: '褰撳墠浣嶇疆涓嶅彲娣诲姞{widget}',
- enter_adjust_floor: '杩涘叆鍦伴潰楂樺害璋冭妭妯″紡',
- exit_adjust_floor: '閫€鍑哄湴闈㈤珮搴﹁皟鑺傛ā寮�',
- color_title: '閲忚鍣ㄩ鑹诧細',
- hall_tests: '鏁村,瀹㈠巺,璧板粖,椁愬巺,璧峰眳瀹�,瀹㈤鍘�,鐜勫叧,闂ㄥ巺',
- room_tests: '涓诲崸,鍎跨鎴�,娆″崸,瀹㈠崸,鑰佷汉鎴�,鍗у',
- other_tests:
- '涔︽埧,鍘ㄦ埧,鍗敓闂�,澶氬姛鑳藉,闃冲彴,鍌ㄧ墿闂�,姝ュ叆寮忚。鏌�,澶栨櫙,闇插彴锛堟棤椤讹級,褰辫闂�,鍏ユ埧鑺卞洯',
- rotate: '鏃嬭浆'
- },
- videos: {
- __name: '娣诲姞瑙嗛',
- tips: '璇峰厛鐐瑰嚮鍦烘櫙鐨勫熀鍑嗛潰锛岀‘瀹氳棰戜綅缃�',
- panel_title: '瑙嗛灞炴€�',
- panel_preview: '棰勮',
- panel_upload: '涓婁紶瑙嗛',
- panel_upload_tips: '鏀寔MP4瑙嗛鏍煎紡',
- panel_move: '浣嶇Щ',
- panel_zoom: '缂╂斁',
- panel_thickness: '鍘氬害',
- recoverRatio: '鎭㈠鍘熷姣斾緥',
- recoverRatioTip: '鎭㈠瑙嗛鏂囦欢鍘熷闀垮姣�'
- },
- custom: {
- model_title: '妯″瀷涓嬭浇',
- uploading: '鏂囦欢涓婁紶涓�...',
- download: '鍘熷妯″瀷涓嬭浇',
- download_panos: '涓嬭浇鐐逛綅鍥�',
- upload: '淇敼妯″瀷涓婁紶',
- title1: '妯″瀷涓嬭浇/涓婁紶鍔熻兘鏁欑▼',
- tips11:
- '1.涓嬭浇鍦烘櫙妯″瀷鐨勫帇缂╁寘鍚庯紝浣跨敤涓夌淮杞欢鎵撳紑瑙e帇鍚庢枃浠垛€渕esh.obj鈥濓紝鍗冲彲寮€灞曠紪杈戯紱',
- tips12:
- '2.缂栬緫瀹屾垚鍚庯紝寤鸿灏嗘ā鍨嬭创鍥捐繘琛岀儤鐒欙紝鐑樼剻璐村浘闇€鎺у埗鍦�1.5M浠ュ唴锛屽悓鏃讹紝淇濆瓨鐨刼bj鏂囦欢闇€瑕佹帶鍒跺湪3M浠ュ唴锛�',
- tips13: '3.瀹屾垚1銆�2姝ラ鍚庯紝灏唎bj,mtl,璐村浘鎵撳寘涓簔ip鍘嬬缉鍖呬笂浼犲嵆鍙€�',
- title2: '娉細',
- tips21: '1.璇峰敖閲忔帶鍒舵枃浠跺ぇ灏忥紝浠ュ厤娴忚鐨勬椂鍊欏崱椤匡紝褰卞搷浣撻獙銆�',
- tips22: '2.璇峰皢obj鍙婂帇缂╁寘鐨勫悕绉颁繚鎸佷竴鑷达紝鍚﹀垯浼氭浛鎹㈠け璐ャ€�',
- get_image_fail:
- '鑾峰彇璐村浘澶辫触锛屽彲鑳界綉缁滅姸鎬佷笉浣筹紝璇锋鏌ユ偍鐨勭綉缁滆缃苟閲嶆柊灏濊瘯銆�',
- download_model_fail: '妯″瀷涓嬭浇澶辫触',
- reupload_tips: '涓婁紶鍚庣偣鍑讳繚瀛樺苟鍙戝竷鐢熸晥',
- panoramic_upload: '鍏ㄦ櫙鐓х墖涓婁紶',
- panoramic_upload_tips: '涓婁紶鍚庣偣鍑烩€滀繚瀛樺苟鍙戝竷鈥濆嵆鐢熸晥',
- panoramic_upload_box_tips: '璇蜂笂浼犲搴旂偣浣嶅悕绉扮殑JPG鍥剧墖',
- panoramic_download: '鍏ㄦ櫙鐓х墖涓嬭浇',
- panoramic_download_tips: '璇峰嬁淇敼鐓х墖鍚嶇О鍜屾牸寮�',
- panoramic: '鍏ㄦ櫙鍥剧墖',
- ball_video: '鐞冨箷瑙嗛',
- ball_video_upload_tips: '涓婁紶鍚庣偣鍑烩€滀繚瀛樺苟鍙戝竷鈥濆嵆鐢熸晥',
- ball_video_download_tips: '璇峰嬁淇敼瑙嗛鍚嶇О鍜屾牸寮�',
- ball_video_upload_box_tips: '鐞冨箷瑙嗛鏀寔MP4鏍煎紡锛屼笉瓒呰繃1024M',
- upload_title: '涓婁紶鏂囦欢',
- upload_format_error: '鏂囦欢鏍煎紡閿欒锛岃閲嶆柊涓婁紶',
- upload_name_error: '鏂囦欢鍚嶇О閿欒锛岃閲嶆柊涓婁紶',
- upload_success: '涓婁紶鎴愬姛锛屼繚瀛樺苟鍙戝竷鍚庢墠鑳界敓鏁�',
- upload_code_5017: '涓婁紶妯″瀷澶辫触锛岃鍙傜収鍙充晶鏁欑▼',
- upload_code_5018: 'zip鏂囦欢鍙兘鏈変竴灞傜洰褰曟垨鏃犵洰褰�',
- upload_code_5019: '蹇呴』鏈変笖浠呮湁涓€涓猳bj鍜宮tl鏂囦欢',
- upload_code_5020: '璐村浘闇€鎺у埗鍦�1.5M浠ュ唴锛宱bj鏂囦欢闇€瑕佹帶鍒跺湪20M浠ュ唴銆�',
- upload_code_5012: '鏁版嵁涓嶆甯�',
- upload_code_5023: '涓婁紶鏂囦欢鏍煎紡涓嶆纭紝鍙兘鏄痡pg鎴杕p4鏍煎紡',
- download_tips: '涓嬭浇鍚庡悕绉颁笌鏍煎紡璇峰嬁淇敼',
- download_fail: '涓嬭浇澶辫触'
- },
- vrhouse: {
- __name: 'VR鐪嬫埧',
- linkto_management: '鍓嶅線鐪嬫埧绠$悊鍚庡彴',
- refer: '鍒锋柊',
- scene_link: '鍦烘櫙閾炬帴'
- },
- business: {
- __name: '鍟嗗湀妯″潡',
- list_title: '鍦烘櫙鐑偣鍒楄〃',
- list_unf: '褰撳墠鍦烘櫙娌℃湁鐑偣',
- add_tip_info: '璇峰湪鍦烘櫙涓坊鍔犵儹鐐瑰悗锛屽啀缁戝畾鐑偣',
- linkto_management: '鍓嶅線鐪嬪簵绠$悊鍚庡彴',
- refer: '鍒锋柊',
- scene_link: '鍦烘櫙閾炬帴',
- explain: '璇存槑',
- shopexplain: {
- 1: '褰撳墠鍟嗗搧鏁版嵁鏉ユ簮浜庡満鏅粦瀹氱殑4DKanKan搴楅摵鍟嗗搧鏁版嵁锛屽闇€澧炲姞璇风偣鍑�',
- 2: '姝ゅ璺宠浆'
- },
- select_style: '閫夋嫨鐑偣鏍峰紡',
- join_info: '鍏宠仈鍟嗗搧淇℃伅',
- add_com: '娣诲姞鍟嗗搧',
- join_info_show: '鍏宠仈鍟嗗搧浼氬湪鐑偣涓睍绀�',
- select_com: '閫夋嫨鍟嗗搧'
- },
- link: {
- __name: '璺宠浆鍏宠仈',
- title1: '閿佸畾鍏宠仈鐐�',
- title2: '缂栬緫鍏宠仈鐐�',
- title3: '鍏ㄦ櫙鍥惧叧鑱�',
- list_text: ' 宸插叧鑱斿満鏅�({l_count}), 鍏ㄦ櫙鍥�({p_count})',
- btn_new_text: '娣诲姞鍏宠仈鐐�',
- btn_add_title: '鍏宠仈鐐瑰畾浣�',
- btn_add_text: '纭畾鍏宠仈鐐逛綅缃�',
- btn_add_desc: '灏嗗叧鑱旂偣鏍囪骞舵嫋鍔ㄥ埌鍚堥€傜殑浣嶇疆銆�',
- btn_edit_text: '淇敼鍏宠仈鐐逛綅缃�',
- style: '鍏宠仈鐐规牱寮�',
- style_name: '鏍峰紡',
- style_desc: '鏀寔鑷畾涔夊浘鏍囷紝寤鸿灏哄涓�128x128 鍍忕礌锛屾牸寮忎负jpg/png銆�',
- style_dele:
- '鏄惁鍒犻櫎璇ユ牱寮忥紵<br />濡傝鏍峰紡鍦ㄥ叾瀹冨叧鑱旂偣浣跨敤锛屼篃灏嗚鍒犻櫎',
- desc_title: '鎻忚堪',
- desc_tips: '璇疯緭鍏ユ弿杩板唴瀹�',
- desc_require: '璇疯緭鍏ユ弿杩板唴瀹�',
- type: '閫夋嫨鍏宠仈绫诲瀷',
- type_photo:
- '鏀寔涓婁紶瀹介珮姣斾负2:1鐨勫崟寮犲叏鏅浘鐗囷紝寤鸿鍍忕礌涓嶅皬浜�6000x3000鍍忕礌锛屾枃浠朵笉瓒呰繃120M銆�',
- type_photo_require: '璇蜂笂浼犲叏鏅浘',
- type_link: '璇疯緭鍏ョ洰鏍囧満鏅摼鎺�',
- type_link_tips: 'http(s)://',
- type_link_require: '璇疯緭鍏ラ渶瑕佽烦杞殑鍦烘櫙閾炬帴',
- enter_title: '杩涘叆鐢婚潰',
- enter_require: '璇疯缃繘鍏ョ敾闈�',
- enter_btn_text: '璁剧疆杩涘叆鐢婚潰',
- outer_title: '璺冲嚭鐐逛綅缃�',
- outer_style: '璺冲嚭鐐规牱寮�',
- outer_desc: '鏀寔鑷畾涔夊浘鏍囷紝寤鸿灏哄涓�128x128鍍忕礌锛屾牸寮忎负jpg/png銆�',
- outer_require: '璇疯缃烦鍑虹偣浣嶇疆',
- outer_btn_text: '璁剧疆璺冲嚭鐐逛綅缃�',
- links_title: '閫夋嫨鍏ㄦ櫙鍥�',
- links_tips: '閫夋嫨鍏ㄦ櫙鍥撅紝鎷栧姩鍒板乏渚х敾闈㈢浉搴斾綅缃紝杩涜璺宠浆璁剧疆銆�',
- links_cancel_tips: '鍙栨秷鍏宠仈璁剧疆'
- }
- },
- login: {
- __name: '鐧诲綍',
- title: '鎻愮ず',
- login: '鍘荤櫥褰�',
- logon: '鐧诲綍瀹屾瘯锛岀户缁�',
- login_tips: '鎮ㄦ病鏈夌櫥褰曪紝璇蜂簬涓婚〉鐧诲綍鍚庡啀缂栬緫'
- },
- common: {
- __name: '鍏敤',
- on: '鎵撳紑',
- off: '鍏抽棴',
- add: '娣诲姞',
- set: '纭畾',
- ok: '纭畾',
- save: '淇濆瓨',
- cancel: '鍙栨秷',
- complete: '瀹屾垚',
- edit: '淇敼',
- giveup: '鏀惧純',
- commit: '鎻愪氦',
- photo: '鍥剧墖',
- voice: '闊抽',
- video: '瑙嗛',
- bgm: '闊充箰',
- crop: '瑁佸壀',
- upload: '涓婁紶',
- download: '涓嬭浇',
- change: '鏇存敼',
- unnamed: '鏈懡鍚�',
- publish: '淇濆瓨骞跺彂甯�',
- publish_text: '淇濆瓨骞跺彂甯冩垚鍔燂紒',
- publish_tips: '鏄惁绔嬪埢鍓嶅線瑙傜湅鎮ㄧ殑鍦烘櫙锛�',
- publish_btn_ok: '绔嬪埢鍓嶅線',
- publish_btn_no: '鏆傛椂涓嶅幓',
- public: '鍏紑',
- private: '鍔犲瘑',
- waiting: '璇风◢绛�...',
- audio: '闊抽',
- second: '绉�',
- delete: '鍒犻櫎',
- prev: '涓婁竴姝�',
- next: '涓嬩竴姝�',
- meter: '绾meter}绫�',
- guide: '瀵艰',
- rule: '娴嬮噺宸ュ叿',
- roaming: '婕父',
- continue: '缁х画',
- ensure_delete: '纭畾鍒犻櫎',
- text_limit: '闄愬埗{limit}瀛楀唴',
- default: '榛樿',
- custom: '鑷畾涔�',
- back: '杩斿洖',
- will_delete: '灏嗚鍒犻櫎',
- setup: '璁剧疆',
- exit: '閫€鍑�',
- size: '澶у皬',
- music: {
- __name: '鑳屾櫙闊充箰',
- none: '鏃�',
- cheerfu: '娆㈠揩',
- ethereal: '绌虹伒',
- rhythmic: '鑺傚',
- nostalgic: '鎬€鏃�',
- missing: '鎯冲康',
- retro: '澶嶅彜',
- strings: '鐞村鸡',
- happy: '鎰夊揩'
- },
- category: {
- __name: '鍒嗙被',
- museum: '鏂囧崥',
- estate: '鍦颁骇',
- eshop: '鐢靛晢',
- catering: '椁愰ギ',
- home: '瀹跺眳',
- other: '鍏朵粬'
- },
- uploads: {
- __name: '鏂囦欢涓婁紶',
- uploading: '涓婁紶涓�',
- uploaded: '宸蹭笂浼�',
- wait: '绛夊緟涓婁紶...',
- error: '涓婁紶鍑洪敊',
- add: '娣诲姞鏂囦欢',
- start: '寮€濮嬩笂浼�',
- file_require: '璇锋坊鍔犳枃浠�',
- cant_upload: '鎮ㄧ殑娴忚鍣ㄤ笉鏀寔涓婁紶鏂囦欢',
- not_support: '鎮ㄩ€夋嫨鐨勪笉鏄祻瑙堝櫒鏀寔鐨剓fileType}鏂囦欢,璇烽噸鏂伴€夋嫨',
- too_large: '鏂囦欢杩囧ぇ锛屼笉鑳藉ぇ浜巤size}MB',
- too_large_reupload_tips: '涓婁紶瑙嗛杩囧ぇ锛岃閲嶆柊涓婁紶'
- },
- tips: { __name: '鎻愮ず', wait: '璇风瓑寰�...' }
- },
- tips: {
- __name: '寮圭獥銆佹彁绀�',
- title: '鎻愮ず',
- set_done: '璁剧疆鎴愬姛',
- set_fail: '璁剧疆澶辫触',
- save_done: '淇濆瓨鎴愬姛',
- save_fail: '淇濆瓨澶辫触',
- delete: '鏄惁鍒犻櫎锛�',
- delete_done: '鍒犻櫎鎴愬姛',
- delete_fail: '鍒犻櫎澶辫触',
- upload_done: '涓婁紶鎴愬姛',
- upload_fail: '涓婁紶澶辫触',
- exception: '寮傚父閿欒',
- network_error: '缃戠粶杩炴帴澶辫触锛岃绋嶅悗鍐嶈瘯',
- file_notfound: '鏂囦欢涓嶅瓨鍦�',
- scene_notfound: '鍦烘櫙涓嶅瓨鍦�',
- params_notfound: '缂哄皯蹇呰鍙傛暟',
- camera_notfound: '鎵句笉鍒拌鍦烘櫙瀵瑰簲鐨勭浉鏈�',
- password_error: '瀵嗙爜閿欒',
- data_error: '鏁版嵁涓嶆甯�',
- auth_deny: '鏃犳潈鎿嶄綔璇ュ満鏅�',
- clear: '鏄惁娓呯┖锛�',
- upload_pic_fail: '涓婁紶鍥剧墖澶辫触',
- wait: '璇风◢鍚�...',
- house_type_save_fail: '鎴峰瀷淇濆瓨澶辫触'
- },
- show: {
- __name: '灞曠ず椤甸潰',
- on: '寮€鍚�',
- off: '鍏抽棴',
- measure: '娴嬭窛宸ュ叿',
- measure_start: '璧风偣',
- measure_end: '缁堢偣',
- measure_button: '纭畾{status}',
- location_up: '涓婃柟',
- location_left: '宸︿晶',
- location_start_tips: '璇峰厛鍦▄direction}鐐瑰嚮',
- location_end_tips: '璧风偣纭畾瀹屾瘯锛岃瀹氫綅缁堢偣',
- vr: 'VR妯″紡',
- share: '鍒嗕韩',
- music: '{status}闊充箰',
- password_tips: '瀵嗙爜',
- password_require: '璇疯緭鍏ュ瘑鐮�'
- },
- components: {
- user_guid: {
- __name: '鐢ㄦ埛寮曞',
- title: '鎿嶄綔鎻愮ず',
- pano: '琛岃蛋<br />鐐瑰嚮浠绘剰鏂瑰悜绉诲姩',
- rotate: '鏃嬭浆瑙嗚<br />宸﹀彸婊戝姩灞忓箷锛屾棆杞瑙�',
- zoom: '缂╂斁<br />鍙屾寚婊戝姩鏀惧ぇ鎴栫缉灏忚鍥�',
- set: '鎴戠煡閬撲簡'
- }
- }
- })
- },
- function (t, e, i) {
- var n =
- (this && this.__assign) ||
- function () {
- return (n =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- g =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- A =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var r = A(i(5)),
- o = A(i(14)),
- C = A(i(11)),
- I = A(i(8)),
- s = A(i(15)),
- a = A(i(7)),
- l = A(i(16)),
- u = A(i(17)),
- c = A(i(18)),
- h = A(i(19)),
- p = A(i(20)),
- d = A(i(21))
- ;(e.methods = {
- addPoint: function (t) {
- var e = t.id,
- i = t.x,
- n = t.y,
- g = { id: e, ele: new r.default({ x: i, y: n, renderer: this.render }) }
- return this.points.push(g), this.generateElement(g.ele), g
- },
- addLine: function (t) {
- var e = t.id,
- i = t.p1,
- n = t.p2,
- g = t.border,
- A = t.exterior,
- r = t.isOut,
- C = {
- id: e,
- ele: new o.default({
- border: g,
- exterior: A,
- points: [
- this.points.find(function (t) {
- return t.id === i
- }).ele,
- this.points.find(function (t) {
- return t.id === n
- }).ele
- ],
- renderer: this.render,
- isOut: r
- }),
- border: g,
- isOut: r,
- exterior: A
- }
- return (
- this.lines.push(C),
- this.generateElement(C.ele),
- A &&
- (C.ele.points.forEach(function (t) {
- return t.real.setAttribute('pointer-events', 'none')
- }),
- (C.ele.zIndex = -1)),
- C
- )
- },
- addCase: function (t) {
- var e = t.pos,
- i = t.line,
- n = t.top,
- g = void 0 === n ? null : n,
- A = t.bottom,
- r = void 0 === A ? null : A,
- o = {
- ele: new C.default({
- renderer: this.render,
- attachment: this.lines.find(function (t) {
- return t.id === i
- }).ele,
- points: [
- { x: e[0], y: e[1] },
- { x: e[2], y: e[3] }
- ],
- top: g,
- bottom: r
- })
- }
- return this.cases.push(o), this.generateElement(o.ele), o
- },
- addDoor: function (t) {
- var e = t.pos,
- i = t.line,
- n = t.top,
- g = void 0 === n ? null : n,
- A = t.bottom,
- r = void 0 === A ? null : A,
- o = t.within,
- C = t.show,
- s = t.start,
- a = {
- ele: new I.default({
- show: C,
- renderer: this.render,
- attachment: this.lines.find(function (t) {
- return t.id === i
- }).ele,
- points: [
- { x: e[0], y: e[1] },
- { x: e[2], y: e[3] }
- ],
- top: g,
- bottom: r,
- within: o,
- start: s
- })
- }
- return this.doors.push(a), this.generateElement(a.ele), a
- },
- adddDoubleDoor: function (t) {
- var e = t.pos,
- i = t.line,
- n = t.top,
- g = void 0 === n ? null : n,
- A = t.bottom,
- r = void 0 === A ? null : A,
- o = t.within,
- C = t.show,
- I = t.start,
- s = {
- ele: new l.default({
- show: C,
- renderer: this.render,
- attachment: this.lines.find(function (t) {
- return t.id === i
- }).ele,
- points: [
- { x: e[0], y: e[1] },
- { x: e[2], y: e[3] }
- ],
- top: g,
- bottom: r,
- within: o,
- start: I
- })
- }
- return this.doubleDoors.push(s), this.generateElement(s.ele), s
- },
- addSlideDoor: function (t) {
- var e = t.pos,
- i = t.line,
- n = t.top,
- g = void 0 === n ? null : n,
- A = t.bottom,
- r = void 0 === A ? null : A,
- o = t.within,
- C = void 0 === o ? 0 : o,
- I = {
- ele: new s.default({
- within: C,
- bwithin: 1.5,
- renderer: this.render,
- attachment: this.lines.find(function (t) {
- return t.id === i
- }).ele,
- points: [
- { x: e[0], y: e[1] },
- { x: e[2], y: e[3] }
- ],
- top: g,
- bottom: r
- })
- }
- return this.slideDoors.push(I), this.generateElement(I.ele), I
- },
- addBayCase: function (t) {
- var e = t.pos,
- i = t.line,
- n = t.top,
- g = void 0 === n ? null : n,
- A = t.bottom,
- r = void 0 === A ? null : A,
- o = t.within,
- C = {
- ele: new d.default({
- renderer: this.render,
- attachment: this.lines.find(function (t) {
- return t.id === i
- }).ele,
- points: [
- { x: e[0], y: e[1] },
- { x: e[2], y: e[3] }
- ],
- top: g,
- bottom: r,
- within: o
- })
- }
- return this.bayCases.push(C), this.generateElement(C.ele), C
- },
- addGroundCase: function (t) {
- var e = t.pos,
- i = t.line,
- n = t.top,
- g = void 0 === n ? null : n,
- A = t.bottom,
- r = void 0 === A ? null : A,
- o = {
- ele: new p.default({
- renderer: this.render,
- attachment: this.lines.find(function (t) {
- return t.id === i
- }).ele,
- points: [
- { x: e[0], y: e[1] },
- { x: e[2], y: e[3] }
- ],
- top: g,
- bottom: r
- })
- }
- return this.groundCases.push(o), this.generateElement(o.ele), o
- },
- addColumn: function (t) {
- var e = t.pos,
- i = t.line,
- n = {
- ele: new a.default({
- renderer: this.render,
- attachment: this.lines.find(function (t) {
- return t.id === i
- }).ele,
- points: [
- { x: e[0], y: e[1] },
- { x: e[2], y: e[3] },
- { x: e[6], y: e[7] },
- { x: e[4], y: e[5] }
- ]
- })
- }
- return this.columns.push(n), this.generateElement(n.ele), n
- },
- addFurnColumn: function (t) {
- var e = t.pos,
- i = t.angle,
- n = {
- ele: new u.default({
- points: [
- { x: e[0], y: e[1] },
- { x: e[2], y: e[3] },
- { x: e[4], y: e[5] },
- { x: e[6], y: e[7] }
- ],
- renderer: this.render,
- angle: i
- })
- }
- return this.furnColumns.push(n), this.generateElement(n.ele), n
- },
- addRoom: function (t) {
- for (
- var e,
- i,
- g = this,
- A = t.points.map(function (t) {
- return g.addPoint(n(n({}, t), { id: g.getNewPointId() }))
- }),
- r = [],
- o = 0;
- o < A.length - 1;
- o++
- )
- r.push(
- this.addLine({
- id: this.getNewLineId(),
- p1: A[o].id,
- p2: A[o + 1].id,
- isOut: !1,
- border: !1
- })
- )
- return (
- r.forEach(function (t) {
- return t.ele.update()
- }),
- (e = this.data.vertex).push.apply(
- e,
- A.map(function (t) {
- return { id: t.id, x: t.ele.x, y: t.ele.y }
- })
- ),
- (i = this.data.wall).push.apply(
- i,
- r.map(function (t) {
- return t.id
- })
- ),
- r
- )
- },
- addFurnFlue: function (t) {
- var e = t.pos,
- i = t.angle,
- n = {
- ele: new c.default({
- points: [
- { x: e[0], y: e[1] },
- { x: e[2], y: e[3] },
- { x: e[4], y: e[5] },
- { x: e[6], y: e[7] }
- ],
- renderer: this.render,
- angle: i
- })
- }
- return this.furnFlues.push(n), this.generateElement(n.ele), n
- },
- addTagging: function (t) {
- var e = t.pos,
- i = t.title,
- n = t.content,
- g = t.show,
- A = void 0 === g || g,
- r = t.showTitle,
- o = t.showContent,
- 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
- })
- }
- return this.taggings.push(C), this.generateElement(C.ele), C
- },
- generateElement: function (t) {
- this.render.push(t),
- this.retrofitElementDestroy(t),
- t instanceof o.default && this.retrofitElementIntercept(t)
- },
- generateElements: function () {
- var t = this
- g(
- this.lines.map(function (t) {
- return t.ele
- }),
- this.points.map(function (t) {
- return t.ele
- }),
- this.cases.map(function (t) {
- return t.ele
- }),
- this.doors.map(function (t) {
- return t.ele
- }),
- this.columns.map(function (t) {
- return t.ele
- })
- ).forEach(function (e) {
- return t.generateElement(e)
- })
- },
- toEles: function (t) {
- var e,
- i = this,
- n = t.vertex,
- g = t.wall,
- A = t.window,
- r = t.door,
- o = t.column,
- C = t.slideDoor,
- I = t.tagging,
- s = t.groundCase,
- a = t.bayCase,
- l = t.furnColumn,
- u = t.furnFlue,
- c = t.doubleDoor
- ;(this.data = t),
- console.log(g),
- n.forEach(function (t) {
- return i.addPoint(t)
- }),
- g.forEach(function (t) {
- var e = t.p1,
- n = t.p2,
- g = t.id,
- A = t.border,
- r = t.exterior
- i.addLine({ p1: e, p2: n, id: g, border: A, exterior: r, isOut: !1 })
- }),
- (e = [A, r, o, C, s, a, c].map(function (t) {
- return (
- t.forEach(function (t) {
- var e = g.find(function (e) {
- var i = e.id
- return t.line === i
- })
- if (e) {
- var n = e.p1,
- A = e.p2,
- r = i.lines.find(function (t) {
- t.id
- var e = t.ele.points.map(function (t) {
- return i.points.find(function (e) {
- return e.ele === t
- }).id
- })
- return ~e.indexOf(n) && ~e.indexOf(A)
- })
- t.line = r.id
- } else t.line = 0
- }),
- (t = t.filter(function (t) {
- return !t.pos.some(function (t) {
- return null === t
- })
- }))
- )
- })),
- (A = e[0]),
- (r = e[1]),
- (o = e[2]),
- (C = e[3]),
- (s = e[4]),
- (a = e[5]),
- (c = e[6]),
- A.forEach(function (t) {
- return 0 !== t.line && i.addCase(t)
- }),
- r.forEach(function (t) {
- return 0 !== t.line && i.addDoor(t)
- }),
- o.forEach(function (t) {
- return 0 !== t.line && i.addColumn(t)
- }),
- C.forEach(function (t) {
- return 0 !== t.line && i.addSlideDoor(t)
- }),
- s.forEach(function (t) {
- return 0 !== t.line && i.addGroundCase(t)
- }),
- a.forEach(function (t) {
- return 0 !== t.line && i.addBayCase(t)
- }),
- I.forEach(function (t) {
- return i.addTagging(t)
- }),
- c.forEach(function (t) {
- return i.adddDoubleDoor(t)
- }),
- l.forEach(function (t) {
- i.addFurnColumn(t)
- }),
- u.forEach(function (t) {
- i.addFurnFlue(t)
- }),
- this.referElements(),
- (this.id = t.id),
- (this.show = t.show)
- },
- referElements: function () {
- var t = this
- g(this.lines, this.points, this.cases, this.doors, this.columns).forEach(function (e) {
- var i = e.ele
- t.render.g.removeChild(i.real), t.render.elements.splice(t.render.elements.indexOf(i), 1)
- }),
- this.generateElements()
- }
- }),
- (e.methods.attrs = [
- 'cases',
- 'doors',
- 'slideDoors',
- 'doubleDoors',
- 'columns',
- 'lines',
- 'points',
- 'groundCases',
- 'taggings',
- 'bayCases',
- 'furnColumns',
- 'furnFlues'
- ])
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var r = A(i(5)),
- o = i(3),
- C = i(0),
- I = (function (t) {
- function e(e, i) {
- var n = t.call(this, e) || this
- return (n.line = i), n
- }
- return (
- g(e, t),
- (e.prototype.getLineInsertPoint = function (t) {
- void 0 === t && (t = this)
- var e = C.getLinePoint(this.line, t)
- return e
- }),
- (e.prototype.intercept = function (t, e) {
- var i = e.x,
- n = e.y
- return (
- !(!o.type.isUndefined(i) && !o.type.isUndefined(n)) ||
- this.getLineInsertPoint({ x: i, y: n })
- )
- }),
- e
- )
- })(r.default)
- e.default = I
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__awaiter) ||
- function (t, e, i, n) {
- return new (i || (i = Promise))(function (g, A) {
- function r(t) {
- try {
- C(n.next(t))
- } catch (t) {
- A(t)
- }
- }
- function o(t) {
- try {
- C(n.throw(t))
- } catch (t) {
- A(t)
- }
- }
- function C(t) {
- var e
- t.done
- ? g(t.value)
- : ((e = t.value),
- e instanceof i
- ? e
- : new i(function (t) {
- t(e)
- })).then(r, o)
- }
- C((n = n.apply(t, e || [])).next())
- })
- },
- o =
- (this && this.__generator) ||
- function (t, e) {
- var i,
- n,
- g,
- A,
- r = {
- label: 0,
- sent: function () {
- if (1 & g[0]) throw g[1]
- return g[1]
- },
- trys: [],
- ops: []
- }
- return (
- (A = { next: o(0), throw: o(1), return: o(2) }),
- 'function' == typeof Symbol &&
- (A[Symbol.iterator] = function () {
- return this
- }),
- A
- )
- function o(A) {
- return function (o) {
- return (function (A) {
- if (i) throw new TypeError('Generator is already executing.')
- for (; r; )
- try {
- 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)
- )
- return g
- switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
- case 0:
- case 1:
- g = A
- break
- case 4:
- return r.label++, { value: A[1], done: !1 }
- case 5:
- r.label++, (n = A[1]), (A = [0])
- continue
- case 7:
- ;(A = r.ops.pop()), r.trys.pop()
- continue
- default:
- if (
- !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
- (6 === A[0] || 2 === A[0])
- ) {
- r = 0
- continue
- }
- if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
- r.label = A[1]
- break
- }
- if (6 === A[0] && r.label < g[1]) {
- ;(r.label = g[1]), (g = A)
- break
- }
- if (g && r.label < g[2]) {
- ;(r.label = g[2]), r.ops.push(A)
- break
- }
- g[2] && r.ops.pop(), r.trys.pop()
- continue
- }
- A = e.call(t, r)
- } catch (t) {
- ;(A = [6, t]), (n = 0)
- } finally {
- i = g = 0
- }
- if (5 & A[0]) throw A[1]
- return { value: A[0] ? A[1] : void 0, done: !0 }
- })([A, o])
- }
- }
- },
- C =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- I =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- s =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var a = s(i(10)),
- l = i(0),
- u = (i(3), s(i(4))),
- c = i(1),
- h = (function (t) {
- function e(e) {
- var i = e.isOut,
- n = e.hover,
- g = e.width,
- r = void 0 === g ? 3 : g,
- o = e.border,
- I = void 0 !== o && o,
- s = e.exterior,
- a = C(e, ['isOut', 'hover', 'width', 'border', 'exterior']),
- l = t.call(this, A(A({}, a), { width: r })) || this
- return (
- (l.hover = n || A(A({}, l.init), { color: 'rgba(243, 255, 0, 0.8)' })),
- (l.isOut = i),
- (l.adopt = !1),
- (l.border = I),
- (l.exterior = s),
- l.listenPointDrag(),
- Object.defineProperty(l, 'wallLines', {
- get: function () {
- return a.renderer.processing.lines.map(function (t) {
- return t.ele
- })
- }
- }),
- l
- )
- }
- return (
- g(e, t),
- (e.prototype.setHoverStyle = function () {
- ;(this.color = this.hover.color),
- (this.width = this.hover.width),
- (this.linecap = this.hover.linecap)
- }),
- (e.prototype.setUnHoverStyle = function () {
- ;(this.color = this.init.color),
- (this.width = this.init.width),
- (this.linecap = this.init.linecap)
- }),
- (e.prototype.destoryPoint = function (t) {
- return r(this, void 0, void 0, function () {
- return o(this, function (e) {
- return t.destroy(), [2]
- })
- })
- }),
- (e.prototype.listenPointDrag = function (t) {
- var e = this
- void 0 === t && (t = this.points),
- t.forEach(function (t) {
- t.__join_lines
- ? ~t.__join_lines.indexOf(e) || t.__join_lines.push(e)
- : (t.__join_lines = [e])
- })
- }),
- (e.prototype.getDelRetain = function () {
- return { delIndex: 0, retainIndex: 1 }
- }),
- (e.prototype.judgeMerge = function () {
- return r(this, void 0, void 0, function () {
- var t,
- i,
- n,
- g,
- A,
- r = this
- return o(this, function (o) {
- switch (o.label) {
- case 0:
- if (
- this.points[0] === this.points[1] ||
- l.lineDis({ points: this.points }) > e.minWidth ||
- (u.default.attaArch.get(this) && u.default.attaArch.get(this).length)
- )
- return [2]
- t = this.wallLines
- try {
- ;(g = this.getDelRetain()), (i = g.delIndex), (n = g.retainIndex)
- } catch (t) {
- return [2]
- }
- return (
- (A = this.points[n]),
- [
- 4,
- Promise.all(
- t.map(function (t) {
- var e
- if (t !== r && ~(e = t.points.indexOf(r.points[i])))
- return new Promise(function (g) {
- t.nextTick(function () {
- var A = I(t.points)
- ;(A[e] = r.points[n]),
- A[i] === A[n]
- ? t.destroy()
- : (t.renderer.processing.updateWallPoints(t, t.points, A),
- (t.points = A),
- t.listenPointDrag(A),
- t.update(),
- t.nextTick(function () {
- return t.updateJoin()
- })),
- g()
- })
- })
- })
- )
- ]
- )
- case 1:
- return (
- o.sent(),
- (this.points[i].x = this.points[n].x),
- (this.points[i].y = this.points[n].y),
- (this.points[i].adopt = !0),
- setTimeout(function () {
- r.wallLines.some(function (t) {
- return ~t.points.indexOf(A)
- }) || r.points[n].destroy()
- }, 500),
- [2, this.points[i]]
- )
- }
- })
- })
- }),
- (e.prototype.judgePoint = function () {
- return r(this, void 0, void 0, function () {
- var t,
- e,
- i,
- n = this
- return o(this, function (g) {
- switch (g.label) {
- case 0:
- ;(t = function (t) {
- var i, g, A, r, C
- return o(this, function (s) {
- switch (s.label) {
- case 0:
- if (
- ((i = e.points[t]),
- !e.renderer.processing.points.some(function (t) {
- return t.ele === i
- }))
- )
- return [2, 'continue']
- ;(g = e.renderer.processing),
- (A = I(e.wallLines).filter(function (t) {
- return t !== n && !t.exterior
- })),
- 0.1,
- (A = A.filter(function (t) {
- return l.pointLineDis(t, i) <= 0.1
- })),
- (r = function (t) {
- var e, r, C, I
- return o(this, function (o) {
- switch (o.label) {
- case 0:
- return (
- (e = A[t]),
- (r = g.lines
- .filter(function (t) {
- var i = t.ele
- return (
- ~i.points.indexOf(e.points[0]) &&
- i.points.indexOf(e.points[1])
- )
- })
- .map(function (t) {
- return t.ele
- })),
- (C = []),
- r.forEach(function (t) {
- return (C = C.concat(u.default.attaArch.get(t) || []))
- }),
- (I = l.getLinePoint(e, i)),
- C.find(function (t) {
- return l.pointLineDis({ points: t.linePoints }, I) < 0.001
- })
- ? [3, 5]
- : [3, 1]
- )
- case 1:
- if (!(l.pointLineDis(e, I) < 0.1)) return [3, 5]
- ;(i.x = I.x), (i.y = I.y), (o.label = 2)
- case 2:
- return (
- o.trys.push([2, 4, , 5]),
- [
- 4,
- new Promise(function (t, A) {
- i.nextTick(function () {
- n.renderer.processing.points.some(function (t) {
- return t.ele === i
- }) || A()
- var r = g.lineInsertPoint(e, i),
- o = r.promis
- if (!r.ret) return t()
- o.then(function () {
- ;(i.x = I.x),
- (i.y = I.y),
- i.wallPos && i.wallPos(),
- t()
- }),
- e.wallPos && e.wallPos()
- })
- })
- ]
- )
- case 3:
- return o.sent(), [3, 5]
- case 4:
- return o.sent(), [2, 'break']
- case 5:
- return [2]
- }
- })
- }),
- (C = 0),
- (s.label = 1)
- case 1:
- return C < A.length ? [5, r(C)] : [3, 4]
- case 2:
- if ('break' === s.sent()) return [3, 4]
- s.label = 3
- case 3:
- return C++, [3, 1]
- case 4:
- return [2]
- }
- })
- }),
- (e = this),
- (i = 0),
- (g.label = 1)
- case 1:
- return i < this.points.length ? [5, t(i)] : [3, 4]
- case 2:
- g.sent(), (g.label = 3)
- case 3:
- return i++, [3, 1]
- case 4:
- return [2]
- }
- })
- })
- }),
- (e.prototype.updateJoin = function () {
- var t = this,
- e = this.wallLines
- ;(this.points[0].__join_lines = e.filter(function (e) {
- return ~e.points.indexOf(t.points[0])
- })),
- (this.points[1].__join_lines = e.filter(function (e) {
- return ~e.points.indexOf(t.points[1])
- }))
- }),
- (e.prototype.removeJoin = function (t) {
- void 0 === t && (t = this)
- var e = t.points[0].__join_lines,
- i = t.points[1].__join_lines
- e.splice(e.indexOf(t), 1), i.splice(i.indexOf(t), 1)
- }),
- (e.prototype.checkCross = function (t) {
- var e = this
- void 0 === t && (t = this.points)
- var i = this.renderer.processing
- return this.wallLines
- .filter(function (t) {
- return ~t.points.indexOf(e.points[0]) || ~t.points.indexOf(e.points[1])
- })
- .some(function (n) {
- var g = n.points.indexOf(e.points[0]),
- A = n.points.indexOf(e.points[1]),
- r = I(n.points)
- return (
- ~g && (r[g] = t[0]),
- ~A && (r[A] = t[1]),
- e.wallLines.some(function (g) {
- if (!~g.points.indexOf(n.points[0]) && !~g.points.indexOf(n.points[1])) {
- var A = l.segmentsIntr(g, { points: r })
- if (!A) return !1
- if (
- 0 !== l.lineDis({ points: [r[0], A] }) &&
- 0 !== l.lineDis({ points: [r[1], A] }) &&
- 0 !== l.lineDis({ points: [g.points[0], A] }) &&
- 0 !== l.lineDis({ points: [g.points[1], A] })
- )
- return !0
- var o = i.getRoomsByLine(n)
- o = (o = o.length ? o : i.getHolesByLine(n))[0].ground || o[0].pos
- var C = i.getRoomsByLine(g)
- return (
- o !==
- (C = (C = C.length ? C : i.getHolesByLine(g))[0].ground || C[0].pos) &&
- ((o = o.map(function (n) {
- var g = i.points.find(function (t) {
- var e = t.id
- return n === e
- }).ele
- return g === e.points[0] ? t[0] : g === e.points[1] ? t[1] : g
- })),
- (C = C.map(function (n) {
- var g = i.points.find(function (t) {
- var e = t.id
- return n === e
- }).ele
- return g === e.points[0] ? t[0] : g === e.points[1] ? t[1] : g
- })),
- l.isFaceIntersect(o, C))
- )
- }
- })
- )
- })
- }),
- (e.prototype.intercept = function (t, e, i) {
- e.x, e.y, e.points
- return !0
- }),
- (e.prototype.grentNode = function () {
- var e = document.createElementNS(c.SVGURI, 'g')
- return (
- (this.origin = t.prototype.grentNode.call(this)),
- (this.ground = document.createElementNS(c.SVGURI, 'g')),
- (this.temp = document.createElementNS(c.SVGURI, 'g')),
- e.appendChild(this.ground),
- e.appendChild(this.origin),
- e.appendChild(this.temp),
- this.temp.setAttribute('pointer-events', 'none'),
- e
- )
- }),
- (e.prototype.update = function () {
- var t = this,
- e = u.default.attaArch.get(this),
- i = this.multiple * this.width * (this.border ? 2 : 1.333)
- this.origin.setAttribute('stroke-width', i.toString()),
- this.origin.setAttribute('stroke-linecap', this.linecap)
- try {
- this.origin.setAttribute(
- 'd',
- 'M ' +
- this.points[0].x +
- ' ' +
- this.points[0].y +
- ' L ' +
- this.points[1].x +
- ' ' +
- this.points[1].y
- )
- } catch (t) {}
- if (
- (this.exterior
- ? (this.origin.setAttribute(
- 'stroke',
- this.color === this.hover.color ? this.color : '#5e5e5e'
- ),
- this.origin.setAttribute(
- 'stroke-dasharray',
- 10 * this.multiple + ', ' + 10 * this.multiple
- ))
- : this.origin.setAttribute('stroke', this.color),
- !this.exterior && e && e.length > 0)
- ) {
- this.origin.setAttribute('stroke', 'rgba(0,0,0,0)')
- for (
- var n = [],
- g = function (t) {
- if (
- n.some(function (e) {
- return e.some(function (i) {
- return i === e[t]
- })
- })
- )
- return 'continue'
- var i = e.filter(function (i) {
- return (
- i.linePoints &&
- i.linePoints.length &&
- (l.pointLineDis({ points: e[t].linePoints }, i.linePoints[0]) < 0.1 ||
- l.pointLineDis({ points: e[t].linePoints }, i.linePoints[1]) < 0.1)
- )
- })
- i.length && n.push(i)
- },
- A = 0;
- A < e.length;
- A++
- )
- g(A)
- var r = []
- n.forEach(function (e) {
- var i = e
- .reduce(function (t, e) {
- return t.concat(e.linePoints)
- }, [])
- .sort(function (e, i) {
- return (
- l.lineDis({ points: [e, t.points[0]] }) -
- l.lineDis({ points: [i, t.points[0]] })
- )
- }),
- n = []
- 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)
- }),
- (r = r.sort(function (e, i) {
- return (
- l.lineDis({ points: [e[0], t.points[0]] }) -
- l.lineDis({ points: [i[0], t.points[0]] })
- )
- })),
- (this.ground.innerHTML = '')
- var o = ''
- for (A = 1; A < r.length; A++) {
- var C = r[A - 1][r[A - 1].length - 1],
- I = r[A][0]
- o +=
- '<path \n stroke="' +
- (this.exterior && 'rgba(243, 255, 0, 0.8)' !== this.color
- ? 'rgb(150,150,150)'
- : this.color) +
- '" \n stroke-width="' +
- i +
- '" \n stroke-linecap="butt" \n d="M ' +
- C.x +
- ' ' +
- C.y +
- ' L ' +
- I.x +
- ' ' +
- I.y +
- '"></path>'
- }
- if (
- (r.length &&
- 2 === r[0].length &&
- (o =
- '<path \n stroke="' +
- (this.exterior && 'rgba(243, 255, 0, 0.8)' !== this.color
- ? 'rgb(150,150,150)'
- : this.color) +
- '" \n stroke-width="' +
- i +
- '" \n stroke-linecap="butt" \n d="M ' +
- this.points[0].x +
- ' ' +
- this.points[0].y +
- ' L ' +
- r[0][0].x +
- ' ' +
- r[0][0].y +
- '"></path>' +
- o),
- r.length &&
- 2 === r[r.length - 1].length &&
- (o =
- o +
- '<path \n stroke="' +
- (this.exterior && 'rgba(243, 255, 0, 0.8)' !== this.color
- ? 'rgb(150,150,150)'
- : this.color) +
- '" \n stroke-width="' +
- i +
- '" \n stroke-linecap="butt" \n d="M ' +
- r[r.length - 1][1].x +
- ' ' +
- r[r.length - 1][1].y +
- ' L ' +
- this.points[1].x +
- ' ' +
- this.points[1].y +
- '"></path>'),
- 1 === r.length && 1 === r[0].length)
- ) {
- var s = e.find(function (t) {
- return ~t.linePoints.indexOf(r[0][0])
- }),
- a = s.linePoints[Number(!s.linePoints.indexOf(r[0][0]))]
- C =
- l.lineDis({ points: [a, this.points[0]] }) >
- l.lineDis({ points: [a, this.points[1]] })
- ? this.points[0]
- : this.points[1]
- o +=
- '<path \n stroke="' +
- (this.exterior && 'rgba(243, 255, 0, 0.8)' !== this.color
- ? 'rgb(150,150,150)'
- : this.color) +
- '" \n stroke-width="' +
- i +
- '" \n stroke-linecap="butt" \n d="M ' +
- C.x +
- ' ' +
- C.y +
- ' L ' +
- r[0][0].x +
- ' ' +
- r[0][0].y +
- '"></path>'
- }
- 0 === r.length &&
- (o +=
- '<path \n stroke="' +
- (this.exterior && 'rgba(243, 255, 0, 0.8)' !== this.color
- ? 'rgb(150,150,150)'
- : this.color) +
- '" \n stroke-width="' +
- i +
- '" \n stroke-linecap="butt" \n d="M ' +
- this.points[0].x +
- ' ' +
- this.points[0].y +
- ' L ' +
- this.points[1].x +
- ' ' +
- this.points[1].y +
- '"></path>'),
- (this.ground.innerHTML = o)
- } else this.ground.innerHTML = ''
- if (((this.temp.innerHTML = ''), this.showAngle || this.color === this.hover.color)) {
- var h = this.renderer.processing.lines
- .filter(function (e) {
- return (
- e.ele !== t &&
- (~e.ele.points.indexOf(t.points[0]) || ~e.ele.points.indexOf(t.points[1]))
- )
- })
- .map(function (t) {
- return t.ele
- })
- if (0 !== h.length) {
- var p =
- this.renderer.screenToRealPoint({ x: 20, y: 0 }).x -
- this.renderer.screenToRealPoint({ x: 0, y: 0 }).x
- h.forEach(function (e) {
- var i = l.getAngle(e, t),
- n = ~e.points.indexOf(t.points[0]) ? t.points[0] : t.points[1],
- g = l.getLineDisSelectPoint(e, n, p),
- A = l.getLineDisSelectPoint(t, n, p),
- r = l.lineCenter({ points: [g, A] })
- if (!isNaN(r.x) && !isNaN(i) && i > 10 && i < 170) {
- i = (i = Math.round(i)) >= 89 && i <= 91 ? 90 : i
- var o = document.createElementNS(c.SVGURI, 'text')
- o.setAttribute('fill', '#fff'),
- o.setAttribute('text-anchor', 'middle'),
- o.setAttribute('dominant-baseline', 'middle'),
- o.setAttribute('x', r.x.toString()),
- o.setAttribute('y', r.y.toString()),
- o.setAttribute('font-size', (9 * t.multiple).toString()),
- (o.textContent = parseInt(i + '').toString() + '掳'),
- t.temp.appendChild(o)
- }
- })
- }
- }
- }),
- (e.prototype.destroy = function () {
- var e = this,
- i = this.wallLines
- i.splice(i.indexOf(this), 1)
- var n = u.default.attaArch.get(this)
- if (n) {
- n = I(n)
- var g = i.find(function (t) {
- 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])
- )
- })
- n.forEach(function (t) {
- g ? t.setAttachment(g) : t.destroy()
- })
- }
- this.nextTick(function () {
- i.filter(function (t) {
- return ~t.points.indexOf(e.points[0]) || ~t.points.indexOf(e.points[1])
- }).forEach(function (t) {
- return t.updateJoin()
- })
- }),
- t.prototype.destroy.call(this),
- this.removeJoin(),
- i.some(function (t) {
- return ~t.points.indexOf(e.points[0])
- }) || this.points[0].destroy(),
- i.some(function (t) {
- return ~t.points.indexOf(e.points[1])
- }) || this.points[1].destroy()
- }),
- (e.minWidth = 0.1),
- e
- )
- })(a.default)
- e.default = h
- },
- function (t, e) {
- t.exports =
- '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=='
- },
- function (t, e) {
- t.exports =
- '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'
- },
- function (t, e, i) {
- Object.defineProperty(e, '__esModule', { value: !0 }),
- (e.methods = {
- getRoomEles: function (t) {
- var e = this
- return {
- ground: t.ground.map(function (t) {
- return e.points.find(function (e) {
- return e.id === t
- }).ele
- }),
- hole: t.hole.map(function (t) {
- return t.pos.map(function (t) {
- return e.points.find(function (e) {
- return e.id === t
- }).ele
- })
- })
- }
- }
- })
- },
- function (t, e, i) {
- var n =
- (this && this.__assign) ||
- function () {
- return (n =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- g =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var A = function (t, e) {
- return void 0 === e && (e = 2), Number(t.toFixed(e))
- }
- e.methods = {
- baseArchToData: function (t) {
- return {
- line: this.getLineId(t.attachment),
- pos: [
- A(t.linePoints[0].x),
- A(t.linePoints[0].y),
- A(t.linePoints[1].x),
- A(t.linePoints[1].y)
- ],
- top: t.top,
- bottom: t.bottom
- }
- },
- roomArchToData: function (t) {
- return {
- 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)
- ],
- top: t.top,
- bottom: t.bottom,
- angle: t.angle
- }
- },
- pointToData: function (t) {
- var e = t.ele
- return { id: t.id, x: A(e.x), y: A(e.y) }
- },
- lineToData: function (t) {
- var e = t.ele,
- i = t.id,
- n = t.border
- return {
- id: i,
- p1: this.getPointId(e.points[0]),
- p2: this.getPointId(e.points[1]),
- border: n,
- exterior: e.exterior
- }
- },
- doorToData: function (t) {
- var e = t.ele,
- i = this.baseArchToData(e)
- return (
- (i.within = e.within),
- (i.show = e.show),
- (i.ctl = [e.ctl[0].x, -e.ctl[0].y]),
- (i.start = e.start),
- i
- )
- },
- DoubleDoorToData: function (t) {
- var e = t.ele,
- i = this.baseArchToData(e)
- return (i.within = e.within), (i.show = e.show), i
- },
- slideDoorToData: function (t) {
- var e = t.ele,
- i = this.baseArchToData(e)
- return (i.within = e.within), (i.show = e.show), i
- },
- caseToData: function (t) {
- var e = t.ele
- return this.baseArchToData(e)
- },
- groundCaseToData: function (t) {
- var e = t.ele
- return this.baseArchToData(e)
- },
- BayCaseToData: function (t) {
- var e = t.ele,
- i = this.baseArchToData(e)
- return (
- (i.within = e.within), (i.ctl = [e.ctl[0].x, -e.ctl[0].y, e.ctl[1].x, -e.ctl[1].y]), i
- )
- },
- columnToData: function (t) {
- var e = t.ele,
- i = this.baseArchToData(e)
- 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)])
- })
- },
- taggingToData: function (t) {
- var e = t.ele
- return {
- pos: [e.x, e.y],
- title: e.title,
- content: e.content,
- showTitle: e.showTitle,
- showContent: e.showContent
- }
- },
- furnColumnToData: function (t) {
- var e = t.ele
- return this.roomArchToData(e)
- },
- furnFlueToData: function (t) {
- var e = t.ele
- return this.roomArchToData(e)
- },
- getNewPointId: function () {
- return 0 === this.points.length
- ? 1
- : Math.max.apply(
- Math,
- this.points.map(function (t) {
- return t.id
- })
- ) + 1
- },
- getNewLineId: function () {
- return 0 === this.lines.length
- ? 1
- : Math.max.apply(
- Math,
- this.lines.map(function (t) {
- return t.id
- })
- ) + 1
- },
- getLineId: function (t) {
- var e = this.lines.find(function (e) {
- return e.ele === t
- })
- return e ? e.id : 0
- },
- getPointId: function (t) {
- return this.points.find(function (e) {
- return e.ele === t
- }).id
- },
- toData: function () {
- var t = this,
- e = this.points.map(function (e) {
- return t.pointToData(e)
- }),
- i = this.columns.map(function (e) {
- return t.columnToData(e)
- }),
- n = this.cases.map(function (e) {
- return t.caseToData(e)
- }),
- g = this.doors.map(function (e) {
- return t.doorToData(e)
- }),
- A = this.slideDoors.map(function (e) {
- return t.slideDoorToData(e)
- }),
- r = this.groundCases.map(function (e) {
- return t.groundCaseToData(e)
- }),
- o = this.taggings.map(function (e) {
- return t.taggingToData(e)
- }),
- C = this.bayCases.map(function (e) {
- return t.BayCaseToData(e)
- }),
- I = this.doubleDoors.map(function (e) {
- return t.DoubleDoorToData(e)
- }),
- s = this.furnColumns.map(function (e) {
- return t.furnColumnToData(e)
- }),
- a = this.furnFlues.map(function (e) {
- return t.furnFlueToData(e)
- }),
- l = []
- return (
- this.lines.forEach(function (e) {
- try {
- l.push(t.lineToData(e))
- } catch (t) {}
- }),
- {
- id: this.id,
- show: this.show,
- vertex: e,
- wall: l,
- window: n,
- door: g,
- column: i,
- surplus: this.data.surplus,
- slideDoor: A,
- groundCase: r,
- tagging: o,
- doubleDoor: I,
- bayCase: C,
- furnColumn: s,
- furnFlue: a,
- dire: this.data.dire
- }
- )
- }
- }
- },
- function (t, e, i) {
- var n =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- g =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var A = g(i(4)),
- r = i(0),
- o = i(1)
- e.methods = {
- lineInsertPoint: function (t, e) {
- var i = this,
- g = [],
- C = [],
- I = this,
- s = I.points.find(function (t) {
- return t.ele === e
- })
- return s
- ? (I.lines.forEach(function (a) {
- var l = a.ele
- a.border
- if (
- ~l.points.indexOf(t.points[0]) &&
- ~l.points.indexOf(t.points[1]) &&
- !I.lines.some(function (t) {
- var i = t.ele
- return ~i.points.indexOf(e) && ~i.points.indexOf(l.points[0])
- })
- ) {
- var u = A.default.attaArch.get(l)
- i.cad.increase
- var c = {
- ele: i.cad.increase(o.SEFTLINE, {
- id: i.getNewLineId(),
- p1: I.getPointId(l.points[0]),
- p2: s.id,
- border: l.border,
- exterior: l.exterior,
- isOut: l.isOut
- }).obj
- }
- C.push(c), c.ele.update()
- var h = [s.ele, l.points[1]]
- ;(l.points = h),
- l.listenPointDrag([s.ele, l.points[1]]),
- g.push(
- new Promise(function (t) {
- l.nextTick(function () {
- l.updateJoin(),
- c.ele.updateJoin(),
- u &&
- n(u).forEach(function (t) {
- r.pointLineDis(c.ele, t.linePoints[0]) < 0.1 &&
- r.pointLineDis(c.ele, t.linePoints[1]) < 0.1 &&
- t.setAttachment(c.ele)
- }),
- setTimeout(t, 200)
- })
- })
- )
- }
- }),
- { lines: C, promis: Promise.all(g), ret: !0 })
- : { ret: !1 }
- }
- }
- },
- function (t, e, i) {
- var n =
- (this && this.__assign) ||
- function () {
- return (n =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- g =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- A =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var r = A(i(4)),
- o = A(i(13)),
- C = i(3),
- I = i(0),
- s = i(1),
- a = i(9),
- l = [s.TAGGING, s.LINE, s.SEFTLINE],
- u = [
- s.POINT,
- s.DOOR,
- s.COLUMN,
- s.CASEMENT,
- s.ARCH,
- s.SLIDEDOOR,
- s.GROUNDCASE,
- s.BAYCASE,
- s.DOUBLEDOOR
- ],
- c = [s.FURNCOLUMN, s.FURNFLUE]
- e.attachInsert = function (t) {
- var e,
- i = function (e, i) {
- var n = t.processing,
- g = n.lines
- .map(function (t) {
- return t.ele
- })
- .filter(function (t) {
- return !t.exterior
- })
- .map(function (t) {
- return { dis: I.pointLineDis(t, e), line: t }
- })
- .sort(function (t, e) {
- return t.dis - e.dis
- })
- .find(function (t) {
- 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
- )
- })
- if (!g)
- return {
- error: !0,
- msg: a.i18n.t('modules.model.error_location', { widget: s.ARCH[i] }),
- obj: null
- }
- var A = g.line,
- o =
- (n.lines.find(function (t) {
- return t.ele === A
- }),
- r.default.attaArch.get(A),
- I.getLinePoint(A, e))
- if (i === s.POINT)
- return I.pointLineDis(g.line, o) > 0.1
- ? {
- error: !0,
- msg: a.i18n.t('modules.model.error_location', { widget: '' }),
- obj: null
- }
- : [A, o]
- var l = (function (t, e, i) {
- var n = I.getDisPointLinePoints(t, e, i / 2)
- return [n[0], n[1]]
- })(A, o, s.DEFAULT[i].width)
- return C.type.isArray(l) ? [A, l, e] : { error: !0, msg: l }
- },
- A =
- (((e = {})[s.POINT] = function (e, i) {
- var g = t.processing
- g.insertModel = !0
- var A = g.addPoint(n({ id: g.getNewPointId() }, i))
- g.data.vertex.push({ id: A.id, x: A.ele.x, y: A.ele.y })
- var r = g.lineInsertPoint(e, A.ele),
- o = r.lines,
- C = r.promis
- if (r.ret)
- return (
- C.then(function () {
- return (g.insertModel = !1)
- }),
- o.map(function (t) {
- return t.ele
- })
- )
- }),
- (e[s.DOOR] = function (e, i, n, g, A) {
- var r = t.processing
- 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
- }),
- (e[s.DOUBLEDOOR] = function (e, i, n, g, A) {
- var r = t.processing
- 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
- }),
- (e[s.SLIDEDOOR] = function (e, i, n, g, A) {
- var r = t.processing
- return r.addSlideDoor({
- within: 0,
- pos: [i[0].x, i[0].y, i[1].x, i[1].y],
- line: r.getLineId(e)
- }).ele
- }),
- (e[s.GROUNDCASE] = function (e, i, n, g, A) {
- var r = t.processing
- return r.addGroundCase({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e) })
- .ele
- }),
- (e[s.BAYCASE] = function (e, i, n, g, A) {
- var r = t.processing
- return r.addBayCase({
- pos: [i[0].x, i[0].y, i[1].x, i[1].y],
- line: r.getLineId(e),
- within: 0
- }).ele
- }),
- (e[s.CASEMENT] = function (e, i, n, g, A) {
- var r = t.processing
- return r.addCase({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e) }).ele
- }),
- (e[s.COLUMN] = function (e, i, n) {
- var g = t.processing,
- A = I.getDisVerticalLinePoints(e, i[0], s.DEFAULT[s.COLUMN].width),
- r = (A[0], A[1])
- if (!r)
- return a.i18n.t('modules.model.error_widget', {
- widget: a.i18n.t('modules.model.column')
- })
- var o = I.getDisVerticalLinePoints(e, i[1], s.DEFAULT[s.COLUMN].tick),
- C = o[0],
- l = o[1],
- u = I.lineDis({ points: [C, r] }) > I.lineDis({ points: [l, r] }) ? l : C
- 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
- }),
- (e[s.TAGGING] = function (e) {
- return t.processing.addTagging({
- pos: [e.x, e.y],
- title: '',
- content: '',
- showTitle: !0,
- showContent: !0
- }).ele
- }),
- (e[s.FURNCOLUMN] = function (e, i, n, g) {
- return t.processing.addFurnColumn({ pos: e, angle: 0 }).ele
- }),
- (e[s.FURNFLUE] = function (e, i, n, g) {
- return t.processing.addFurnFlue({ pos: e, angle: 0 }).ele
- }),
- (e[s.LINE] = function (e) {
- t.processing
- var i = s.DEFAULT[s.LINE].width,
- n = {
- points: [
- { x: e.x - i / 2, y: e.y },
- { x: e.x + i / 2, y: e.y }
- ]
- },
- g = t.processing.lines.some(function (t) {
- var e = t.ele
- return I.segmentsIntr(e, n)
- })
- return g &&
- ((n = {
- points: [
- { x: e.x - i / 2, y: e.y },
- { x: e.x + i / 2, y: e.y }
- ]
- }),
- (g = t.processing.lines.some(function (t) {
- var e = t.ele
- return I.segmentsIntr(e, n)
- })))
- ? a.i18n.t('modules.model.error_widget', { widget: a.i18n.t('modules.model.line') })
- : t.processing.furnColumns
- .concat(t.processing.furnFlues)
- .map(function (t) {
- return t.ele
- })
- .every(function (t) {
- return (
- !I.isFaceIntersect(n.points, t.points) &&
- !I.isFaceContain(n.points, t.points) &&
- !I.isFaceContain(t.points, n.points)
- )
- })
- ? t.processing.addRoom(n)[0].ele
- : a.i18n.t('modules.model.error_widget', { widget: a.i18n.t('modules.model.line') })
- }),
- (e[s.SEFTLINE] = function (e) {
- return t.processing.addLine(e).ele
- }),
- e)
- t.increase = function (e, r, I, h, p) {
- void 0 === I && (I = null), void 0 === h && (h = null), void 0 === p && (p = !1)
- var d = t.processing.render
- if (A[e]) {
- var f,
- y = p ? d.screenToRealPoint(r) : r
- if (~u.indexOf(e) || ~c.indexOf(e)) {
- var v = ~c.indexOf(e)
- ? (function (e, i) {
- var g = t.processing,
- A = s.DEFAULT[i].width / 2,
- r = s.DEFAULT[i].tick / 2,
- C = [
- { x: e.x - A, y: e.y + r },
- { x: e.x + A, y: e.y + r },
- { x: e.x + A, y: e.y - r },
- { x: e.x - A, y: e.y - r }
- ],
- I = (n(n({}, o.default.prototype), { renderer: g.render, minWidth: 0.1 }), [])
- return (
- C.forEach(function (t) {
- I.push(t.x), I.push(t.y)
- }),
- [I]
- )
- })(y, e)
- : i(y, e)
- if (!C.type.isArray(v)) return v
- var m = A[e].apply(A, g(v, [I, h]))
- if ('string' == typeof m) return { error: !0, msg: m, obj: null }
- f = m
- } else if (~l.indexOf(e) && 'string' == typeof (f = A[e](y)))
- return { error: !0, msg: f, obj: null }
- return (
- t.preservation && t.preservation(),
- { error: !1, msg: a.i18n.t('modules.model.success', { widget: s.ARCH[e] }), obj: f }
- )
- }
- }
- var h = t.destroy
- t.destroy = function () {
- for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
- var n = t.processing
- n.render
- ;(n = null), h.apply(this, e)
- }
- }
- },
- function (t, e, i) {
- var n =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- g =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var A = g(i(41)),
- r = g(i(42))
- e.attachGauge = function (t) {
- var e = {
- processings: [],
- setGaugeAttrs: [],
- showGauge: [],
- setGaugeModel: [],
- hideGauge: [],
- showDire: [],
- hideDire: [],
- setDireAttrs: [],
- setAngle: []
- },
- i = t.delProcessing
- t.delProcessing = function (g) {
- for (var A = [], r = 1; r < arguments.length; r++) A[r - 1] = arguments[r]
- var o = e.processings.indexOf(g)
- return (
- console.error('-------', o),
- ~o &&
- Object.keys(e).forEach(function (t) {
- e[t].splice(o, 1)
- }),
- i.call.apply(i, n([t, g], A))
- )
- }
- var g = t.addProcessing
- ;(t.addProcessing = function () {
- for (var i = [], C = 0; C < arguments.length; C++) i[C] = arguments[C]
- var I,
- s = g.call.apply(g, n([t], i))
- e.processings.push(s)
- var a = s.lines,
- l = a.push,
- u = s.points,
- c = u.push,
- h = function (t) {
- ;(t.__label_intercept = t.intercept),
- (t.intercept = function () {
- for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
- return I.update(), t.__label_intercept.apply(t, e)
- })
- },
- p = function (t) {
- ;(t.__label_intercept = t.drag),
- (t.drag = function () {
- for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
- return I.update(), t.__label_intercept.apply(t, e)
- })
- }
- e.setGaugeAttrs.push(function (t) {
- ;(I.__state.direct = !0),
- Object.keys(t).forEach(function (e) {
- I[e] = t[e]
- }),
- (I.__state.direct = !1),
- I.update()
- })
- var d = function () {
- I || ((I = new A.default({ processing: s })), (t.gauge = I)),
- (a.push = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- var i = l.apply(a, t)
- return (
- I.update(),
- t.forEach(function (t) {
- var e = t.ele
- return p(e)
- }),
- i
- )
- }),
- u.forEach(function (t) {
- var e = t.ele
- return h(e)
- }),
- a.forEach(function (t) {
- var e = t.ele
- return p(e)
- }),
- (u.push = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- return (
- t.forEach(function (t) {
- var e = t.ele
- return h(e)
- }),
- c.apply(u, t)
- )
- }),
- s.render.push(I)
- }
- e.showGauge.push(d),
- o && d(),
- e.setGaugeModel.push(function (t) {
- return I
- ? ((I.surround = 1 === t),
- new Promise(function (t) {
- return I.nextTick(t)
- }))
- : new Promise(function (t) {
- return t(void 0)
- })
- }),
- e.hideGauge.push(function () {
- ;(a.push = l),
- (u.push = c),
- u.forEach(function (t) {
- var e = t.ele
- return (e.intercept = e.__label_intercept)
- }),
- s.render.remove(I)
- })
- var f = new r.default({ angle: 0, renderer: s.render })
- return (
- (s.direction = f),
- e.showDire.push(function () {
- ;(f.show = !0), s.render.push(f)
- }),
- e.hideDire.push(function () {
- ;(f.show = !1), s.render.remove(f)
- }),
- e.setDireAttrs.push(function (t) {
- return (
- Object.keys(t).forEach(function (e) {
- f[e] = t[e]
- }),
- new Promise(function (t) {
- return f.nextTick(t)
- })
- )
- }),
- s
- )
- }),
- (t.setGaugeAttrs = function (t) {
- return (
- console.error(e.setGaugeAttrs),
- Promise.all(
- e.setGaugeAttrs.map(function (e) {
- return e(t)
- })
- )
- )
- })
- var o = !1
- ;(t.showGauge = function () {
- o ||
- ((o = !0),
- e.showGauge.forEach(function (t) {
- return t()
- }))
- }),
- (t.setGaugeModel = function (t) {
- return Promise.all(
- e.setGaugeModel.map(function (e) {
- return e(t)
- })
- )
- }),
- (t.hideGauge = function () {
- o &&
- ((o = !0),
- e.hideGauge.forEach(function (t) {
- return t()
- }))
- })
- var C = t.destroy
- ;(t.destroy = function () {
- for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
- t.hideGauge(), (o = !1), C.apply(this, e)
- }),
- (t.showDire = function () {
- e.showDire.forEach(function (t) {
- return t()
- })
- }),
- (t.hideDire = function () {
- e.hideDire.forEach(function (t) {
- return t()
- })
- }),
- (t.setDireAttrs = function (t) {
- return Promise.all(
- e.setDireAttrs.map(function (e) {
- return e(t)
- })
- )
- }),
- (t.setAngle = function (e) {
- ;(t.processing.data.dire = e), (t.processing.direction.angle = e)
- })
- }
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var o = i(2),
- C = i(1),
- I = i(0),
- s = 0,
- a = function (t, e, i, n, g, A, r, o, a) {
- var l = document.createElementNS(C.SVGURI, 'g'),
- u = { points: [t, e] },
- c = 'lineBoth' + s++,
- h = I.getDisVerticalLinePoints(u, t, n),
- p = h[0],
- d = h[1],
- f = I.getDisVerticalLinePoints(u, e, n),
- y = f[0],
- v = f[1],
- m = document.createElementNS(C.SVGURI, 'path')
- l.appendChild(m),
- m.setAttribute('stroke', a),
- m.setAttribute('stroke-width', i.toString()),
- 'top' === o || 'right' === o
- ? m.setAttribute('d', 'M ' + p.x + ' ' + p.y + ' L ' + y.x + ' ' + y.y)
- : m.setAttribute('d', 'M ' + d.x + ' ' + d.y + ' L ' + v.x + ' ' + v.y),
- m.setAttribute('id', c)
- var b = m.cloneNode(!0)
- b.setAttribute('d', 'M ' + p.x + ' ' + p.y + ' L ' + d.x + ' ' + d.y),
- l.appendChild(b),
- (b = m.cloneNode(!0)).setAttribute('d', 'M ' + y.x + ' ' + y.y + ' L ' + v.x + ' ' + v.y),
- l.appendChild(b)
- var x = (A.toString().length / 2.5) * g,
- _ = A / 2 - x,
- w = document.createElementNS(C.SVGURI, 'text')
- w.setAttribute('x', _.toString()),
- w.setAttribute('y', '0'),
- w.setAttribute('style', 'fill: ' + a + '; font-size: ' + g + 'px')
- var P = document.createElementNS(C.SVGURI, 'textPath')
- P.setAttributeNS(C.SVGPATH, 'xlink:href', '#' + c),
- P.appendChild(document.createTextNode(A + 'm')),
- w.appendChild(P)
- var O = I.lineVector({ points: [t, e] }),
- S = document.createElementNS(C.SVGURI, 'path')
- S.setAttribute('stroke', a),
- S.setAttribute('stroke-width', i.toString()),
- O.x > O.y
- ? S.setAttribute(
- 'd',
- 'M ' + t.x + ' ' + t.y + ' L ' + (e.x - _ - 2 * x - r) + ' ' + e.y
- )
- : S.setAttribute(
- 'd',
- 'M ' + t.x + ' ' + t.y + ' L ' + e.x + ' ' + (e.y - _ - 2 * x - r)
- )
- var E = S.cloneNode(!0)
- return (
- O.x > O.y
- ? E.setAttribute('d', 'M ' + (e.x - _ + r) + ' ' + t.y + ' L ' + e.x + ' ' + e.y)
- : E.setAttribute('d', 'M ' + t.x + ' ' + (e.y - _ + r) + ' L ' + e.x + ' ' + e.y),
- l.appendChild(E),
- l.appendChild(S),
- (m.style.display = 'none'),
- l.appendChild(w),
- l
- )
- },
- l = (function (t) {
- function e(e) {
- var i = e.processing,
- n = e.padding,
- g = void 0 === n ? 10 : n,
- o = e.spacing,
- C = void 0 === o ? 4 : o,
- I = e.minPX,
- s = void 0 === I ? 50 : I,
- a = e.width,
- l = void 0 === a ? 1 : a,
- u = e.showBottom,
- c = void 0 === u || u,
- h = e.showTop,
- p = void 0 === h || h,
- d = e.showLeft,
- f = void 0 === d || d,
- y = e.showRight,
- v = void 0 === y || y,
- m = e.surround,
- b = void 0 !== m && m,
- x = e.stroke,
- _ = void 0 === x ? '#fff' : x,
- w = r(e, [
- 'processing',
- 'padding',
- 'spacing',
- 'minPX',
- 'width',
- 'showBottom',
- 'showTop',
- 'showLeft',
- 'showRight',
- 'surround',
- 'stroke'
- ]),
- P =
- t.call(
- this,
- A(
- {
- renderer: i.render,
- minPX: s,
- width: l,
- showBottom: c,
- showTop: p,
- showLeft: f,
- showRight: v,
- surround: b,
- stroke: _
- },
- w
- )
- ) || this
- return (
- (P.padding = g),
- (P.spacing = C),
- (P.processing = i),
- Object.defineProperty(P, 'points', {
- get: function () {
- return this.processing.points
- }
- }),
- P.update(),
- P
- )
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- ;(this.top = document.createElementNS(C.SVGURI, 'g')),
- (this.left = document.createElementNS(C.SVGURI, 'g')),
- (this.right = document.createElementNS(C.SVGURI, 'g')),
- (this.bottom = document.createElementNS(C.SVGURI, 'g'))
- var t = document.createElementNS(C.SVGURI, 'g')
- return (
- t.appendChild(this.top),
- t.appendChild(this.left),
- t.appendChild(this.right),
- t.appendChild(this.bottom),
- t
- )
- }),
- (e.prototype.calcSplit = function () {
- var t = this.processing.render,
- e = this.minPX,
- i = I.lineDis({
- points: [t.screenToRealPoint({ x: 0, y: 0 }), t.screenToRealPoint({ x: e, y: 0 })]
- }),
- n = I.lineDis({
- points: [t.screenToRealPoint({ x: 0, y: 0 }), t.screenToRealPoint({ x: 0, y: e })]
- }),
- g = this.points.map(function (t) {
- return t.ele
- }),
- r = [],
- o = [],
- C = [],
- s = [],
- a = function (t, e, r) {
- var o, C
- g.sort(e),
- g.forEach(function (e) {
- return 0 === t.length || e[r] > t[t.length - 1]
- ? t.push(e[r])
- : e[r] < t[0] && t.unshift(e[r])
- })
- for (var s = 'x' === r ? i : n, a = { x: 0, y: 0 }, l = 0; l < t.length - 2; l++) {
- var u = A(A({}, a), (((o = {})[r] = t[l]), o)),
- c = A(A({}, a), (((C = {})[r] = t[l + 1]), C))
- I.lineDis({ points: [u, c] }) < s && (t.splice(l + 1, 1), l--)
- }
- t.length > 2 && t.splice(t.length - 2, 2, t[t.length - 1])
- }
- return (
- a(
- r,
- function (t, e) {
- return t.x - e.x ? t.x - e.x : e.y - t.y
- },
- 'y'
- ),
- a(
- C,
- function (t, e) {
- return e.x - t.x ? e.x - t.x : e.y - t.y
- },
- 'y'
- ),
- a(
- o,
- function (t, e) {
- return t.y - e.y ? t.y - e.y : e.x - t.x
- },
- 'x'
- ),
- a(
- s,
- function (t, e) {
- return e.y - t.y ? e.y - t.y : e.x - t.x
- },
- 'x'
- ),
- { left: r, top: o, right: C, bottom: s }
- )
- }),
- (e.prototype.update = function () {
- var t = this
- if (0 !== this.points.length && 0 !== this.processing.render.props.width) {
- var e = this.processing.render,
- i = 10 * this.width * this.multiple,
- n = this.calcSplit(),
- g = n.left,
- A = n.right,
- r = n.top,
- o = n.bottom,
- C = e.screenToRealPoint({ x: this.padding, y: this.padding }),
- I = e.screenToRealPoint({
- x: e.props.width / e.props.multiple - this.padding,
- y: e.props.height / e.props.multiple - this.padding
- })
- if (this.surround) {
- var s = this.points.map(function (t) {
- return t.ele.x
- }),
- l = this.points.map(function (t) {
- return t.ele.y
- }),
- u = Math.max.apply(Math, s),
- c = Math.min.apply(Math, s),
- h = Math.max.apply(Math, l),
- p = Math.min.apply(Math, l)
- Math.abs(C.x - c) < Math.abs(C.y - p) && Math.abs(I.x - u) - Math.abs(I.y - h)
- ? ((I = { x: I.x, y: h + Math.abs(C.x - c) }),
- (C = { x: C.x, y: p - Math.abs(C.x - c) }))
- : ((I = { x: u + Math.abs(C.y - h), y: I.y }),
- (C = { x: c - Math.abs(C.y - p), y: I.y }))
- }
- var d = function (e, n, g, A) {
- for (var r = 0; r < e.length - 1; r++) {
- var o = 0 === r ? e[r] : e[r] + (t.spacing / 2) * t.multiple,
- C = r + 1 === e.length ? e[r + 1] : e[r + 1] - (t.spacing / 2) * t.multiple
- g(
- 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
- )
- )
- }
- }
- ;[this.left, this.top, this.right, this.bottom].forEach(function (t) {
- for (; t.childNodes.length; ) t.removeChild(t.childNodes[0])
- }),
- this.showLeft &&
- d(
- g,
- function (t) {
- return { x: C.x, y: t }
- },
- function (e) {
- return t.left.appendChild(e)
- },
- 'left'
- ),
- this.showBottom &&
- d(
- o,
- function (t) {
- return { x: t, y: I.y }
- },
- function (e) {
- return t.bottom.appendChild(e)
- },
- 'bottom'
- ),
- this.showTop &&
- d(
- r,
- function (t) {
- return { x: t, y: C.y }
- },
- function (e) {
- e
- .querySelector('text')
- .setAttribute('transform', 'translate(0, ' + i / 1.2 + ')'),
- t.top.appendChild(e)
- },
- 'top'
- ),
- this.showRight &&
- d(
- A,
- function (t) {
- return { x: I.x, y: t }
- },
- function (e) {
- e
- .querySelector('text')
- .setAttribute('transform', 'translate(-' + i / 1.2 + ', 0)'),
- t.right.appendChild(e)
- },
- 'right'
- )
- }
- }),
- e
- )
- })(o.CADElement)
- e.default = l
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- },
- o =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var C = i(2),
- I = i(1),
- s = i(0),
- a = o(i(43)),
- l = o(i(44)),
- u = o(i(45)),
- c = { defaultIcon: l.default, darkIcon: u.default },
- h = (function (t) {
- function e(e) {
- var i = e.fontSize,
- n = void 0 === i ? 8 : i,
- g = e.r,
- o = void 0 === g ? 50 : g,
- C = e.icon,
- I = void 0 === C ? 'defaultIcon' : C,
- s = e.border,
- a = void 0 === s ? 3 : s,
- l = e.right,
- u = void 0 === l ? 20 : l,
- c = e.top,
- h = void 0 === c ? 20 : c,
- p = e.ArgDire,
- d = void 0 === p ? 15 : p,
- f = e.simple,
- y = void 0 !== f && f,
- v = e.angle,
- m = void 0 === v ? 0 : v,
- b = r(e, [
- 'fontSize',
- 'r',
- 'icon',
- 'border',
- 'right',
- 'top',
- 'ArgDire',
- 'simple',
- 'angle'
- ])
- 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
- )
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- var t = document.createElementNS(I.SVGURI, 'g')
- ;(this.dire = document.createElementNS(I.SVGURI, 'image')),
- (this.bg = document.createElementNS(I.SVGURI, 'image')),
- (this.bg.href.baseVal = a.default),
- (this.inner = document.createElementNS(I.SVGURI, 'circle')),
- this.inner.setAttribute('fill', 'rgba(41,41,41,1)')
- var e = document.createElementNS(I.SVGURI, 'text')
- return (
- e.setAttribute('fill', '#fff'),
- e.setAttribute('text-anchor', 'middle'),
- (this.topText = e.cloneNode(!0)),
- (this.rightText = e.cloneNode(!0)),
- (this.leftText = e.cloneNode(!0)),
- (this.bottomText = e.cloneNode(!0)),
- (this.topText.textContent = 'N'),
- this.topText.setAttribute('fill', '#00A0E9'),
- (this.rightText.textContent = 'E'),
- (this.leftText.textContent = 'W'),
- (this.bottomText.textContent = 'S'),
- this.bottomText.setAttribute('fill', '#D84141'),
- (this.arc = document.createElementNS(I.SVGURI, 'path')),
- this.arc.setAttribute('fill', 'rgba(255,255,255,0.3)'),
- t.appendChild(this.inner),
- t.appendChild(this.arc),
- t.appendChild(this.bg),
- t.appendChild(this.dire),
- t.appendChild(this.topText),
- t.appendChild(this.rightText),
- t.appendChild(this.bottomText),
- t.appendChild(this.leftText),
- t
- )
- }),
- (e.prototype.intercept = function () {
- return !0
- }),
- (e.prototype.update = function () {
- var t = this.r / 2 + this.border + this.right,
- e = this.r / 2 + this.border + this.top,
- i = this.renderer,
- n = this.fontSize * this.multiple,
- g = this.border * this.multiple,
- A = i.screenToRealPoint({ x: i.props.width / i.props.multiple - e, y: t })
- if (!isNaN(A.x) && !isNaN(A.y)) {
- var r = this.r * this.multiple,
- o = (n + 3 * g + r) / 2
- this.inner.setAttribute('r', o.toString()),
- this.inner.setAttribute('cx', A.x.toString()),
- this.inner.setAttribute('cy', A.y.toString()),
- this.icon !== this.firstIcon &&
- ((this.dire.href.baseVal = c[this.icon]), (this.firstIcon = this.icon)),
- this.dire.setAttribute('x', (A.x - r / 2).toString()),
- this.dire.setAttribute('y', (A.y - r / 2).toString()),
- this.dire.setAttribute('width', r.toString()),
- this.dire.setAttribute('height', r.toString()),
- this.bg.setAttribute('x', (A.x - r / 2).toString()),
- this.bg.setAttribute('y', (A.y - r / 2).toString()),
- this.bg.setAttribute('width', r.toString()),
- this.bg.setAttribute('height', r.toString()),
- this.topText.setAttribute('x', A.x.toString()),
- this.topText.setAttribute('y', (A.y - r / 2 - n / 2 + g).toString()),
- this.topText.setAttribute('font-size', n.toString()),
- this.rightText.setAttribute('x', (A.x + r / 2 + g).toString()),
- this.rightText.setAttribute('y', (A.y + n / 2).toString()),
- this.rightText.setAttribute('font-size', n.toString()),
- this.bottomText.setAttribute('x', A.x.toString()),
- this.bottomText.setAttribute('y', (A.y + r / 2 + n).toString()),
- this.bottomText.setAttribute('font-size', n.toString()),
- this.leftText.setAttribute('x', (A.x - r / 2 - n + g).toString()),
- this.leftText.setAttribute('y', (A.y + g).toString()),
- this.leftText.setAttribute('font-size', n.toString())
- var C = this.ArgDire * this.multiple,
- I = { points: [A, { x: A.x - C, y: A.y - r / 2 - n - g }] },
- a = { points: [A, { x: A.x + C, y: A.y - r / 2 - n - g }] },
- l = s.getDisPointLinePoints(I, I.points[0], o),
- u = l[0],
- h = l[1],
- p = s.getDisPointLinePoints(a, a.points[0], o),
- d = p[0],
- f = p[1],
- y =
- s.lineDis({ points: [I.points[1], u] }) > s.lineDis({ points: [I.points[1], h] })
- ? h
- : u,
- v =
- s.lineDis({ points: [a.points[1], d] }) > s.lineDis({ points: [a.points[1], f] })
- ? f
- : d
- 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'
- ),
- this.real.setAttribute(
- 'transform',
- 'rotate(' + (this.angle || 0) + ' ' + A.x + ' ' + A.y + ')'
- ),
- this.simple
- ? ((this.leftText.style.display = 'none'),
- (this.rightText.style.display = 'none'),
- (this.bg.style.display = 'none'),
- (this.inner.style.display = 'none'),
- (this.arc.style.display = 'none'))
- : ((this.leftText.style.display = 'inherit'),
- (this.rightText.style.display = 'inherit'),
- (this.bg.style.display = 'inherit'),
- (this.inner.style.display = 'inherit'),
- (this.arc.style.display = 'inherit'))
- }
- }),
- e
- )
- })(C.CADElement)
- e.default = h
- },
- function (t, e, i) {
- Object.defineProperty(e, '__esModule', { value: !0 }),
- (e.default =
- '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')
- },
- function (t, e, i) {
- Object.defineProperty(e, '__esModule', { value: !0 }),
- (e.default =
- '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=')
- },
- function (t, e, i) {
- Object.defineProperty(e, '__esModule', { value: !0 }),
- (e.default =
- '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=')
- },
- function (t, e, i) {
- var n =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- g =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var A = g(i(47)),
- r = i(3)
- e.attachSign = function (t) {
- var e = { border: 2, r: 5 },
- i = t.addProcessing
- ;(t.addProcessing = function () {
- for (var g = [], r = 0; r < arguments.length; r++) g[r] = arguments[r]
- var o = i.call.apply(i, n([t], g))
- A.default.Setting.set(o.render, e)
- var C = new A.default({ pos: { x: 0, y: 0 }, dire: 0, renderer: o.render })
- return (C.zIndex = 1), o.render.push(C), (o.sign = C), o
- }),
- (t.setSign = function (e, i) {
- var n = t.processing.sign
- r.type.isNumber(i) && (n.dire = i), (n.pos = e)
- }),
- (t.hideSign = function () {
- var e = t.processing.sign
- return (
- (e.show = !1),
- new Promise(function (t) {
- return e.nextTick(t)
- })
- )
- }),
- (t.showSign = function () {
- var e = t.processing.sign
- return (
- (e.show = !0),
- new Promise(function (t) {
- return e.nextTick(t)
- })
- )
- }),
- (t.setDefaultSignStyle = function (i) {
- var n = t.processing.sign
- 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)
- })
- }
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- }),
- A =
- (this && this.__assign) ||
- function () {
- return (A =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- r =
- (this && this.__rest) ||
- function (t, e) {
- var i = {}
- for (var n in t)
- Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
- if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
- var g = 0
- for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
- e.indexOf(n[g]) < 0 &&
- Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
- (i[n[g]] = t[n[g]])
- }
- return i
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var o = i(2),
- C = i(1),
- I = 0,
- s = (function (t) {
- function e(i) {
- var n = i.border,
- g = i.r,
- o = i.show,
- C = void 0 === o || o,
- s = i.color,
- a = void 0 === s ? 'rgb(0, 200, 175)' : s,
- l = r(i, ['border', 'r', 'show', 'color'])
- return (
- (n = n || e.Setting.get(l.renderer).border),
- (g = g || e.Setting.get(l.renderer).r),
- I++,
- t.call(this, A({ border: n, r: g, show: C, color: a }, l)) || this
- )
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- var t = document.createElementNS(C.SVGURI, 'g')
- ;(this.inner = document.createElementNS(C.SVGURI, 'circle')),
- this.inner.setAttribute('stroke', '#fff'),
- (this.arc = document.createElementNS(C.SVGURI, 'path')),
- this.arc.setAttribute('fill', 'url(#orange_red' + I + ')')
- var e = document.createElementNS(C.SVGURI, 'defs'),
- i = document.createElementNS(C.SVGURI, 'linearGradient')
- i.setAttribute('id', 'orange_red' + I),
- i.setAttribute('x1', '0%'),
- i.setAttribute('y1', '0%'),
- i.setAttribute('x2', '100%'),
- i.setAttribute('y2', '100%')
- var n = document.createElementNS(C.SVGURI, 'stop')
- n.setAttribute('offset', '0%')
- var g = document.createElementNS(C.SVGURI, 'stop')
- return (
- g.setAttribute('offset', '100%'),
- i.appendChild(n),
- i.appendChild(g),
- e.appendChild(i),
- t.appendChild(this.arc),
- t.appendChild(this.inner),
- t.appendChild(e),
- t.setAttribute('class', 'sign'),
- (this.$stop1 = n),
- (this.$stop2 = g),
- t
- )
- }),
- (e.prototype.update = function () {
- this.inner.setAttribute('fill', this.color),
- this.$stop1.setAttribute('style', 'stop-color:' + this.color + '; stop-opacity:1'),
- this.$stop2.setAttribute('style', 'stop-color:' + this.color + '; stop-opacity:0.4'),
- this.inner.setAttribute('r', (this.r * this.multiple).toString()),
- this.inner.setAttribute('stroke-width', (this.border * this.multiple).toString()),
- this.inner.setAttribute('cx', this.pos.x.toString()),
- this.inner.setAttribute('cy', this.pos.y.toString())
- var t = 0.4 * this.r * this.multiple,
- e = 1.6 * this.r * this.multiple,
- i = 2.8 * this.r * this.multiple
- this.arc.setAttribute(
- 'd',
- '\n M ' +
- this.pos.x +
- ' ' +
- (this.pos.y - t) +
- ' \n L ' +
- (this.pos.x + i) +
- ' ' +
- (this.pos.y - e) +
- ' \n L ' +
- (this.pos.x + i) +
- ' ' +
- (this.pos.y + e) +
- ' \n L ' +
- this.pos.x +
- ' ' +
- (this.pos.y + t) +
- ' Z\n '
- ),
- this.real.setAttribute(
- 'transform',
- 'rotate(' + this.dire + ' ' + this.pos.x + ' ' + this.pos.y + ')'
- ),
- (this.real.style.display = this.show ? 'inherit' : 'none')
- }),
- (e.Setting = new Map()),
- e
- )
- })(o.CADElement)
- e.default = s
- },
- function (t, e, i) {
- var n =
- (this && this.__assign) ||
- function () {
- return (n =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- g =
- (this && this.__awaiter) ||
- function (t, e, i, n) {
- return new (i || (i = Promise))(function (g, A) {
- function r(t) {
- try {
- C(n.next(t))
- } catch (t) {
- A(t)
- }
- }
- function o(t) {
- try {
- C(n.throw(t))
- } catch (t) {
- A(t)
- }
- }
- function C(t) {
- var e
- t.done
- ? g(t.value)
- : ((e = t.value),
- e instanceof i
- ? e
- : new i(function (t) {
- t(e)
- })).then(r, o)
- }
- C((n = n.apply(t, e || [])).next())
- })
- },
- A =
- (this && this.__generator) ||
- function (t, e) {
- var i,
- n,
- g,
- A,
- r = {
- label: 0,
- sent: function () {
- if (1 & g[0]) throw g[1]
- return g[1]
- },
- trys: [],
- ops: []
- }
- return (
- (A = { next: o(0), throw: o(1), return: o(2) }),
- 'function' == typeof Symbol &&
- (A[Symbol.iterator] = function () {
- return this
- }),
- A
- )
- function o(A) {
- return function (o) {
- return (function (A) {
- if (i) throw new TypeError('Generator is already executing.')
- for (; r; )
- try {
- 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)
- )
- return g
- switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
- case 0:
- case 1:
- g = A
- break
- case 4:
- return r.label++, { value: A[1], done: !1 }
- case 5:
- r.label++, (n = A[1]), (A = [0])
- continue
- case 7:
- ;(A = r.ops.pop()), r.trys.pop()
- continue
- default:
- if (
- !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
- (6 === A[0] || 2 === A[0])
- ) {
- r = 0
- continue
- }
- if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
- r.label = A[1]
- break
- }
- if (6 === A[0] && r.label < g[1]) {
- ;(r.label = g[1]), (g = A)
- break
- }
- if (g && r.label < g[2]) {
- ;(r.label = g[2]), r.ops.push(A)
- break
- }
- g[2] && r.ops.pop(), r.trys.pop()
- continue
- }
- A = e.call(t, r)
- } catch (t) {
- ;(A = [6, t]), (n = 0)
- } finally {
- i = g = 0
- }
- if (5 & A[0]) throw A[1]
- return { value: A[0] ? A[1] : void 0, done: !0 }
- })([A, o])
- }
- }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var r = i(3)
- e.attachScreenshot = function (t) {
- t.screenshot = function (e) {
- var i = e.width,
- o = void 0 === i ? 2048 : i,
- C = e.height,
- I = void 0 === C ? 2048 : C,
- s = e.bgColor,
- a = void 0 === s ? 'rgba(0,0,0,0)' : s,
- l = e.data,
- u = e.spadding,
- c = e.format,
- h = void 0 === c ? 'image/png' : c
- return g(void 0, void 0, void 0, function () {
- var e, i, C, s, c, p, d, f
- return A(this, function (y) {
- return (
- (e = t.processing.render),
- (i = n({}, e.props)),
- (C = new Image()),
- (s = document.createElement('canvas')),
- (c = s.getContext('2d')),
- (p = t.processing.points.map(function (t) {
- return t.ele.x
- })),
- (d = t.processing.points.map(function (t) {
- return t.ele.y
- })),
- (f = t.padding),
- (t.padding = u),
- t.adapt(l, o, I),
- (s.width = o),
- (s.height = I),
- (c.fillStyle = a),
- c.fillRect(0, 0, s.width, s.height),
- [
- 2,
- new Promise(function (n, a) {
- return g(void 0, void 0, void 0, function () {
- return A(this, function (l) {
- return (
- (C.onload = function () {
- return g(void 0, void 0, void 0, function () {
- var g
- return A(this, function (A) {
- return (
- c.drawImage(C, 0, 0),
- (g = {
- file: r.convertBase64UrlToBlob(s.toDataURL(h)),
- width: o,
- height: I,
- left: t.processing.render.realPointToScreen({
- x: Math.min.apply(Math, p),
- y: 0
- }).x,
- top: t.processing.render.realPointToScreen({
- x: 0,
- y: Math.min.apply(Math, d)
- }).y,
- bottom:
- I -
- t.processing.render.realPointToScreen({
- x: 0,
- y: Math.max.apply(Math, d)
- }).y,
- right:
- o -
- t.processing.render.realPointToScreen({
- x: Math.max.apply(Math, p),
- y: 0
- }).x,
- bound: {
- left: Math.min.apply(Math, p),
- top: Math.min.apply(Math, d),
- bottom: Math.max.apply(Math, d),
- right: Math.max.apply(Math, p)
- }
- }),
- (e.props = i),
- (t.padding = f),
- e.adaptLayer(),
- n(g),
- [2]
- )
- })
- })
- }),
- (C.onerror = function (n) {
- ;(e.props = i), (t.padding = f), e.adaptLayer(), a(n)
- }),
- (C.src =
- 'data:image/svg+xml;base64,' +
- window.btoa(unescape(encodeURIComponent(e.svg.outerHTML)))),
- [2]
- )
- })
- })
- })
- ]
- )
- })
- })
- }
- }
- },
- function (t, e, i) {
- Object.defineProperty(e, '__esModule', { value: !0 })
- var n = (function () {
- function t(t) {
- ;(this.length = t + '__length'),
- (this.index = t + '__index'),
- (this.name = t),
- (this.keys = []),
- this.init()
- }
- return (
- (t.prototype.init = function () {
- sessionStorage.setItem(this.length, '0')
- }),
- (t.prototype.getKey = function (t) {
- return this.name + '__' + t
- }),
- (t.prototype.getData = function () {
- return sessionStorage.getItem(this.index)
- }),
- (t.prototype.getLength = function () {
- return Number(sessionStorage.getItem(this.length))
- }),
- (t.prototype.setLength = function (t) {
- sessionStorage.setItem(this.length, t)
- }),
- (t.prototype.push = function (t) {
- var e = this.getLength(),
- i = this.getKey(this.getLength())
- return (
- sessionStorage.setItem(i, JSON.stringify(t)),
- this.keys.push(i),
- this.setLength(e + 1),
- t
- )
- }),
- (t.prototype.pop = function () {
- var t = this.getLength(),
- e = this.get(t - 1)
- return this.setLength(t - 1), e
- }),
- (t.prototype.get = function (t) {
- var e = this.getKey(t)
- return JSON.parse(sessionStorage.getItem(e))
- }),
- (t.prototype.clear = function () {
- this.setLength(0),
- this.keys.forEach(function (t) {
- return sessionStorage.removeItem(t)
- }),
- (this.keys = [this.length])
- }),
- t
- )
- })()
- e.default = n
- },
- function (t, e, i) {
- i.r(e),
- i.d(e, 'default', function () {
- return r
- })
- var n = i(6),
- g = i.n(n),
- A = i(0)
- function r(t, e) {
- let i = Date.now(),
- n = [],
- r = [],
- o = []
- function C(t, e, i, g, A, o, I) {
- for (let s = 0; s < t.length; ++s) {
- if (A.indexOf(s) > -1 || o.indexOf(I) > -1) continue
- let a = t[s],
- l = a.p1.id,
- u = a.p2.id
- if (I == l || I == u) {
- let c = JSON.parse(JSON.stringify(i)),
- h = JSON.parse(JSON.stringify(g)),
- p = JSON.parse(JSON.stringify(A)),
- d = JSON.parse(JSON.stringify(o)),
- f = I
- 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)
- }
- }
- }
- function I(t, e, i, n) {
- let g = []
- for (let t = 0; t < n.length; ++t) {
- let e = n[t]
- g.push(e)
- }
- let A = !0
- for (var r = 0; r < i.length; ++r) {
- if (e.indexOf(t[r]) > -1) {
- A = !1
- continue
- }
- let i = t[r]
- var C = i.p1,
- I = i.p2,
- a = { x: (C.x + I.x) / 2, y: (C.y + I.y) / 2 }
- if (!(s(C, g) && s(I, g) && s(a, g))) return !1
- }
- if (A) {
- let i = []
- 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
- )
- }
- return !0
- }
- function s(t, e) {
- for (var i = 0; i < e.length; ++i) {
- if (a(t, e[i])) return !0
- }
- return !!(function (t, e) {
- for (var i = t.x, n = t.y, g = !1, A = 0, r = e.length - 1; A < e.length; r = A++) {
- var o = e[A],
- C = e[r],
- I = o.x,
- s = o.y,
- a = C.x,
- l = C.y
- s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g)
- }
- return g
- })(t, e)
- }
- function a(t, e) {
- return t.x == e.x && t.y == e.y
- }
- 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
- }))
- function u(t, e, i) {
- 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
- }
- !(function (t) {
- for (let e = 0; e < t.length; ++e) {
- let i = [],
- n = [],
- g = [],
- A = t[e],
- r = A.p1.id,
- o = A.p2.id
- n.push(o), g.push(A.id)
- let I = null
- t.splice(e, 1)
- for (let e = 0; e < t.length; ++e) {
- let A = t[e]
- if (r == A.p1.id || r == A.p2.id) {
- let s = JSON.parse(JSON.stringify(n)),
- a = JSON.parse(JSON.stringify(g)),
- l = [],
- u = JSON.parse(JSON.stringify(i)),
- c = r
- 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)
- }
- }
- }
- })(JSON.parse(JSON.stringify(l))),
- (r = r.map(e => e.map(e => t.vertex.find(({ id: t }) => e === t)))),
- (n = n.map(t => t.map(t => l.find(({ id: e }) => t === e)))),
- (function () {
- for (var t = 0; t < r.length; ++t)
- for (var e = t + 1; e < r.length; ++e)
- if (I(n[t], n[e], r[t], r[e])) r.splice(e, 1), n.splice(e, 1), --e
- else if (I(n[e], n[t], r[e], r[t])) {
- r.splice(t, 1), n.splice(t, 1), --t, --e
- break
- }
- })(),
- (function () {
- let t = []
- for (let e = 0; e < o.length; ++e) {
- let i = o[e],
- g = []
- ;(g[0] = null), (g[1] = null)
- for (
- let t = 0;
- t < n.length &&
- (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),
- null == g[0] || null == g[1]);
- ++t
- );
- null != g[0] && null != g[1] && t.push(g)
- }
- o = t
- })(),
- (r = r.sort((t, e) => Number(!Object(A.isFaceContain)(t, e)))),
- (t.room = n.map((t, e) => ({ wall: t.map(({ id: t }) => t), ground: r[e] }))),
- test_debugger &&
- (window.testCenterPoints && e.processing.render.remove(...window.testCenterPoints),
- (window.testCenterPoints = r.map(t => {
- let i = (function (t) {
- for (var e = 0, i = 0, n = 0, g = t[1], A = 2; A < t.length; A++) {
- var r = t[A],
- o = u(t[0], g, r)
- ;(n += o),
- (e += (t[0].x + g.x + r.x) * o),
- (i += (t[0].y + g.y + r.y) * o),
- (g = r)
- }
- return { x: e / n / 3, y: i / n / 3 }
- })(t.map(t => ({ ...t, y: -t.y }))),
- n =
- 'rgba(' +
- Math.floor(255 * Math.random()) +
- ',' +
- Math.floor(255 * Math.random()) +
- ',' +
- Math.floor(255 * Math.random()) +
- ',0.8)',
- A = new g.a({
- fillColor: n,
- storkeColor: n,
- x: i.x,
- y: i.y,
- renderer: e.processing.render
- })
- return e.processing.render.push(A), A
- })),
- window.testCenterPoints.forEach((i, g) => {
- let A = {
- pointEles: t.room[g].ground.map(
- t => e.processing.points.find(({ id: e }) => e === t.id).ele.real
- ),
- lineEles: n[g].map(t => e.processing.lines.find(({ id: e }) => e === t.id).ele.real),
- center: i.real,
- pointData: r[g],
- lineData: n[g]
- }
- console.log(A)
- }))
- let c = Date.now()
- return console.warn('璁$畻瀹屾瘯锛岃€楁椂' + (c - i)), t
- }
- },
- function (t, e, i) {
- Object.defineProperty(e, '__esModule', { value: !0 }),
- (e.attchDOMTranform = function (t) {
- var e = function (e) {
- var i = t.processing.render
- if (e.target === i.svg) {
- var n = i.props.left,
- g = i.props.top,
- A = function (A) {
- ;(i.props.left = n - (e.pageX - A.pageX) * i.props.multiple),
- (i.props.top = g - (e.pageY - A.pageY) * i.props.multiple),
- i.adaptLayer(),
- t.propsChange && t.propsChange(),
- A.preventDefault()
- },
- r = function () {
- document.documentElement.removeEventListener('mousemove', A, !1),
- document.documentElement.removeEventListener('mouseup', r, !1)
- }
- document.documentElement.addEventListener('mousemove', A, !1),
- document.documentElement.addEventListener('mouseup', r, !1),
- e.preventDefault()
- }
- },
- i = function (e) {
- var i = t.processing.render,
- n = e.wheelDelta
- ? window.opera
- ? -e.wheelDelta / 120
- : e.wheelDelta / 120
- : e.detail
- ? -e.detail / 3
- : 0,
- g = i.props.scale + (n > 0 ? 0.08 : -0.08)
- g > 0.1 && ((i.props.scale = g), i.adaptLayer(), t.propsChange && t.propsChange())
- }
- ;(t.openMouseHandle = function () {
- var n = t.layer
- n.addEventListener('mousedown', e, !1), n.addEventListener('mousewheel', i, !1)
- }),
- (t.closeMouseHandle = function () {
- var n = t.layer
- n.removeEventListener('mousedown', e, !1), n.removeEventListener('mousewheel', i, !1)
- })
- var n = t.destroy
- t.destroy = function () {
- for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
- t.closeMouseHandle(), n.apply(this, e)
- }
- })
- },
- function (t, e, i) {
- var n =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var g = i(2),
- A = n(i(4)),
- r = n(i(7))
- e.attachDisabled = function (t) {
- var e = [
- 'increase',
- 'getStackState',
- 'preservation',
- 'previous',
- 'next',
- 'closeMouseHandle',
- 'showGauge',
- 'hideGauge'
- ],
- i = []
- ;(t.forbidden = function () {
- i.length !== e.length &&
- (t.hideGauge(),
- t.closeMouseHandle(),
- g.CADElement.examples.get(t.processing.render).forEach(function (t) {
- return t.unEvent()
- }),
- A.default.attaArch.forEach(function (t) {
- t.forEach(function (t) {
- t instanceof r.default && t.delEvent()
- })
- }),
- e.forEach(function (e) {
- i.push(t[e]), delete t[e]
- }))
- }),
- (t.available = function () {
- i.length === e.length &&
- (e.forEach(function (e, n) {
- return (t[e] = i[n])
- }),
- (i = []),
- g.CADElement.examples.get(t.processing.render).forEach(function (t) {
- return t.listen()
- }),
- A.default.attaArch.forEach(function (t) {
- t.forEach(function (t) {
- return t instanceof r.default && t.addEvent()
- })
- }),
- t.showGauge(),
- t.openMouseHandle())
- })
- }
- },
- function (t, e, i) {
- var n =
- (this && this.__assign) ||
- function () {
- return (n =
- Object.assign ||
- function (t) {
- 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])
- return t
- }).apply(this, arguments)
- },
- g =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- A =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var r = A(i(23))
- e.attachRote = function (t) {
- var e = t.addProcessing
- ;(t.addProcessing = function () {
- for (var i = [], n = 0; n < arguments.length; n++) i[n] = arguments[n]
- var A = e.call.apply(e, g([t], i)),
- o = new r.default({ renderer: A.render, local: [] })
- return (
- (o.zIndex = 2),
- A.render.push(o),
- (o.setActive = function (e) {
- t.activeRoute(o.local.indexOf(e))
- }),
- A
- )
- }),
- (t.showRotes = function () {
- var e = t.processing.rote
- return (
- (e.show = !0),
- new Promise(function (t) {
- return e.nextTick(t)
- })
- )
- }),
- (t.hideRotes = function () {
- var e = t.processing.rote
- return (
- (e.show = !1),
- new Promise(function (t) {
- return e.nextTick(t)
- })
- )
- }),
- (t.setRoutes = function (e) {
- var i = t.processing.rote
- ;(e = e.map(function (t, i) {
- if (t.rangn) {
- var g = (function (t) {
- var i = e
- .slice(0, t)
- .reverse()
- .find(function (t) {
- return !t.rangn
- })
- return (
- i ||
- e.slice(t).find(function (t) {
- return !t.rangn
- })
- )
- })(i)
- if (g) return n(n({}, g), { rangn: !0 })
- }
- return n({}, t)
- })),
- t.clearRoutes(function () {
- i.local = g(e)
- })
- }),
- (t.pushRoute = function (e) {
- t.clearRoutes(function () {
- setTimeout(function () {}, 100)
- })
- }),
- (t.activeRoute = function (e) {
- var i = t.processing.rote
- i.nextTick(function () {
- i.active = i.local[e]
- })
- }),
- (t.popRoute = function (e) {
- var i = t.processing.rote
- i.local.splice(e, 1),
- i.nextTick(function () {
- return (i.local = g(i.local))
- })
- }),
- (t.clearRoutes = function (e) {
- var i = t.processing.rote
- ;(i.local = []),
- (i.dialog = 0),
- i.nextTick(function () {
- return e && e()
- })
- })
- }
- },
- function (t, e) {
- t.exports =
- 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAt1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+6urrFxcXR0dHY2NjX19fDw8P////Hx8fg4ODj4+PQ0NDCwsLGxsb///////////////+Zk85TAAAAPHRSTlMAAgQiHSZ5yO+B2fPfw70siHVCZ337ODSO0YM7rJLjzVINSDDpcBkUXfljCAQ4lcV6BgpEkKlgQ0CZ3FCcXUtcAAAAAWJLR0QB/wIt3gAAAAd0SU1FB+MFHgsMLLYaoF4AAADtSURBVBjTbVCJcoIwFNxQuSIWEYMoUOSQo/S0p+37/+9qIraNnb7JZDK7m012gfNhBvsXuZjoiNpNyyZHR5jp8qk3m17+avw5Jx4swqWITsgq9sR6aWKySVL7eDfKrkQeKPtt7BdUAlVcC3vXKLLdWQ0yT55IdO3oa246hqK/hoGwd4GB3dze3T88MgTjfyKR74Gn55fXt3fAsaRQrn0uqsINB2XR9cVRKYkDpQmDiviRwRjTAJwOkmUoqcF3IcyL13mLAXZ6Eqqpy4CcBVbk/wjBeC0il7p0Bq1NmyqZkSjRwaaFISN9/i0d2hNf1CoSHV2Lm8sAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDUtMzBUMTE6MTI6NDQrMDg6MDCJUf45AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA1LTMwVDExOjEyOjQ0KzA4OjAw+AxGhQAAAABJRU5ErkJggg=='
- },
- function (t, e, i) {
- var n =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- g =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var A = g(i(5)),
- r = g(i(6)),
- o = g(i(10))
- e.attachStyle = function (t) {
- var e = { fillColor: 'rgb(0, 200, 175)', storkeColor: 'green' },
- i = { fillColor: 'rgba(245, 255, 0, 0.7)', storkeColor: 'rgba(245, 255, 255, 0.3)' }
- t.setDefaultPointStyle = function (n) {
- n.storkeColor && (e.storkeColor = n.storkeColor),
- n.fillColor && (e.fillColor = n.fillColor),
- n.hoverStorkeColor && (i.storkeColor = n.hoverStorkeColor),
- n.hoverFillColor && (i.fillColor = n.hoverFillColor),
- setTimeout(function () {
- t.loadData(t.getData())
- }, 100)
- }
- var g = { width: 3, color: 'rgb(255,255,255)' },
- C = t.addProcessing
- ;(t.addProcessing = function () {
- for (var I = [], s = 0; s < arguments.length; s++) I[s] = arguments[s]
- var a = C.call.apply(C, n([t], I))
- return (
- r.default.Setting.set(a.render, e),
- A.default.Setting.set(a.render, i),
- o.default.Setting.set(a.render, g),
- a
- )
- }),
- (t.setDefaultLineStyle = function (e) {
- e.width && (g.width = e.width),
- e.color && (g.color = e.color),
- setTimeout(function () {
- t.loadData(t.getData())
- }, 100)
- })
- }
- },
- function (t, e, i) {
- Object.defineProperty(e, '__esModule', { value: !0 }),
- (e.attchCustom = function (t) {
- t.edits = []
- })
- },
- function (t, e, i) {
- var n =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var g = i(0)
- function A(t, e) {
- var i = e.addCase,
- A = e.addDoor,
- r = e.addColumn,
- o = e.addLine,
- C = e.addSlideDoor,
- I = e.addBayCase,
- s = e.addGroundCase,
- a = e.addFurnColumn,
- l = e.addFurnFlue,
- u = e.adddDoubleDoor,
- c = function (t) {
- Object.defineProperties(t, {
- ewidth: {
- get: function () {
- return Number(g.lineDis({ points: t.linePoints }).toFixed(2))
- },
- set: function (e) {
- if (!(e <= 0 || e === t.ewidth)) {
- var i = g.lineCenter({ points: t.linePoints }),
- n = g.getDisPointLinePoints(t.attachment, i, e / 2),
- A = n[0],
- r = n[1]
- g.lineDis({ points: [t.linePoints[0], A] }) >
- g.lineDis({ points: [t.linePoints[0], r] })
- ? ((t.linePoints[0].x = r.x),
- (t.linePoints[0].y = r.y),
- (t.linePoints[1].x = A.x),
- (t.linePoints[1].y = A.y))
- : ((t.linePoints[0].x = A.x),
- (t.linePoints[0].y = A.y),
- (t.linePoints[1].x = r.x),
- (t.linePoints[1].y = r.y))
- }
- }
- },
- maxWidth: {
- get: function () {
- var e = [t.attachment],
- i = [],
- n = [],
- A = function (e, i, n) {
- var A = e.linePoints || e.points
- return { dis: g.lineDis({ points: [t.linePoints[i], A[n]] }), point: A[n] }
- }
- e.forEach(function (e) {
- 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)))
- }),
- i.sort(function (t, e) {
- return t.dis - e.dis
- }),
- n.sort(function (t, e) {
- return t.dis - e.dis
- })
- var r =
- i[0].dis > n[0].dis
- ? [t.linePoints[1], n[0].point]
- : [t.linePoints[0], i[0].point]
- return Number(
- (2 * g.lineDis({ points: r }) + g.lineDis({ points: t.linePoints })).toFixed(2)
- )
- }
- },
- minWidth: {
- get: function () {
- return 0
- }
- }
- })
- },
- h = function (e) {
- Object.defineProperties(e, {
- estart: {
- get: function () {
- return e.start
- },
- set: function (i) {
- i &&
- t.processing.doors.forEach(function (t) {
- t.ele.start = !1
- }),
- (e.start = i),
- t.preservation()
- }
- }
- })
- },
- p = function (t) {
- Object.defineProperties(t, {
- tick: {
- get: function () {
- return Math.max(
- Number(g.lineDis({ points: [t.points[0], t.points[3]] }).toFixed(2)),
- Number(g.lineDis({ points: [t.points[1], t.points[2]] }).toFixed(2))
- )
- },
- set: function (e) {
- e <= 0 ||
- e === t.oldVal ||
- ((t.oldVal = e), (t.thickness = e), t.updatePeripheral())
- }
- },
- maxTick: {
- get: function () {
- return 10
- }
- },
- minTick: {
- get: function () {
- return 0
- }
- }
- })
- }
- ;(e.addCase = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- var g = i.call.apply(i, n([this], t))
- return c(g.ele), g
- }),
- (e.addBayCase = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- var i = I.call.apply(I, n([this], t))
- return c(i.ele), i
- }),
- (e.addGroundCase = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- var i = s.call.apply(s, n([this], t))
- return c(i.ele), i
- }),
- (e.addDoor = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- var i = A.call.apply(A, n([this], t))
- return c(i.ele), h(i.ele), i
- }),
- (e.addSlideDoor = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- var i = C.call.apply(C, n([this], t))
- return c(i.ele), i
- }),
- (e.adddDoubleDoor = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- var i = u.call.apply(u, n([this], t))
- return c(i.ele), i
- }),
- (e.addColumn = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- var i = r.call.apply(r, n([this], t))
- return c(i.ele), p(i.ele), i
- }),
- (e.addLine = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- var i = o.call.apply(o, n([this], t))
- return i
- })
- var d = function (t) {
- Object.defineProperties(t, {
- ewidth: {
- get: function () {
- return Number(g.lineDis({ points: [t.points[0], t.points[1]] }).toFixed(2))
- },
- set: function (e) {
- if (!(e <= 0 || e === t.ewidth)) {
- var i = g.lineStretch({ points: [t.points[0], t.points[1]] }, e),
- n = g.lineStretch({ points: [t.points[2], t.points[3]] }, e),
- A = i.points.concat(n.points)
- t.check(A) && t.directUpdate(A)
- }
- }
- },
- maxWidth: {
- get: function () {
- return 10
- }
- },
- minWidth: {
- get: function () {
- return 0
- }
- }
- })
- },
- f = function (t) {
- Object.defineProperties(t, {
- tick: {
- get: function () {
- return Number(g.lineDis({ points: [t.points[1], t.points[2]] }).toFixed(2))
- },
- set: function (e) {
- if (!(e <= 0 || e === t.tick)) {
- var i = g.lineStretch({ points: [t.points[0], t.points[3]] }, e),
- n = g.lineStretch({ points: [t.points[1], t.points[2]] }, e),
- A = [i.points[0], n.points[0], n.points[1], i.points[1]]
- t.check(A) && t.directUpdate(A)
- }
- }
- },
- maxTick: {
- get: function () {
- return 10
- }
- },
- minTick: {
- get: function () {
- return 0
- }
- }
- })
- },
- y = function (t) {
- Object.defineProperties(t, {
- maxAngle: {
- get: function () {
- return 360
- }
- },
- minAngle: {
- get: function () {
- return 0
- }
- }
- })
- }
- ;(e.addFurnColumn = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- var i = a.call.apply(a, n([this], t))
- return d(i.ele), f(i.ele), y(i.ele), i
- }),
- (e.addFurnFlue = function () {
- for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
- var i = l.call.apply(l, n([this], t))
- return d(i.ele), f(i.ele), y(i.ele), i
- })
- }
- e.default = function (t) {
- var e = t.addProcessing
- t.addProcessing = function () {
- for (var i = [], g = 0; g < arguments.length; g++) i[g] = arguments[g]
- var r = e.call.apply(e, n([t], i))
- return A(t, r), r
- }
- }
- },
- function (t, e, i) {
- var n =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- }
- Object.defineProperty(e, '__esModule', { value: !0 }),
- (e.other = function (t) {
- var e = !1,
- i = t.addProcessing
- ;(t.addProcessing = function () {
- for (var g = [], A = 0; A < arguments.length; A++) g[A] = arguments[A]
- var r = i.call.apply(i, n([t], g)),
- o = r.addTagging
- return (
- (r.addTagging = function (t) {
- return (t.show = e), o.call(r, t)
- }),
- r
- )
- }),
- (t.hideLabel = function () {
- ;(e = !1),
- t.processings.forEach(function (t) {
- t.taggings.forEach(function (t) {
- return (t.ele.show = e)
- })
- })
- }),
- (t.showLabel = function () {
- ;(e = !0),
- t.processings.forEach(function (t) {
- t.taggings.forEach(function (t) {
- return (t.ele.show = e)
- })
- })
- })
- })
- },
- function (t, e, i) {
- var n =
- (this && this.__awaiter) ||
- function (t, e, i, n) {
- return new (i || (i = Promise))(function (g, A) {
- function r(t) {
- try {
- C(n.next(t))
- } catch (t) {
- A(t)
- }
- }
- function o(t) {
- try {
- C(n.throw(t))
- } catch (t) {
- A(t)
- }
- }
- function C(t) {
- var e
- t.done
- ? g(t.value)
- : ((e = t.value),
- e instanceof i
- ? e
- : new i(function (t) {
- t(e)
- })).then(r, o)
- }
- C((n = n.apply(t, e || [])).next())
- })
- },
- g =
- (this && this.__generator) ||
- function (t, e) {
- var i,
- n,
- g,
- A,
- r = {
- label: 0,
- sent: function () {
- if (1 & g[0]) throw g[1]
- return g[1]
- },
- trys: [],
- ops: []
- }
- return (
- (A = { next: o(0), throw: o(1), return: o(2) }),
- 'function' == typeof Symbol &&
- (A[Symbol.iterator] = function () {
- return this
- }),
- A
- )
- function o(A) {
- return function (o) {
- return (function (A) {
- if (i) throw new TypeError('Generator is already executing.')
- for (; r; )
- try {
- 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)
- )
- return g
- switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
- case 0:
- case 1:
- g = A
- break
- case 4:
- return r.label++, { value: A[1], done: !1 }
- case 5:
- r.label++, (n = A[1]), (A = [0])
- continue
- case 7:
- ;(A = r.ops.pop()), r.trys.pop()
- continue
- default:
- if (
- !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
- (6 === A[0] || 2 === A[0])
- ) {
- r = 0
- continue
- }
- if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
- r.label = A[1]
- break
- }
- if (6 === A[0] && r.label < g[1]) {
- ;(r.label = g[1]), (g = A)
- break
- }
- if (g && r.label < g[2]) {
- ;(r.label = g[2]), r.ops.push(A)
- break
- }
- g[2] && r.ops.pop(), r.trys.pop()
- continue
- }
- A = e.call(t, r)
- } catch (t) {
- ;(A = [6, t]), (n = 0)
- } finally {
- i = g = 0
- }
- if (5 & A[0]) throw A[1]
- return { value: A[0] ? A[1] : void 0, done: !0 }
- })([A, o])
- }
- }
- },
- A =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- },
- r =
- (this && this.__importDefault) ||
- function (t) {
- return t && t.__esModule ? t : { default: t }
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- var o = i(22),
- C = i(2),
- I = r(i(60)),
- s = r(i(62)),
- a = i(0),
- l = function (t, e) {
- var i = t.processing,
- n = i.doors,
- g = i.slideDoors,
- r = i.groundCases,
- o = i.cases,
- C = i.points,
- I = i.taggings,
- s = i.bayCases,
- a = A(i.furnFlues, i.furnColumns, i.columns),
- l = A(i.lines),
- u = A(o, n)
- I.forEach(function (t) {
- var i = 3 * e
- t.ele.fontSize = i < 12 ? 12 : i
- }),
- a.forEach(function (t) {
- t.ele.width = 0.33 * e
- }),
- g.forEach(function (t) {
- ;(t.ele.foorWidth = (2 * e) / (t.ele.attachment.border ? 1 : 2)),
- (t.ele.bwithin = e / 2 / (t.ele.attachment.border ? 1 : 2))
- }),
- o.forEach(function (t) {
- ;(t.ele.width = (4 * e) / 2 / (t.ele.attachment.border ? 1 : 1.5)),
- (t.ele.stamWidth = (0.1 * e) / (t.ele.attachment.border ? 1 : 2)),
- (t.ele.outLine.width = t.ele.width),
- (t.ele.outLine.color = t.ele.fill),
- (t.ele.innerline.width = t.ele.stamWidth),
- (t.ele.innerline.color = t.ele.seam),
- t.ele.innerline.update()
- }),
- l.forEach(function (t) {
- t.ele.width = e
- }),
- s.forEach(function (t) {
- t.ele.width = (0.33 * e) / (t.ele.attachment.border ? 1 : 2)
- }),
- r.forEach(function (t) {
- t.ele.width = (e / 2) * (t.ele.attachment.border ? 1 : 2)
- }),
- n.forEach(function (t) {
- ;(t.ele.foorWidth = (2 * e) / (t.ele.attachment.border ? 1 : 2)),
- (t.ele.outWidth = (0.33 * e) / (t.ele.attachment.border ? 1 : 2))
- }),
- C.forEach(function (t) {
- ;(t.ele.r1 = e + 1), (t.ele.r = e + 1)
- }),
- u.forEach(function (t) {
- ;(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)
- }),
- t.setDireAttrs({
- fontSize: 2.6 * e,
- r: 16.6 * e,
- border: e,
- right: 6.3 * e,
- top: 6.3 * e,
- ArgDire: 5 * e
- })
- }
- e.default = function (t) {
- var e = t.screenshot
- t.screenshot = function (i) {
- var A = void 0 === i ? {} : i,
- r = A.width,
- u = void 0 === r ? 2880 : r,
- c = A.height,
- h = void 0 === c ? 1620 : c,
- p = A.primaryColor,
- d = void 0 === p ? '#fff' : p,
- f = A.archColor,
- y = void 0 === f ? 'rgba(0,0,0,0)' : f,
- v = A.bgColor,
- m = void 0 === v ? 'rgba(0,0,0,0)' : v,
- b = A.textColor,
- x = void 0 === b ? '#fff' : b,
- _ = A.archBorder,
- w = void 0 === _ ? d : _,
- P = A.data,
- O = void 0 === P ? t.getData(!0, !0) : P,
- S = A.padding,
- E = void 0 === S ? 450 : S,
- D = A.showGauge,
- k = void 0 === D || D,
- M = A.lineWidth,
- L = void 0 === M ? 10 : M,
- N = A.spliceGauge,
- j = void 0 !== N && N,
- R = A.showDire,
- G = void 0 !== R && R,
- T = A.showTags,
- V = void 0 === T || T,
- U = A.showDoorStart,
- W = void 0 === U || U,
- Z = A.showMapping,
- B = void 0 !== Z && Z,
- Q = A.format,
- F = void 0 === Q ? 'image/png' : Q,
- H = A.errreturn,
- J = void 0 !== H && H
- return n(void 0, void 0, void 0, function () {
- var i, n, A, r, c, p, f, v, b, _, P, S, D, M, N, R, T, U, Z, Q, H
- return g(this, function (g) {
- switch (g.label) {
- case 0:
- return (
- (O = o.roateDataY(
- O.floors.find(function (t) {
- return t.show
- })
- )),
- (i = t.processing.lines[0] ? t.processing.lines[0].ele.width : 3),
- (t.processing.render.layer.style.opacity = '0'),
- (n = []),
- (A = []),
- C.CADElement.examples.get(t.processing.render).forEach(function (t) {
- A.push(
- new Promise(function (e) {
- return t.nextTick(e)
- })
- )
- }),
- [4, Promise.all(A)]
- )
- case 1:
- for (
- g.sent(),
- C.CADElement.examples.get(t.processing.render).forEach(function (t) {
- ;(t.__state.direct = !0), t.changeSelect(!1)
- }),
- B &&
- ((r = []),
- s
- .default(O)
- .map(function (t) {
- return t
- })
- .sort(function (t, e) {
- return a.isFaceContain(t, e) ? 1 : -1
- })
- .forEach(function (e, i) {
- var g = t.processing.taggings.find(function (t) {
- return a.pointInside(e, t.ele) && !~r.indexOf(t)
- }),
- A = new I.default({
- points: e,
- label: g ? g.ele.title : '',
- show: !0,
- renderer: t.processing.render
- })
- ;(A.zIndex = -i - 3),
- A.update(),
- t.processing.render.push(A),
- n.push(A),
- r.push(g)
- })),
- (c = [
- {
- key: 'stroke',
- attr: [
- 'doors',
- 'columns',
- 'bayCases',
- 'furnColumns',
- 'furnFlues',
- 'doubleDoors'
- ],
- oldVals: [],
- newColor: w
- },
- { key: 'fill', attr: ['groundCases'], oldVals: [], newColor: w },
- { key: 'seam', attr: ['cases'], oldVals: [], newColor: d },
- { key: 'bgColor', attr: ['cases'], oldVals: [], newColor: d },
- { key: 'color', attr: ['lines'], oldVals: [], newColor: d },
- { key: 'icon', attr: ['doors'], oldVals: [], newColor: d },
- {
- key: 'fill',
- attr: [
- 'cases',
- 'doors',
- 'columns',
- 'bayCases',
- 'furnColumns',
- 'furnFlues',
- 'slideDoors',
- 'doubleDoors'
- ],
- oldVals: [],
- newColor: y
- },
- { key: 'foorColor', attr: ['slideDoors'], oldVals: [], newColor: w },
- { key: 'clipColor', attr: ['slideDoors'], oldVals: [], newColor: y },
- { key: 'color', attr: ['taggings'], oldVals: [], newColor: x }
- ]).forEach(function (e) {
- var i = e.key,
- n = e.attr,
- g = e.oldVals,
- A = e.newColor
- n.forEach(function (e) {
- g.push(
- t.processing[e].map(function (t) {
- return t.ele[i]
- })
- ),
- t.processing[e].forEach(function (t) {
- var e = t.ele
- e[i] = 'icon' === i ? ('#fff' !== A ? 'darkIcon' : 'defaultIcon') : A
- })
- })
- }),
- p = t.processing.direction,
- f = p.show,
- !p.show && G ? t.showDire() : G || t.hideDire(),
- v = t.processing.taggings[0] && t.processing.taggings[0].ele.show,
- t.processing.taggings.forEach(function (t) {
- return (t.ele.show = V)
- }),
- b = t.processing.points[0].ele.fillColor,
- _ = t.processing.lines[0].ele.init.color,
- t.processing.points.forEach(function (t) {
- t.ele.fillColor = 'rgba(0,0,0,0)'
- }),
- P = []
- .concat(t.processing.doors)
- .concat(t.processing.groundCases)
- .concat(t.processing.cases)
- .concat(t.processing.doubleDoors),
- Z = 0;
- Z < P.length;
- Z++
- )
- (Q = P[Z].ele.points || P[Z].ele.linePoints) &&
- Q.forEach(function (t) {
- return (t.fillColor = 'rgba(0,0,0,0)')
- })
- t.setGaugeModel(1),
- (S = p.icon),
- t.setDireAttrs({ simple: !0, icon: '#fff' !== d ? 'darkIcon' : 'defaultIcon' }),
- (D = t.processing.doors.map(function (t) {
- return t.ele.showStart
- })),
- t.processing.doors.forEach(function (t) {
- return (t.ele.showStart = W)
- }),
- (M = t.gauge && t.gauge.stroke),
- t.gauge && t.gauge.minPX,
- k &&
- ((N = {
- width: L / 2,
- showTop: !1,
- showRight: !1,
- padding: 3.3 * L,
- stroke: d
- }),
- j
- ? ((N.minPX = 12 * L), console.log('---', N.minPX))
- : (N.minPX = Math.max(u, h)),
- t.setGaugeAttrs(N)),
- l(t, L),
- C.CADElement.examples.get(t.processing.render).forEach(function (t) {
- return t.update()
- }),
- (g.label = 2)
- case 2:
- return (
- 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
- })
- ]
- )
- case 3:
- return (R = g.sent()), [3, 5]
- case 4:
- return (U = g.sent()), J ? [2, U] : ((T = U), [3, 5])
- case 5:
- for (
- k &&
- t.setGaugeAttrs({
- minPX: 50,
- width: 1,
- showTop: !0,
- showRight: !0,
- padding: 10,
- stroke: M
- }),
- t.setDireAttrs({ simple: !1, icon: S }),
- Z = 0;
- Z < P.length;
- Z++
- )
- (Q = P[Z].ele.points || P[Z].ele.linePoints) &&
- Q.map(function (t) {
- return (t.fillColor = b)
- })
- if (
- (l(t, i),
- t.setGaugeModel(0),
- t.processing.points.forEach(function (t) {
- return (t.ele.fillColor = b)
- }),
- t.processing.lines.forEach(function (t) {
- return (t.ele.color = _)
- }),
- (H = t.processing.render).remove.apply(H, n),
- f ? t.showDire() : t.hideDire(),
- v
- ? t.processing.taggings.forEach(function (t) {
- return (t.ele.show = !0)
- })
- : t.processing.taggings.forEach(function (t) {
- return (t.ele.show = !1)
- }),
- t.processing.doors.forEach(function (t, e) {
- t.ele.showStart = D[e]
- }),
- (t.processing.render.layer.style.opacity = '1'),
- c.forEach(function (e) {
- var i = e.key,
- n = e.attr,
- g = e.oldVals
- n.forEach(function (e, n) {
- t.processing[e].forEach(function (t, e) {
- t.ele[i] = g[n][e]
- })
- })
- }),
- C.CADElement.examples.get(t.processing.render).forEach(function (t) {
- ;(t.__state.direct = !1), t.update()
- }),
- T)
- )
- throw T
- return [2, R]
- }
- })
- })
- }
- }
- },
- function (t, e, i) {
- var n,
- g =
- (this && this.__extends) ||
- ((n = function (t, e) {
- return (n =
- Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array &&
- function (t, e) {
- t.__proto__ = e
- }) ||
- function (t, e) {
- for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
- })(t, e)
- }),
- function (t, e) {
- function i() {
- this.constructor = t
- }
- n(t, e),
- (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
- })
- Object.defineProperty(e, '__esModule', { value: !0 })
- var A = i(2),
- r = i(1),
- o = i(61),
- C = 0,
- I = (function (t) {
- function e(e) {
- return t.call(this, e) || this
- }
- return (
- g(e, t),
- (e.prototype.grentNode = function () {
- var t = 'pattern-' + ++C,
- e = document.createElementNS(r.SVGURI, 'g')
- return (
- (this.path = document.createElementNS(r.SVGURI, 'path')),
- (this.pattern = document.createElementNS(r.SVGURI, 'pattern')),
- (this.maping = document.createElementNS(r.SVGURI, 'image')),
- this.pattern.append(this.maping),
- this.pattern.setAttribute('id', t),
- this.pattern.setAttribute('patternUnits', 'userSpaceOnUse'),
- this.path.setAttribute('fill', 'url(#' + t + ')'),
- e.appendChild(this.path),
- e.appendChild(this.pattern),
- e
- )
- }),
- (e.prototype.update = function () {
- var t =
- 'M' +
- this.points
- .map(function (t) {
- return ' ' + t.x + ' ' + t.y + ' '
- })
- .join('L') +
- 'z',
- e = this.renderer.screenToRealPoint({ x: 30, y: 30 }),
- i = this.renderer.screenToRealPoint({ x: 0, y: 0 }),
- n = Math.abs(e.x - i.x),
- g = Math.abs(e.y - i.y)
- ;(this.icon && this.icon === this.firstIcon) ||
- ((this.icon = o.getMaping(this.label)),
- (this.maping.href.baseVal = this.icon),
- (this.firstIcon = this.icon)),
- this.maping.setAttribute('width', n.toString()),
- this.maping.setAttribute('height', g.toString()),
- this.pattern.setAttribute('width', n.toString()),
- this.pattern.setAttribute('height', g.toString()),
- this.path.setAttribute('d', t)
- }),
- e
- )
- })(A.CADElement)
- e.default = I
- },
- function (t, e, i) {
- Object.defineProperty(e, '__esModule', { value: !0 })
- var n = i(9),
- g = [
- {
- name: 'hall',
- img: 'data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAWQABAQEBAAAAAAAAAAAAAAAAAgADCAEBAQEBAAAAAAAAAAAAAAAAAAECAxABAAICAgMAAAAAAAAAAAAAAQACESExQVFxAxEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A6L+ihirm3U4tsrci68+4VV5U349wNfmqYs4t3CDfSwBZFDMoqoKZgOm0kFfawBYBHEoqgq4gOmkkC+gpmpi3UDK3IO/PuFVeUNePcDX5iGbGbdwj/9k='
- },
- {
- name: 'room',
- img: 'data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAXAABAQEAAAAAAAAAAAAAAAAAAgAGAQEBAQAAAAAAAAAAAAAAAAAAAQYQAQABBAEEAwAAAAAAAAAAAAECABEhEgNRYYGRwSIUEQEBAAAAAAAAAAAAAAAAAAAAEf/aAAwDAQACEQMRAD8A1rHnJu3Lsq/UnIfRWTrTlyfo1vBx1ZL8VKRcf6NbzcdSSfFKQSPOzNeXVE+rOS+mrRTVZusnLbJbwXqBCamU72b1FSmrle9m9AYKMHWRkvkt5L1UUxGZtIy2wW8NqBAamF7Xb1FSGrhO129AYCsDaTkvgt5bVUTLnZu3Fqi/YhJfZVgXJ+jW0DHRinzUhVx/o1tMx0Ir80hRJc5M14tlT7MJD7asH//Z'
- },
- {
- name: 'other',
- img: 'data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAUwABAQEAAAAAAAAAAAAAAAAAAQAHAQEBAAAAAAAAAAAAAAAAAAAAAxAAAwADAQAAAAAAAAAAAAAAAAERIUGBIhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A31P00yAK6BV0Bb9JICxamAbl4Bbl4A4tbAsWJAG7OgW7OgOLGgJL02wCOgUdAWvSaA//2Q=='
- }
- ],
- A = [
- { texts: n.i18n.t('modules.cad.hall_tests').split(','), mapping: 'hall' },
- { texts: n.i18n.t('modules.cad.room_tests').split(','), mapping: 'room' },
- { texts: n.i18n.t('modules.cad.other_tests').split(','), mapping: 'other' }
- ]
- ;(e.labelTexts = A.reduce(function (t, e) {
- return t.concat(e.texts)
- }, [])),
- (e.getMaping = function (t) {
- var e = A.find(function (e) {
- return ~e.texts.indexOf(t)
- })
- return g.find(function (t) {
- return t.name === (e ? e.mapping : 'other')
- }).img
- })
- },
- function (t, e, i) {
- i.r(e),
- i.d(e, 'default', function () {
- return r
- })
- var n = i(6),
- g = i.n(n),
- A = i(0)
- function r(t, e) {
- t = (function (t, e) {
- let i = t.wall,
- n = t.vertex
- for (let t = 0; t < n.length; t++) {
- let e = n[t]
- n.filter(
- t =>
- t !== e &&
- ((t.x === e.x && t.y === e.y) || Object(A.lineDis)({ points: [t, e] }) < 0.1)
- ).forEach(t => {
- i.forEach(i => {
- i.p1 === t.id && (i.p1 = e.id), i.p2 === t.id && (i.p2 = e.id)
- }),
- ~n.indexOf(t) && n.splice(n.indexOf(t), 1)
- })
- }
- for (let e = 0; e < i.length; e++) {
- let n = i[e]
- n.p1 === n.p2 &&
- (['case', 'door', 'slideDoor', 'column', 'groundCase', 'bayCase'].forEach(e => {
- for (let i = 0; i < t[e] && t[e].length; i++) {
- t[e][i].line === n.id && t[e].splice(i--, 1)
- }
- }),
- i.splice(e--, 1))
- }
- for (let t = 0; t < i.length; t++) {
- let e = i[t],
- g = n.find(({ id: e }) => e === i[t].p1),
- r = n.find(({ id: e }) => e === i[t].p2),
- o = { points: [g, r] },
- C = 0
- for (C = t + 1; C < i.length; C++) {
- let t = i[C]
- if (t === e) continue
- let I = n.find(({ id: t }) => t === i[C].p1),
- s = n.find(({ id: t }) => t === i[C].p2)
- if (g === I || g === s || r === I || r === s) continue
- let a = { points: [I, s] },
- l = Object(A.segmentsIntr)(o, a)
- if (
- Object(A.lineDis)({ points: [g, l] }) < 0.1 ||
- Object(A.lineDis)({ points: [r, l] }) < 0.1 ||
- Object(A.lineDis)({ points: [I, l] }) < 0.1 ||
- Object(A.lineDis)({ points: [s, l] }) < 0.1
- )
- continue
- if (!l) continue
- let u = Math.max(...n.map(({ id: t }) => t)) + 1,
- c = Math.max(...i.map(({ id: t }) => t))
- n.push({ ...l, id: u }),
- i.splice(i.indexOf(e), 1, { p1: g.id, p2: u, id: ++c }, { p1: r.id, p2: u, id: ++c }),
- i.splice(i.indexOf(t), 1, { p1: I.id, p2: u, id: ++c }, { p1: s.id, p2: u, id: ++c })
- break
- }
- C !== i.length && t--
- }
- return t
- })(t)
- let i = Date.now()
- console.log('寮€濮嬭绠楁埧闂�')
- let n = [],
- r = [],
- o = []
- function C(t, e, i, g, A, o, I) {
- for (let s = 0; s < t.length; ++s) {
- if (A.indexOf(s) > -1 || o.indexOf(I) > -1) continue
- let a = t[s],
- l = a.p1.id,
- u = a.p2.id
- if (I == l || I == u) {
- let c = JSON.parse(JSON.stringify(i)),
- h = JSON.parse(JSON.stringify(g)),
- p = JSON.parse(JSON.stringify(A)),
- d = JSON.parse(JSON.stringify(o)),
- f = I
- 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)
- }
- }
- }
- function I(t, e, i, n) {
- let g = []
- for (let t = 0; t < n.length; ++t) {
- let e = n[t]
- g.push(e)
- }
- let A = !0
- for (var r = 0; r < i.length; ++r) {
- if (e.indexOf(t[r]) > -1) {
- A = !1
- continue
- }
- let i = t[r]
- var C = i.p1,
- I = i.p2,
- a = { x: (C.x + I.x) / 2, y: (C.y + I.y) / 2 }
- if (!(s(C, g) && s(I, g) && s(a, g))) return !1
- }
- if (A) {
- let i = []
- 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
- )
- }
- return !0
- }
- function s(t, e) {
- for (var i = 0; i < e.length; ++i) {
- if (a(t, e[i])) return !0
- }
- return !!(function (t, e) {
- for (var i = t.x, n = t.y, g = !1, A = 0, r = e.length - 1; A < e.length; r = A++) {
- var o = e[A],
- C = e[r],
- I = o.x,
- s = o.y,
- a = C.x,
- l = C.y
- s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g)
- }
- return g
- })(t, e)
- }
- function a(t, e) {
- return t.x == e.x && t.y == e.y
- }
- 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
- }))
- function u(t, e, i) {
- 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
- }
- !(function (t) {
- for (let e = 0; e < t.length; ++e) {
- let i = [],
- n = [],
- g = [],
- A = []
- for (let t = 0; t <= e; ++t) i.push(t)
- let r = t[e],
- o = r.p1.id,
- I = r.p2.id
- g.push(I), A.push(r.id)
- let s = null
- for (let r = e + 1; r < t.length; ++r) {
- let e = t[r]
- if (o == e.p1.id || o == e.p2.id) {
- let a = JSON.parse(JSON.stringify(g)),
- l = JSON.parse(JSON.stringify(A)),
- u = JSON.parse(JSON.stringify(i)),
- c = JSON.parse(JSON.stringify(n)),
- h = o
- 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)
- }
- }
- }
- })(l),
- (r = r.map(e => e.map(e => t.vertex.find(({ id: t }) => e === t)))),
- (n = n.map(t => t.map(t => l.find(({ id: e }) => t === e)))),
- (function () {
- for (var t = 0; t < r.length; ++t)
- for (var e = t + 1; e < r.length; ++e)
- if (I(n[t], n[e], r[t], r[e])) r.splice(e, 1), n.splice(e, 1), --e
- else if (I(n[e], n[t], r[e], r[t])) {
- r.splice(t, 1), n.splice(t, 1), --t, --e
- break
- }
- })(),
- (function () {
- let t = []
- for (let e = 0; e < o.length; ++e) {
- let i = o[e],
- g = []
- ;(g[0] = null), (g[1] = null)
- for (
- let t = 0;
- t < n.length &&
- (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),
- null == g[0] || null == g[1]);
- ++t
- );
- null != g[0] && null != g[1] && t.push(g)
- }
- o = t
- })(),
- (t.room = n.map((t, e) => ({ wall: t.map(({ id: t }) => t), ground: r[e] })))
- let c = Date.now()
- return (
- console.warn('璁$畻瀹屾瘯锛岃€楁椂' + (c - i)),
- e &&
- (window.testCenterPoints && e.processing.render.remove(...window.testCenterPoints),
- (window.testCenterPoints = r.map(t => {
- let i = (function (t) {
- for (var e = 0, i = 0, n = 0, g = t[1], A = 2; A < t.length; A++) {
- var r = t[A],
- o = u(t[0], g, r)
- ;(n += o),
- (e += (t[0].x + g.x + r.x) * o),
- (i += (t[0].y + g.y + r.y) * o),
- (g = r)
- }
- return { x: e / n / 3, y: i / n / 3 }
- })(t.map(t => ({ ...t, y: -t.y }))),
- n =
- 'rgba(' +
- Math.floor(255 * Math.random()) +
- ',' +
- Math.floor(255 * Math.random()) +
- ',' +
- Math.floor(255 * Math.random()) +
- ',0.8)',
- A = new g.a({
- fillColor: n,
- storkeColor: n,
- x: i.x,
- y: i.y,
- renderer: e.processing.render
- })
- return e.processing.render.push(A), A
- })),
- window.testCenterPoints.forEach((i, g) => {
- t.room[g].ground.map(t => e.processing.points.find(({ id: e }) => e === t.id).ele.real),
- n[g].map(t => e.processing.lines.find(({ id: e }) => e === t.id).ele.real),
- i.real,
- r[g],
- n[g]
- console.log(r[g], r[g])
- })),
- r
- )
- }
- },
- function (t, e, i) {
- var n =
- (this && this.__awaiter) ||
- function (t, e, i, n) {
- return new (i || (i = Promise))(function (g, A) {
- function r(t) {
- try {
- C(n.next(t))
- } catch (t) {
- A(t)
- }
- }
- function o(t) {
- try {
- C(n.throw(t))
- } catch (t) {
- A(t)
- }
- }
- function C(t) {
- var e
- t.done
- ? g(t.value)
- : ((e = t.value),
- e instanceof i
- ? e
- : new i(function (t) {
- t(e)
- })).then(r, o)
- }
- C((n = n.apply(t, e || [])).next())
- })
- },
- g =
- (this && this.__generator) ||
- function (t, e) {
- var i,
- n,
- g,
- A,
- r = {
- label: 0,
- sent: function () {
- if (1 & g[0]) throw g[1]
- return g[1]
- },
- trys: [],
- ops: []
- }
- return (
- (A = { next: o(0), throw: o(1), return: o(2) }),
- 'function' == typeof Symbol &&
- (A[Symbol.iterator] = function () {
- return this
- }),
- A
- )
- function o(A) {
- return function (o) {
- return (function (A) {
- if (i) throw new TypeError('Generator is already executing.')
- for (; r; )
- try {
- 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)
- )
- return g
- switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
- case 0:
- case 1:
- g = A
- break
- case 4:
- return r.label++, { value: A[1], done: !1 }
- case 5:
- r.label++, (n = A[1]), (A = [0])
- continue
- case 7:
- ;(A = r.ops.pop()), r.trys.pop()
- continue
- default:
- if (
- !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
- (6 === A[0] || 2 === A[0])
- ) {
- r = 0
- continue
- }
- if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
- r.label = A[1]
- break
- }
- if (6 === A[0] && r.label < g[1]) {
- ;(r.label = g[1]), (g = A)
- break
- }
- if (g && r.label < g[2]) {
- ;(r.label = g[2]), r.ops.push(A)
- break
- }
- g[2] && r.ops.pop(), r.trys.pop()
- continue
- }
- A = e.call(t, r)
- } catch (t) {
- ;(A = [6, t]), (n = 0)
- } finally {
- i = g = 0
- }
- if (5 & A[0]) throw A[1]
- return { value: A[0] ? A[1] : void 0, done: !0 }
- })([A, o])
- }
- }
- },
- A =
- (this && this.__spreadArrays) ||
- function () {
- for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
- var n = Array(t),
- g = 0
- for (e = 0; e < i; e++)
- for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
- return n
- }
- Object.defineProperty(e, '__esModule', { value: !0 })
- e.default = function (t, e) {
- return n(void 0, void 0, void 0, function () {
- var i, n, r, o, C, I, s, a, l, u
- return g(this, function (g) {
- switch (g.label) {
- case 0:
- return (
- (i = 3),
- (n = t.processing.render.layer),
- (r = t.processing.render.g),
- (o =
- (t.processing.render.layer.offsetWidth ||
- parseInt(getComputedStyle(t.processing.render.layer).width)) * i),
- (C =
- (t.processing.render.layer.offsetHeight ||
- parseInt(getComputedStyle(t.processing.render.layer).height)) * i),
- (n.style.visibility = 'hidden'),
- t.processing.doors.forEach(function (t) {
- t.ele.showStart = !1
- }),
- (I = A(
- t.processing.points,
- t.processing.lines,
- t.processing.doors,
- t.processing.columns,
- t.processing.cases,
- t.processing.bayCases,
- t.processing.slideDoors,
- t.processing.groundCases,
- t.processing.furnFlues,
- t.processing.furnColumns
- )).length
- ? [
- 4,
- Promise.all(
- I.map(function (t) {
- var e = t.ele
- return new Promise(function (t) {
- return e.nextTick(t)
- })
- })
- )
- ]
- : [2]
- )
- case 1:
- return g.sent(), (s = n.querySelector('.sign')), [4, t.hideSign()]
- case 2:
- g.sent(), (g.label = 3)
- case 3:
- return (
- g.trys.push([3, 5, , 6]),
- [
- 4,
- t.screenshot({
- width: o,
- height: C,
- bgColor: 'rgba(0,0,0,0)',
- padding: t.padding * i,
- showGauge: !1,
- lineWidth: 2,
- showDire: !1,
- showTags: !1,
- showDoorStart: !1,
- errreturn: !0
- })
- ]
- )
- case 4:
- for (
- a = g.sent().file,
- n.style.backgroundImage = 'url(' + URL.createObjectURL(a) + ')',
- l = 0;
- l < r.children.length;
- l++
- )
- r.children[l] !== s && r.removeChild(r.children[l--])
- return [3, 6]
- case 5:
- return (
- (u = g.sent()),
- console.error(u),
- (t.padding = t.padding * i),
- (t.processing.render.layer.style.transformOrigin = 'left top'),
- (t.processing.render.layer.style.transform = 'scale(' + 1 / i + ')'),
- t.setDefaultSignStyle({ r: 5 * i }),
- t.adapt(t.processing.data, o, C),
- [3, 6]
- )
- case 6:
- return (
- (s.style.display = 'block'), (n.style.visibility = 'visible'), [4, t.showSign()]
- )
- case 7:
- return g.sent(), e && e(), [2]
- }
- })
- })
- }
- }
- ])
|