bundle.js 493 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402
  1. !function(t) {
  2. var e = this.webpackHotUpdate;
  3. this.webpackHotUpdate = function(t, i) {
  4. !function(t, e) {
  5. if (!v[t] || !y[t])
  6. return;
  7. for (var i in y[t] = !1,
  8. e)
  9. Object.prototype.hasOwnProperty.call(e, i) && (c[i] = e[i]);
  10. 0 == --p && 0 === d && _()
  11. }(t, i),
  12. e && e(t, i)
  13. }
  14. ;
  15. var i, n = !0, g = "6ebc6af84dfdad10b153", A = {}, r = [], o = [];
  16. function C(t) {
  17. var e = P[t];
  18. if (!e)
  19. return O;
  20. var n = function(n) {
  21. return e.hot.active ? (P[n] ? -1 === P[n].parents.indexOf(t) && P[n].parents.push(t) : (r = [t],
  22. i = n),
  23. -1 === e.children.indexOf(n) && e.children.push(n)) : (console.warn("[HMR] unexpected require(" + n + ") from disposed module " + t),
  24. r = []),
  25. O(n)
  26. }
  27. , g = function(t) {
  28. return {
  29. configurable: !0,
  30. enumerable: !0,
  31. get: function() {
  32. return O[t]
  33. },
  34. set: function(e) {
  35. O[t] = e
  36. }
  37. }
  38. };
  39. for (var A in O)
  40. Object.prototype.hasOwnProperty.call(O, A) && "e" !== A && "t" !== A && Object.defineProperty(n, A, g(A));
  41. return n.e = function(t) {
  42. return "ready" === a && l("prepare"),
  43. d++,
  44. O.e(t).then(e, (function(t) {
  45. throw e(),
  46. t
  47. }
  48. ));
  49. function e() {
  50. d--,
  51. "prepare" === a && (f[t] || x(t),
  52. 0 === d && 0 === p && _())
  53. }
  54. }
  55. ,
  56. n.t = function(t, e) {
  57. return 1 & e && (t = n(t)),
  58. O.t(t, -2 & e)
  59. }
  60. ,
  61. n
  62. }
  63. function I(t) {
  64. var e = {
  65. _acceptedDependencies: {},
  66. _declinedDependencies: {},
  67. _selfAccepted: !1,
  68. _selfDeclined: !1,
  69. _disposeHandlers: [],
  70. _main: i !== t,
  71. active: !0,
  72. accept: function(t, i) {
  73. if (void 0 === t)
  74. e._selfAccepted = !0;
  75. else if ("function" == typeof t)
  76. e._selfAccepted = t;
  77. else if ("object" == typeof t)
  78. for (var n = 0; n < t.length; n++)
  79. e._acceptedDependencies[t[n]] = i || function() {}
  80. ;
  81. else
  82. e._acceptedDependencies[t] = i || function() {}
  83. },
  84. decline: function(t) {
  85. if (void 0 === t)
  86. e._selfDeclined = !0;
  87. else if ("object" == typeof t)
  88. for (var i = 0; i < t.length; i++)
  89. e._declinedDependencies[t[i]] = !0;
  90. else
  91. e._declinedDependencies[t] = !0
  92. },
  93. dispose: function(t) {
  94. e._disposeHandlers.push(t)
  95. },
  96. addDisposeHandler: function(t) {
  97. e._disposeHandlers.push(t)
  98. },
  99. removeDisposeHandler: function(t) {
  100. var i = e._disposeHandlers.indexOf(t);
  101. i >= 0 && e._disposeHandlers.splice(i, 1)
  102. },
  103. check: b,
  104. apply: w,
  105. status: function(t) {
  106. if (!t)
  107. return a;
  108. s.push(t)
  109. },
  110. addStatusHandler: function(t) {
  111. s.push(t)
  112. },
  113. removeStatusHandler: function(t) {
  114. var e = s.indexOf(t);
  115. e >= 0 && s.splice(e, 1)
  116. },
  117. data: A[t]
  118. };
  119. return i = void 0,
  120. e
  121. }
  122. var s = []
  123. , a = "idle";
  124. function l(t) {
  125. a = t;
  126. for (var e = 0; e < s.length; e++)
  127. s[e].call(null, t)
  128. }
  129. var u, c, h, p = 0, d = 0, f = {}, y = {}, v = {};
  130. function m(t) {
  131. return +t + "" === t ? +t : t
  132. }
  133. function b(t) {
  134. if ("idle" !== a)
  135. throw new Error("check() is only allowed in idle status");
  136. return n = t,
  137. l("check"),
  138. (e = 1e4,
  139. e = e || 1e4,
  140. new Promise((function(t, i) {
  141. if ("undefined" == typeof XMLHttpRequest)
  142. return i(new Error("No browser support"));
  143. try {
  144. var n = new XMLHttpRequest
  145. , A = O.p + "" + g + ".hot-update.json";
  146. n.open("GET", A, !0),
  147. n.timeout = e,
  148. n.send(null)
  149. } catch (t) {
  150. return i(t)
  151. }
  152. n.onreadystatechange = function() {
  153. if (4 === n.readyState)
  154. if (0 === n.status)
  155. i(new Error("Manifest request to " + A + " timed out."));
  156. else if (404 === n.status)
  157. t();
  158. else if (200 !== n.status && 304 !== n.status)
  159. i(new Error("Manifest request to " + A + " failed."));
  160. else {
  161. try {
  162. var e = JSON.parse(n.responseText)
  163. } catch (t) {
  164. return void i(t)
  165. }
  166. t(e)
  167. }
  168. }
  169. }
  170. ))).then((function(t) {
  171. if (!t)
  172. return l("idle"),
  173. null;
  174. y = {},
  175. f = {},
  176. v = t.c,
  177. h = t.h,
  178. l("prepare");
  179. var e = new Promise((function(t, e) {
  180. u = {
  181. resolve: t,
  182. reject: e
  183. }
  184. }
  185. ));
  186. c = {};
  187. return x(0),
  188. "prepare" === a && 0 === d && 0 === p && _(),
  189. e
  190. }
  191. ));
  192. var e
  193. }
  194. function x(t) {
  195. v[t] ? (y[t] = !0,
  196. p++,
  197. function(t) {
  198. var e = document.createElement("script");
  199. e.charset = "utf-8",
  200. e.src = O.p + "" + t + "." + g + ".hot-update.js",
  201. document.head.appendChild(e)
  202. }(t)) : f[t] = !0
  203. }
  204. function _() {
  205. l("ready");
  206. var t = u;
  207. if (u = null,
  208. t)
  209. if (n)
  210. Promise.resolve().then((function() {
  211. return w(n)
  212. }
  213. )).then((function(e) {
  214. t.resolve(e)
  215. }
  216. ), (function(e) {
  217. t.reject(e)
  218. }
  219. ));
  220. else {
  221. var e = [];
  222. for (var i in c)
  223. Object.prototype.hasOwnProperty.call(c, i) && e.push(m(i));
  224. t.resolve(e)
  225. }
  226. }
  227. function w(e) {
  228. if ("ready" !== a)
  229. throw new Error("apply() is only allowed in ready status");
  230. var i, n, o, C, I;
  231. function s(t) {
  232. for (var e = [t], i = {}, n = e.map((function(t) {
  233. return {
  234. chain: [t],
  235. id: t
  236. }
  237. }
  238. )); n.length > 0; ) {
  239. var g = n.pop()
  240. , A = g.id
  241. , r = g.chain;
  242. if ((C = P[A]) && !C.hot._selfAccepted) {
  243. if (C.hot._selfDeclined)
  244. return {
  245. type: "self-declined",
  246. chain: r,
  247. moduleId: A
  248. };
  249. if (C.hot._main)
  250. return {
  251. type: "unaccepted",
  252. chain: r,
  253. moduleId: A
  254. };
  255. for (var o = 0; o < C.parents.length; o++) {
  256. var I = C.parents[o]
  257. , s = P[I];
  258. if (s) {
  259. if (s.hot._declinedDependencies[A])
  260. return {
  261. type: "declined",
  262. chain: r.concat([I]),
  263. moduleId: A,
  264. parentId: I
  265. };
  266. -1 === e.indexOf(I) && (s.hot._acceptedDependencies[A] ? (i[I] || (i[I] = []),
  267. u(i[I], [A])) : (delete i[I],
  268. e.push(I),
  269. n.push({
  270. chain: r.concat([I]),
  271. id: I
  272. })))
  273. }
  274. }
  275. }
  276. }
  277. return {
  278. type: "accepted",
  279. moduleId: t,
  280. outdatedModules: e,
  281. outdatedDependencies: i
  282. }
  283. }
  284. function u(t, e) {
  285. for (var i = 0; i < e.length; i++) {
  286. var n = e[i];
  287. -1 === t.indexOf(n) && t.push(n)
  288. }
  289. }
  290. e = e || {};
  291. var p = {}
  292. , d = []
  293. , f = {}
  294. , y = function() {
  295. console.warn("[HMR] unexpected require(" + x.moduleId + ") to disposed module")
  296. };
  297. for (var b in c)
  298. if (Object.prototype.hasOwnProperty.call(c, b)) {
  299. var x;
  300. I = m(b);
  301. var _ = !1
  302. , w = !1
  303. , S = !1
  304. , E = "";
  305. switch ((x = c[b] ? s(I) : {
  306. type: "disposed",
  307. moduleId: b
  308. }).chain && (E = "\nUpdate propagation: " + x.chain.join(" -> ")),
  309. x.type) {
  310. case "self-declined":
  311. e.onDeclined && e.onDeclined(x),
  312. e.ignoreDeclined || (_ = new Error("Aborted because of self decline: " + x.moduleId + E));
  313. break;
  314. case "declined":
  315. e.onDeclined && e.onDeclined(x),
  316. e.ignoreDeclined || (_ = new Error("Aborted because of declined dependency: " + x.moduleId + " in " + x.parentId + E));
  317. break;
  318. case "unaccepted":
  319. e.onUnaccepted && e.onUnaccepted(x),
  320. e.ignoreUnaccepted || (_ = new Error("Aborted because " + I + " is not accepted" + E));
  321. break;
  322. case "accepted":
  323. e.onAccepted && e.onAccepted(x),
  324. w = !0;
  325. break;
  326. case "disposed":
  327. e.onDisposed && e.onDisposed(x),
  328. S = !0;
  329. break;
  330. default:
  331. throw new Error("Unexception type " + x.type)
  332. }
  333. if (_)
  334. return l("abort"),
  335. Promise.reject(_);
  336. if (w)
  337. for (I in f[I] = c[I],
  338. u(d, x.outdatedModules),
  339. x.outdatedDependencies)
  340. Object.prototype.hasOwnProperty.call(x.outdatedDependencies, I) && (p[I] || (p[I] = []),
  341. u(p[I], x.outdatedDependencies[I]));
  342. S && (u(d, [x.moduleId]),
  343. f[I] = y)
  344. }
  345. var D, k = [];
  346. for (n = 0; n < d.length; n++)
  347. I = d[n],
  348. P[I] && P[I].hot._selfAccepted && f[I] !== y && k.push({
  349. module: I,
  350. errorHandler: P[I].hot._selfAccepted
  351. });
  352. l("dispose"),
  353. Object.keys(v).forEach((function(t) {
  354. !1 === v[t] && function(t) {
  355. delete installedChunks[t]
  356. }(t)
  357. }
  358. ));
  359. for (var M, L, N = d.slice(); N.length > 0; )
  360. if (I = N.pop(),
  361. C = P[I]) {
  362. var j = {}
  363. , R = C.hot._disposeHandlers;
  364. for (o = 0; o < R.length; o++)
  365. (i = R[o])(j);
  366. for (A[I] = j,
  367. C.hot.active = !1,
  368. delete P[I],
  369. delete p[I],
  370. o = 0; o < C.children.length; o++) {
  371. var G = P[C.children[o]];
  372. G && ((D = G.parents.indexOf(I)) >= 0 && G.parents.splice(D, 1))
  373. }
  374. }
  375. for (I in p)
  376. if (Object.prototype.hasOwnProperty.call(p, I) && (C = P[I]))
  377. for (L = p[I],
  378. o = 0; o < L.length; o++)
  379. M = L[o],
  380. (D = C.children.indexOf(M)) >= 0 && C.children.splice(D, 1);
  381. for (I in l("apply"),
  382. g = h,
  383. f)
  384. Object.prototype.hasOwnProperty.call(f, I) && (t[I] = f[I]);
  385. var T = null;
  386. for (I in p)
  387. if (Object.prototype.hasOwnProperty.call(p, I) && (C = P[I])) {
  388. L = p[I];
  389. var V = [];
  390. for (n = 0; n < L.length; n++)
  391. if (M = L[n],
  392. i = C.hot._acceptedDependencies[M]) {
  393. if (-1 !== V.indexOf(i))
  394. continue;
  395. V.push(i)
  396. }
  397. for (n = 0; n < V.length; n++) {
  398. i = V[n];
  399. try {
  400. i(L)
  401. } catch (t) {
  402. e.onErrored && e.onErrored({
  403. type: "accept-errored",
  404. moduleId: I,
  405. dependencyId: L[n],
  406. error: t
  407. }),
  408. e.ignoreErrored || T || (T = t)
  409. }
  410. }
  411. }
  412. for (n = 0; n < k.length; n++) {
  413. var U = k[n];
  414. I = U.module,
  415. r = [I];
  416. try {
  417. O(I)
  418. } catch (t) {
  419. if ("function" == typeof U.errorHandler)
  420. try {
  421. U.errorHandler(t)
  422. } catch (i) {
  423. e.onErrored && e.onErrored({
  424. type: "self-accept-error-handler-errored",
  425. moduleId: I,
  426. error: i,
  427. originalError: t
  428. }),
  429. e.ignoreErrored || T || (T = i),
  430. T || (T = t)
  431. }
  432. else
  433. e.onErrored && e.onErrored({
  434. type: "self-accept-errored",
  435. moduleId: I,
  436. error: t
  437. }),
  438. e.ignoreErrored || T || (T = t)
  439. }
  440. }
  441. return T ? (l("fail"),
  442. Promise.reject(T)) : (l("idle"),
  443. new Promise((function(t) {
  444. t(d)
  445. }
  446. )))
  447. }
  448. var P = {};
  449. function O(e) {
  450. if (P[e])
  451. return P[e].exports;
  452. var i = P[e] = {
  453. i: e,
  454. l: !1,
  455. exports: {},
  456. hot: I(e),
  457. parents: (o = r,
  458. r = [],
  459. o),
  460. children: []
  461. };
  462. return t[e].call(i.exports, i, i.exports, C(e)),
  463. i.l = !0,
  464. i.exports
  465. }
  466. O.m = t,
  467. O.c = P,
  468. O.d = function(t, e, i) {
  469. O.o(t, e) || Object.defineProperty(t, e, {
  470. enumerable: !0,
  471. get: i
  472. })
  473. }
  474. ,
  475. O.r = function(t) {
  476. "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, {
  477. value: "Module"
  478. }),
  479. Object.defineProperty(t, "__esModule", {
  480. value: !0
  481. })
  482. }
  483. ,
  484. O.t = function(t, e) {
  485. if (1 & e && (t = O(t)),
  486. 8 & e)
  487. return t;
  488. if (4 & e && "object" == typeof t && t && t.__esModule)
  489. return t;
  490. var i = Object.create(null);
  491. if (O.r(i),
  492. Object.defineProperty(i, "default", {
  493. enumerable: !0,
  494. value: t
  495. }),
  496. 2 & e && "string" != typeof t)
  497. for (var n in t)
  498. O.d(i, n, function(e) {
  499. return t[e]
  500. }
  501. .bind(null, n));
  502. return i
  503. }
  504. ,
  505. O.n = function(t) {
  506. var e = t && t.__esModule ? function() {
  507. return t.default
  508. }
  509. : function() {
  510. return t
  511. }
  512. ;
  513. return O.d(e, "a", e),
  514. e
  515. }
  516. ,
  517. O.o = function(t, e) {
  518. return Object.prototype.hasOwnProperty.call(t, e)
  519. }
  520. ,
  521. O.p = "",
  522. O.h = function() {
  523. return g
  524. }
  525. ,
  526. C(24)(O.s = 24)
  527. }([function(t, e, i) {
  528. "use strict";
  529. var n = this && this.__assign || function() {
  530. return (n = Object.assign || function(t) {
  531. for (var e, i = 1, n = arguments.length; i < n; i++)
  532. for (var g in e = arguments[i])
  533. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  534. return t
  535. }
  536. ).apply(this, arguments)
  537. }
  538. ;
  539. Object.defineProperty(e, "__esModule", {
  540. value: !0
  541. });
  542. var g = i(3);
  543. e.calcVector = function(t) {
  544. var e = 1 / ((t = n({}, t)).x * t.y < 0 ? Math.abs(t.x - t.y) : t.x + t.y);
  545. return t.x = t.x * e,
  546. t.y = t.y * e,
  547. t
  548. }
  549. ,
  550. e.strictLineVector = function(t) {
  551. var i = t.points[1].x - t.points[0].x
  552. , n = t.points[1].y - t.points[0].y
  553. , g = Math.abs(i / 1)
  554. , A = Math.abs(n / 1)
  555. , r = g > A ? g : A
  556. , o = {
  557. x: i / r,
  558. y: n / r
  559. };
  560. return e.calcVector(o)
  561. }
  562. ,
  563. e.lineVector = function(t, i) {
  564. void 0 === i && (i = .001);
  565. var n = e.strictLineVector(t);
  566. return Math.abs(n.x) < i && (n.x = 0),
  567. Math.abs(n.y) < i && (n.y = 0),
  568. n
  569. }
  570. ,
  571. e.verticalLine = function(t) {
  572. var i = e.lineVector(t)
  573. , n = i.x
  574. , g = i.y;
  575. if (n - g != 0) {
  576. var A = {
  577. x: g / (g - n),
  578. y: n / (n - g)
  579. };
  580. return e.calcVector(A)
  581. }
  582. return {
  583. x: n,
  584. y: g
  585. }
  586. }
  587. ,
  588. e.lineDis = function(t) {
  589. 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))
  590. }
  591. ,
  592. e.lineCenter = function(t) {
  593. return {
  594. x: (t.points[0].x + t.points[1].x) / 2,
  595. y: (t.points[0].y + t.points[1].y) / 2
  596. }
  597. }
  598. ,
  599. e.segmentsIntr = function(t, i) {
  600. var n = t.points
  601. , g = n[0]
  602. , A = n[1]
  603. , r = i.points
  604. , o = r[0]
  605. , C = r[1]
  606. , I = (A.y - g.y) * (C.x - o.x) - (g.x - A.x) * (o.y - C.y);
  607. if (0 == I)
  608. return !1;
  609. 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
  610. , 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;
  611. return !(!e.isContainPoint(t, {
  612. x: s,
  613. y: a
  614. }) || !e.isContainPoint(i, {
  615. x: s,
  616. y: a
  617. })) && {
  618. x: s,
  619. y: a
  620. }
  621. }
  622. ,
  623. e.segmentsIntrFine = function(t, e) {
  624. var i = t.points
  625. , n = i[0]
  626. , g = i[1]
  627. , A = e.points
  628. , r = A[0]
  629. , o = A[1]
  630. , C = (g.y - n.y) * (o.x - r.x) - (n.x - g.x) * (r.y - o.y);
  631. if (0 == C)
  632. return !1;
  633. 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
  634. , 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;
  635. return !isNaN(I) && !isNaN(s) && {
  636. x: I,
  637. y: s
  638. }
  639. }
  640. ,
  641. e.pointLineDis = function(t, e) {
  642. var i = 0
  643. , n = t.points[1].x - t.points[0].x
  644. , g = e.x - t.points[0].x
  645. , A = e.x - t.points[1].x
  646. , r = t.points[1].y - t.points[0].y
  647. , o = e.y - t.points[0].y
  648. , C = e.y - t.points[1].y
  649. , I = n * g + r * o
  650. , s = n * n + r * r;
  651. if (I <= 0)
  652. i = Math.sqrt(g * g + o * o);
  653. else if (I >= s)
  654. i = Math.sqrt(A * A + C * C);
  655. else {
  656. var a = I / s
  657. , l = t.points[0].x + n * a
  658. , u = t.points[0].y + r * a;
  659. i = Math.sqrt((e.x - l) * (e.x - l) + (u - e.y) * (u - e.y))
  660. }
  661. return i
  662. }
  663. ,
  664. e.isContainPoint = function(t, i) {
  665. return !Math.abs(e.pointLineDis(t, i)) || Math.abs(e.pointLineDis(t, i)) < .01
  666. }
  667. ,
  668. e.getVerLinePoint = function(t, i) {
  669. return e.getVectorPosPoint(e.verticalLine(t), t.points[0], i)
  670. }
  671. ,
  672. e.getVectorPosPoint = function(t, i, n) {
  673. var g = {
  674. points: [i, {
  675. x: i.x + 1e4 * t.x,
  676. y: i.y + 1e4 * t.y
  677. }]
  678. };
  679. return e.getLinePoint(g, n)
  680. }
  681. ,
  682. e.getLinePoint = function(t, i) {
  683. var n, A = i;
  684. if (g.type.isNumber(A.x) && g.type.isNumber(A.y)) {
  685. var r = e.lineVector(t)
  686. , o = r.x
  687. , C = r.y
  688. , I = Math.abs(o) > Math.abs(C) ? "x" : "y";
  689. (n = {})[I] = A[I],
  690. A = n
  691. }
  692. var s = e.lineVector(t, 1e-4)
  693. , a = s.y / s.x
  694. , l = t.points[0].y - a * t.points[0].x;
  695. return a > 100 || a < -100 ? {
  696. x: t.points[0].x,
  697. y: A.y
  698. } : g.type.isNumber(A.x) ? {
  699. x: A.x,
  700. y: a * A.x + l
  701. } : g.type.isNumber(A.y) ? {
  702. x: (A.y - l) / a,
  703. y: A.y
  704. } : {
  705. x: 0,
  706. y: 0
  707. }
  708. }
  709. ,
  710. e.getFlexLinePoint = function(t, i) {
  711. var n = e.strictLineVector(t)
  712. , g = n.x
  713. , A = n.y
  714. , r = (g = Math.abs(g)) > (A = Math.abs(A)) ? {
  715. x: i.x
  716. } : {
  717. y: i.y
  718. };
  719. return e.getLinePoint(t, r)
  720. }
  721. ,
  722. e.getDisVectorPoints = function(t, e, i) {
  723. var n = Math.atan(t.y / t.x);
  724. return [{
  725. x: e.x + i * Math.cos(n),
  726. y: e.y + i * Math.sin(n)
  727. }, {
  728. x: e.x + -i * Math.cos(n),
  729. y: e.y + -i * Math.sin(n)
  730. }]
  731. }
  732. ,
  733. e.getDisPointLinePoints = function(t, i, n) {
  734. return e.getDisVectorPoints(e.lineVector(t), i, n)
  735. }
  736. ,
  737. e.getLineDisPoint = function(t, i) {
  738. var n = e.getDisPointLinePoints(t, t.points[0], i)
  739. , g = n[0]
  740. , A = n[1]
  741. , r = e.lineVector(t)
  742. , o = e.lineVector({
  743. points: [t.points[0], g]
  744. });
  745. return r.x * o.x >= 0 && r.y * o.y >= 0 ? g : A
  746. }
  747. ,
  748. e.getLineDisSelectPoint = function(t, i, n) {
  749. var g = e.getDisPointLinePoints(t, i, n)
  750. , A = g[0]
  751. , r = g[1];
  752. return e.pointLineDis(t, A) < e.pointLineDis(t, r) ? A : r
  753. }
  754. ,
  755. e.getDisVerticalLinePoints = function(t, i, n) {
  756. return e.getDisVectorPoints(e.verticalLine(t), i, n)
  757. }
  758. ,
  759. e.getLineVerticalChangePoint = function(t, i, n) {
  760. var g = e.segmentsIntrFine(t, i);
  761. return g ? e.getLineVerticalPoint(t, g, e.lineVector(i), n) : g
  762. }
  763. ,
  764. e.getLineVerticalPoint = function(t, i, n, g) {
  765. var A = e.getDisVerticalLinePoints(t, i, g)
  766. , r = A[0]
  767. , o = A[1]
  768. , C = e.lineVector({
  769. points: [i, r]
  770. })
  771. , I = e.lineVector({
  772. points: [i, o]
  773. })
  774. , s = n.x * C.x
  775. , a = n.y * C.y
  776. , l = n.x * I.x
  777. , u = n.x * I.y;
  778. return s >= 0 && a >= 0 ? r : l >= 0 && u >= 0 || (s < a ? s : a) < (l < u ? l : u) ? o : r
  779. }
  780. ,
  781. e.getPointCoordinate = function(t) {
  782. 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
  783. }
  784. ,
  785. e.getLineCoordinate = function(t) {
  786. var e = t.points[1].x - t.points[0].x
  787. , i = t.points[1].y - t.points[0].y;
  788. return e >= 0 && i >= 0 ? 1 : e >= 0 && i <= 0 ? 4 : e <= 0 && i <= 0 ? 3 : 2
  789. }
  790. ,
  791. e.getPointCoordDistance = function(t, i) {
  792. return e.getPointCoordinate(t) - e.getPointCoordinate(i)
  793. }
  794. ,
  795. e.faceArea = function(t) {
  796. var e = t.length;
  797. if (e < 3)
  798. return 0;
  799. for (var i = t[0].y * (t[e - 1].x - t[1].x), n = 1; n < e; ++n)
  800. i += t[n].y * (t[n - 1].x - t[(n + 1) % e].x);
  801. return Math.abs(i / 2)
  802. }
  803. ,
  804. e.pointInside = function(t, e) {
  805. for (var i = !1, n = e.x, g = e.y, A = 0, r = t.length - 1; A < t.length; r = A++) {
  806. var o = t[A].x
  807. , C = t[A].y
  808. , I = t[r].x
  809. , s = t[r].y;
  810. C > g != s > g && n <= (I - o) * (g - C) / (s - C) + o && (i = !i)
  811. }
  812. return i
  813. }
  814. ,
  815. e.isPointInPoly = function(t, e) {
  816. for (var i = e.x, n = e.y, g = !1, A = 0, r = t.length - 1; A < t.length; r = A++) {
  817. var o = t[A]
  818. , C = t[r]
  819. , I = o.x
  820. , s = o.y
  821. , a = C.x
  822. , l = C.y;
  823. s > n != l > n && i < (a - I) * (n - s) / (l - s) + I && (g = !g)
  824. }
  825. return g
  826. }
  827. ,
  828. e.pointInsideBorder = function(t, i) {
  829. for (var n = 0; n < t.length; n++) {
  830. var g = {
  831. points: [t[n], t[n === t.length - 1 ? 0 : n + 1]]
  832. };
  833. if (e.isContainPoint(g, i))
  834. return !0
  835. }
  836. return !1
  837. }
  838. ,
  839. e.isClockWise = function(t, e) {
  840. var i, n, g;
  841. void 0 === e && (e = !0);
  842. var A, r = 0, o = e ? -1 : 1;
  843. if (null == t || t.length < 3)
  844. return !1;
  845. var C = t.length;
  846. for (i = 0; i < C; i++)
  847. g = (i + 2) % C,
  848. A = (t[n = (i + 1) % C].x - t[i].x) * (t[g].y * o - t[n].y * o),
  849. (A -= (t[n].y * o - t[i].y * o) * (t[g].x - t[n].x)) < 0 ? r-- : A > 0 && r++;
  850. return r > 0
  851. }
  852. ,
  853. e.isLineIntersect = function(t, e) {
  854. var i = t.points[1].y - t.points[0].y
  855. , n = t.points[0].x - t.points[1].x
  856. , g = i * t.points[0].x + n * t.points[0].y
  857. , A = e.points[1].y - e.points[0].y
  858. , r = e.points[0].x - e.points[1].x
  859. , o = A * e.points[0].x + r * e.points[0].y
  860. , C = i * r - A * n;
  861. if (0 == C)
  862. return !1;
  863. var I = (r * g - n * o) / C
  864. , s = (i * o - A * g) / C;
  865. 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)))
  866. return !0;
  867. function a(t, e, i) {
  868. return !(Math.abs(t - e) < 1e-6 || Math.abs(e - i) < 1e-6) && (t <= e && e <= i || i <= e && e <= t)
  869. }
  870. return !1
  871. }
  872. ,
  873. e.isFaceIntersect = function(t, i) {
  874. for (var n = 0; n < t.length; n++)
  875. for (var g = n + 1 === t.length ? 0 : n + 1, A = {
  876. points: [t[n], t[g]]
  877. }, r = 0; r < i.length; r++) {
  878. g = r + 1 === i.length ? 0 : r + 1;
  879. var o = {
  880. points: [i[r], i[g]]
  881. }
  882. , C = e.isLineIntersect(o, A)
  883. , I = e.isLineIntersect(A, o);
  884. if (C && I)
  885. return !0
  886. }
  887. return !1
  888. }
  889. ,
  890. e.isFaceContain = function(t, i) {
  891. return i.every((function(i) {
  892. return e.pointInside(t, i)
  893. }
  894. )) && !e.isFaceIntersect(t, i)
  895. }
  896. ,
  897. e.isFaceChild = function(t, i) {
  898. return i.every((function(i) {
  899. return e.pointInside(t, i) || e.pointInsideBorder(t, i)
  900. }
  901. )) && !e.isFaceIntersect(t, i)
  902. }
  903. ,
  904. e.faceCenter = function(t) {
  905. for (var e = 0, i = 0, n = 0; n < t.length; n++)
  906. e += t[n].x,
  907. i += t[n].y;
  908. return {
  909. x: e /= t.length,
  910. y: i /= t.length
  911. }
  912. }
  913. ,
  914. e.faceRotate = function(t, i) {
  915. var n = window.THREE
  916. , g = e.faceCenter(t)
  917. , A = (new n.Matrix3).translate(-g.x, -g.y)
  918. , r = (new n.Matrix3).rotate(n.Math.degToRad(i))
  919. , o = (new n.Matrix3).translate(g.x, g.y)
  920. , C = new n.Matrix3;
  921. return C.premultiply(A),
  922. C.premultiply(r),
  923. C.premultiply(o),
  924. t.map((function(t) {
  925. var e = new n.Vector2(t.x,t.y);
  926. return e.applyMatrix3(C),
  927. {
  928. x: e.x,
  929. y: e.y
  930. }
  931. }
  932. ))
  933. }
  934. ,
  935. e.lineStretch = function(t, i) {
  936. t = n(n({}, t), {
  937. points: t.points.map((function(t) {
  938. return {
  939. x: t.x,
  940. y: t.y
  941. }
  942. }
  943. ))
  944. });
  945. var g = e.lineCenter(t)
  946. , A = e.getDisPointLinePoints(t, g, i / 2)
  947. , r = A[0]
  948. , o = A[1];
  949. return e.lineDis({
  950. points: [t.points[0], r]
  951. }) > e.lineDis({
  952. points: [t.points[0], o]
  953. }) ? (t.points[0].x = o.x,
  954. t.points[0].y = o.y,
  955. t.points[1].x = r.x,
  956. t.points[1].y = r.y) : (t.points[0].x = r.x,
  957. t.points[0].y = r.y,
  958. t.points[1].x = o.x,
  959. t.points[1].y = o.y),
  960. t
  961. }
  962. ,
  963. e.lineDeg = function(t) {
  964. return 180 * Math.atan2(t.points[1].y - t.points[0].y, t.points[1].x - t.points[0].x) / Math.PI
  965. }
  966. ,
  967. e.getAngle = function(t, e) {
  968. var i, n, g, A;
  969. ~(A = t.points.indexOf(e.points[0])) ? (i = t.points[A],
  970. n = e.points[1],
  971. g = t.points[Number(!A)]) : ~(A = t.points.indexOf(e.points[1])) && (i = t.points[A],
  972. n = e.points[0],
  973. g = t.points[Number(!A)]);
  974. 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;
  975. return C = I * a + s * l,
  976. o = (I * I + s * s) * (a * a + l * l),
  977. (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
  978. }
  979. ,
  980. e.rotatePoint = function(t, e, i) {
  981. var n = t.x - i.x
  982. , g = t.y - i.y
  983. , A = Math.cos(e) * n - Math.sin(e) * g
  984. , r = Math.sin(e) * n + Math.cos(e) * g;
  985. return {
  986. x: A + i.x,
  987. y: r + i.y
  988. }
  989. }
  990. ,
  991. e.rotateData = function(t, i, n) {
  992. try {
  993. var g = ["furnColumn", "furnFlue", "column"];
  994. return (t = JSON.parse(JSON.stringify(t))).vertex.forEach((function(t) {
  995. var g = e.rotatePoint(t, i, n);
  996. t.x = g.x,
  997. t.y = g.y
  998. }
  999. )),
  1000. t.tagging.forEach((function(t) {
  1001. var g = e.rotatePoint({
  1002. x: t.pos[0],
  1003. y: t.pos[1]
  1004. }, i, n);
  1005. t.pos[0] = g.x,
  1006. t.pos[1] = g.y
  1007. }
  1008. )),
  1009. ["window", "door", "slideDoor", "groundCase", "bayCase", "doubleDoor"].concat(g).forEach((function(g) {
  1010. t[g].forEach((function(t) {
  1011. var g = e.rotatePoint({
  1012. x: t.pos[0],
  1013. y: t.pos[1]
  1014. }, i, n)
  1015. , A = e.rotatePoint({
  1016. x: t.pos[2],
  1017. y: t.pos[3]
  1018. }, i, n);
  1019. t.pos[0] = g.x,
  1020. t.pos[1] = g.y,
  1021. t.pos[2] = A.x,
  1022. t.pos[3] = A.y
  1023. }
  1024. ))
  1025. }
  1026. )),
  1027. g.forEach((function(g) {
  1028. t[g].forEach((function(t) {
  1029. var g = e.rotatePoint({
  1030. x: t.pos[4],
  1031. y: t.pos[5]
  1032. }, i, n)
  1033. , A = e.rotatePoint({
  1034. x: t.pos[6],
  1035. y: t.pos[7]
  1036. }, i, n);
  1037. t.pos[4] = g.x,
  1038. t.pos[5] = g.y,
  1039. t.pos[6] = A.x,
  1040. t.pos[7] = A.y
  1041. }
  1042. ))
  1043. }
  1044. )),
  1045. t
  1046. } catch (e) {
  1047. return t
  1048. }
  1049. }
  1050. }
  1051. , function(t, e, i) {
  1052. "use strict";
  1053. var n, g;
  1054. Object.defineProperty(e, "__esModule", {
  1055. value: !0
  1056. });
  1057. var A = i(9);
  1058. e.SVGURI = "http://www.w3.org/2000/svg",
  1059. e.SVGPATH = "http://www.w3.org/1999/xlink",
  1060. e.STATE_CHILD = "__state",
  1061. e.POINT = "point",
  1062. e.DOOR = "door",
  1063. e.DOUBLEDOOR = "double_door",
  1064. e.COLUMN = "column",
  1065. e.CASEMENT = "casement",
  1066. e.SLIDEDOOR = "slideDoor",
  1067. e.TAGGING = "tagging",
  1068. e.GROUNDCASE = "groundCase",
  1069. e.BAYCASE = "bayCase",
  1070. e.FURNCOLUMN = "furnColumn",
  1071. e.FURNFLUE = "furnFlue",
  1072. e.LINE = "line",
  1073. e.SEFTLINE = "seftline",
  1074. e.ARCH = ((n = {})[e.POINT] = A.i18n.t("modules.model.point"),
  1075. n[e.DOOR] = A.i18n.t("modules.model.door"),
  1076. n[e.DOUBLEDOOR] = A.i18n.t("modules.model.double_door"),
  1077. n[e.COLUMN] = A.i18n.t("modules.model.column"),
  1078. n[e.CASEMENT] = A.i18n.t("modules.model.casement"),
  1079. n[e.SLIDEDOOR] = A.i18n.t("modules.model.slideDoor"),
  1080. n[e.TAGGING] = A.i18n.t("modules.model.tagging"),
  1081. n[e.GROUNDCASE] = A.i18n.t("modules.model.groundCase"),
  1082. n[e.BAYCASE] = A.i18n.t("modules.model.bayCase"),
  1083. n[e.FURNCOLUMN] = A.i18n.t("modules.model.furnColumn"),
  1084. n[e.FURNFLUE] = A.i18n.t("modules.model.furnFlue"),
  1085. n[e.LINE] = A.i18n.t("modules.model.line"),
  1086. n[e.SEFTLINE] = A.i18n.t("modules.model.line"),
  1087. n),
  1088. e.DEFAULT = ((g = {})[e.DOOR] = {
  1089. width: .8,
  1090. height: 2
  1091. },
  1092. g[e.DOUBLEDOOR] = {
  1093. width: 1.6,
  1094. height: 2
  1095. },
  1096. g[e.SLIDEDOOR] = {
  1097. width: 1.5,
  1098. height: 2
  1099. },
  1100. g[e.CASEMENT] = {
  1101. width: .8,
  1102. height: 1.2
  1103. },
  1104. g[e.BAYCASE] = {
  1105. width: 1.5,
  1106. height: 1.2
  1107. },
  1108. g[e.GROUNDCASE] = {
  1109. width: 1.5,
  1110. height: 2
  1111. },
  1112. g[e.COLUMN] = {
  1113. width: .65,
  1114. tick: .65
  1115. },
  1116. g[e.FURNCOLUMN] = {
  1117. width: .65,
  1118. tick: .65
  1119. },
  1120. g[e.FURNFLUE] = {
  1121. width: .65,
  1122. tick: .65
  1123. },
  1124. g[e.LINE] = {
  1125. width: .5
  1126. },
  1127. g)
  1128. }
  1129. , function(t, e, i) {
  1130. "use strict";
  1131. var n = this && this.__assign || function() {
  1132. return (n = Object.assign || function(t) {
  1133. for (var e, i = 1, n = arguments.length; i < n; i++)
  1134. for (var g in e = arguments[i])
  1135. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  1136. return t
  1137. }
  1138. ).apply(this, arguments)
  1139. }
  1140. ;
  1141. Object.defineProperty(e, "__esModule", {
  1142. value: !0
  1143. });
  1144. var g = i(29)
  1145. , A = i(1)
  1146. , r = i(3)
  1147. , o = 0
  1148. , C = {
  1149. enter: "mouseenter",
  1150. leave: "mouseleave",
  1151. click: "click",
  1152. drag: "mousedown"
  1153. }
  1154. , I = function() {
  1155. function t(e) {
  1156. var i = this;
  1157. this.zIndex = 0,
  1158. this.render = e.renderer,
  1159. this.id = ++o,
  1160. this.__state = new g.State(n(n({}, e), {
  1161. select: !1
  1162. }),{
  1163. afferent: this,
  1164. notice: function() {
  1165. for (var t = [], e = 0; e < arguments.length; e++)
  1166. t[e] = arguments[e];
  1167. i.notice && i.notice.apply(i, t),
  1168. i.update && i.update();
  1169. var n = Object.keys(t[0].args);
  1170. if ((~n.indexOf("x") || ~n.indexOf("y")) && i.wallPos)
  1171. try {
  1172. i.wallPos()
  1173. } catch (t) {}
  1174. ~n.indexOf("select") && i.wallSelect && i.wallSelect()
  1175. },
  1176. childAttr: A.STATE_CHILD,
  1177. intercept: this.intercept && function() {
  1178. for (var t = [], e = 0; e < arguments.length; e++)
  1179. t[e] = arguments[e];
  1180. return i.intercept.apply(i, t)
  1181. }
  1182. }),
  1183. this.__state.bindDataChange(),
  1184. g.getter(this, this.__state),
  1185. g.setter(this, this.__state),
  1186. Object.defineProperties(this, {
  1187. multiple: {
  1188. get: function() {
  1189. return i.renderer.props.multiple / i.renderer.props.scale
  1190. }
  1191. }
  1192. }),
  1193. t.examples.get(this.renderer).push(this),
  1194. this.grentNode && (this.real = this.grentNode(),
  1195. this.setHoverStyle && this.setUnHoverStyle && (this.enter = function() {
  1196. i.real.style.cursor = "pointer",
  1197. i.setHoverStyle()
  1198. }
  1199. ,
  1200. this.leave = function() {
  1201. i.select || (i.setUnHoverStyle(),
  1202. i.real.style.cursor = "inherit")
  1203. }
  1204. ,
  1205. this.wallSelect = function() {
  1206. i.select ? (i.real.style.cursor = "pointer",
  1207. i.setHoverStyle()) : (i.real.style.cursor = "inherit",
  1208. i.setUnHoverStyle())
  1209. }
  1210. ),
  1211. this.listen()),
  1212. this.real.id = "ele" + o.toString(),
  1213. this.nextTick((function() {
  1214. try {
  1215. i.update()
  1216. } catch (t) {}
  1217. }
  1218. ))
  1219. }
  1220. return t.prototype.intercept = function(t, e, i, n) {
  1221. return e
  1222. }
  1223. ,
  1224. t.prototype.changeSelect = function(e) {
  1225. var i = this;
  1226. this.select !== e && (this.select = e,
  1227. this.wallSelect && this.wallSelect(),
  1228. this.update && this.update(),
  1229. e && t.examples.get(this.renderer).forEach((function(t) {
  1230. t !== i && t.select && t.changeSelect(!1)
  1231. }
  1232. )))
  1233. }
  1234. ,
  1235. t.prototype.click = function(t) {
  1236. var e = this;
  1237. this.changeSelect(!0),
  1238. this.renderer.processing.attrs.forEach((function(t) {
  1239. var i = e.renderer.processing[t].find((function(t) {
  1240. return t.ele === e
  1241. }
  1242. ));
  1243. i && console.log(i)
  1244. }
  1245. )),
  1246. t.stopPropagation()
  1247. }
  1248. ,
  1249. t.prototype.nextTick = function(t) {
  1250. this.__state.nextTick(t)
  1251. }
  1252. ,
  1253. t.prototype.nextChange = function(t) {
  1254. this.__state.nextChange(t)
  1255. }
  1256. ,
  1257. t.prototype.listen = function() {
  1258. this.__draging = !1,
  1259. this.bindEvent("enter"),
  1260. this.bindEvent("leave"),
  1261. this.bindEvent("click"),
  1262. this.bindEvent("drag")
  1263. }
  1264. ,
  1265. t.prototype.unEvent = function() {
  1266. this.unbindEvent("enter"),
  1267. this.unbindEvent("leave"),
  1268. this.unbindEvent("click"),
  1269. this.unbindEvent("drag")
  1270. }
  1271. ,
  1272. t.prototype.destroy = function() {
  1273. this.__destroy = !0,
  1274. this.unEvent();
  1275. var e = t.examples.get(this.renderer);
  1276. ~e.indexOf(this) && (e.splice(e.indexOf(this), 1),
  1277. this.renderer.remove(this))
  1278. }
  1279. ,
  1280. t.prototype.bindDrag = function(t) {
  1281. var e = this
  1282. , i = {
  1283. x: t.offsetX,
  1284. y: t.offsetY
  1285. };
  1286. this.dragStart && this.dragStart(t, i);
  1287. var n = r.throttle((function(t) {
  1288. var n = {
  1289. x: t.offsetX,
  1290. y: t.offsetY
  1291. };
  1292. e.__draging = !0,
  1293. e.drag({
  1294. x: n.x - i.x,
  1295. y: n.y - i.y
  1296. }, n, i),
  1297. t.preventDefault()
  1298. }
  1299. ), 10)
  1300. , g = function(t) {
  1301. document.documentElement.removeEventListener("mousemove", n, !1),
  1302. document.documentElement.removeEventListener("mouseup", g, !1),
  1303. e.__draging = !1,
  1304. e.dragEnd && e.dragEnd({
  1305. x: t.offsetX,
  1306. y: t.offsetY
  1307. }),
  1308. e.__leave && e.leave()
  1309. };
  1310. document.documentElement.addEventListener("mousemove", n, !1),
  1311. document.documentElement.addEventListener("mouseup", g, !1),
  1312. t.preventDefault()
  1313. }
  1314. ,
  1315. t.prototype.bindEvent = function(e) {
  1316. var i = this;
  1317. if (this[e]) {
  1318. var n = "__bind_" + e;
  1319. this[n] && this.unbindEvent(e);
  1320. var g = "drag" === e ? this.bindDrag.bind(this) : function(n) {
  1321. var g = t.examples.get(i.renderer);
  1322. "enter" === e && g.some((function(t) {
  1323. return t.__draging
  1324. }
  1325. )) || (!i.__draging || "enter" !== e && "leave" !== e ? i[e](n) : i.__leave = "leave" === e)
  1326. }
  1327. ;
  1328. this.real.addEventListener(C[e], g, !1),
  1329. this[n] = g
  1330. }
  1331. }
  1332. ,
  1333. t.prototype.unbindEvent = function(t) {
  1334. this["__bind_" + t] && this.real.removeEventListener(C[t], this["__bind_" + t], !1)
  1335. }
  1336. ,
  1337. t.examples = new Map,
  1338. t.multiples = new Map,
  1339. t.update = function(e, i) {
  1340. void 0 === i && (i = []);
  1341. var n = t.examples.get(e).concat(i);
  1342. (n = Array.from(new Set(n))).forEach((function(t) {
  1343. t.update && t.update()
  1344. }
  1345. ))
  1346. }
  1347. ,
  1348. t.init = function(e) {
  1349. t.examples.set(e, [])
  1350. }
  1351. ,
  1352. t
  1353. }();
  1354. e.CADElement = I
  1355. }
  1356. , function(t, e, i) {
  1357. "use strict";
  1358. Object.defineProperty(e, "__esModule", {
  1359. value: !0
  1360. }),
  1361. e.getRange = function(t) {
  1362. var e = Math.abs(Math.min.apply(Math, t))
  1363. , i = Math.abs(Math.max.apply(Math, t));
  1364. return Math.ceil(e + i)
  1365. }
  1366. ,
  1367. e.getMapMultipleWH = function(t, e, i, n) {
  1368. void 0 === n && (n = 10);
  1369. var g = Math.abs(Math.min.apply(Math, i.vertex.map((function(t) {
  1370. return t.x
  1371. }
  1372. ))))
  1373. , A = Math.abs(Math.max.apply(Math, i.vertex.map((function(t) {
  1374. return t.x
  1375. }
  1376. ))))
  1377. , r = Math.abs(Math.min.apply(Math, i.vertex.map((function(t) {
  1378. return t.y
  1379. }
  1380. ))))
  1381. , o = Math.abs(Math.max.apply(Math, i.vertex.map((function(t) {
  1382. return t.y
  1383. }
  1384. ))))
  1385. , C = Math.ceil(g + A) / t
  1386. , I = Math.ceil(r + o) / e
  1387. , s = C > I ? C : I
  1388. , a = t * s
  1389. , l = e * s;
  1390. return {
  1391. width: a,
  1392. height: l,
  1393. multiple: s,
  1394. left: g / (g + A) * a,
  1395. top: r / (r + o) * l,
  1396. scale: 1 - 2 * n * s / a
  1397. }
  1398. }
  1399. ,
  1400. e.debounce = function(t, e, i, n) {
  1401. void 0 === e && (e = 16);
  1402. var g = null
  1403. , A = []
  1404. , r = 0;
  1405. return function() {
  1406. for (var o = [], C = 0; C < arguments.length; C++)
  1407. o[C] = arguments[C];
  1408. r || n && n(),
  1409. r++,
  1410. A.push(o),
  1411. clearTimeout(g),
  1412. g = setTimeout((function() {
  1413. i ? (t(i(A)),
  1414. A = []) : t.apply(void 0, o),
  1415. r = 0
  1416. }
  1417. ), e)
  1418. }
  1419. }
  1420. ,
  1421. e.throttle = function(t, e) {
  1422. var i = null;
  1423. return function() {
  1424. for (var n = [], g = 0; g < arguments.length; g++)
  1425. n[g] = arguments[g];
  1426. var A = +new Date;
  1427. (A - i > e || !i) && (t.apply(void 0, n),
  1428. i = A)
  1429. }
  1430. }
  1431. ,
  1432. e.getType = function(t) {
  1433. return Object.prototype.toString.call(t).slice(8, -1)
  1434. }
  1435. ,
  1436. e.type = {};
  1437. ["String", "Number", "Boolean", "Undefined", "Null", "Object", "Function", "Array", "Date", "RegExp"].forEach((function(t) {
  1438. return e.type["is" + t] = function(i) {
  1439. return e.getType(i) === t
  1440. }
  1441. }
  1442. )),
  1443. e.convertBase64UrlToBlob = function(t) {
  1444. for (var e = t.split(","), i = e[0].match(/:(.*?);/)[1], n = atob(e[1]), g = n.length, A = new Uint8Array(g); g--; )
  1445. A[g] = n.charCodeAt(g);
  1446. return new Blob([A],{
  1447. type: i
  1448. })
  1449. }
  1450. ,
  1451. e.strEascpeLen = function(t) {
  1452. for (var e = t, i = e.length, n = 0; n < i; n++) {
  1453. ~escape(e.substr(n, 1)).indexOf("%u") && i++
  1454. }
  1455. return i
  1456. }
  1457. }
  1458. , function(t, e, i) {
  1459. "use strict";
  1460. var n, g = this && this.__extends || (n = function(t, e) {
  1461. return (n = Object.setPrototypeOf || {
  1462. __proto__: []
  1463. }instanceof Array && function(t, e) {
  1464. t.__proto__ = e
  1465. }
  1466. || function(t, e) {
  1467. for (var i in e)
  1468. e.hasOwnProperty(i) && (t[i] = e[i])
  1469. }
  1470. )(t, e)
  1471. }
  1472. ,
  1473. function(t, e) {
  1474. function i() {
  1475. this.constructor = t
  1476. }
  1477. n(t, e),
  1478. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  1479. new i)
  1480. }
  1481. ), A = this && this.__assign || function() {
  1482. return (A = Object.assign || function(t) {
  1483. for (var e, i = 1, n = arguments.length; i < n; i++)
  1484. for (var g in e = arguments[i])
  1485. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  1486. return t
  1487. }
  1488. ).apply(this, arguments)
  1489. }
  1490. , r = this && this.__rest || function(t, e) {
  1491. var i = {};
  1492. for (var n in t)
  1493. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  1494. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  1495. var g = 0;
  1496. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1497. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  1498. }
  1499. return i
  1500. }
  1501. , o = this && this.__spreadArrays || function() {
  1502. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  1503. t += arguments[e].length;
  1504. var n = Array(t)
  1505. , g = 0;
  1506. for (e = 0; e < i; e++)
  1507. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  1508. g++)
  1509. n[g] = A[r];
  1510. return n
  1511. }
  1512. , C = this && this.__importDefault || function(t) {
  1513. return t && t.__esModule ? t : {
  1514. default: t
  1515. }
  1516. }
  1517. ;
  1518. Object.defineProperty(e, "__esModule", {
  1519. value: !0
  1520. });
  1521. var I = i(2)
  1522. , s = C(i(32))
  1523. , a = i(0)
  1524. , l = i(3)
  1525. , u = function(t) {
  1526. function e(i) {
  1527. var n = i.minWidth
  1528. , g = void 0 === n ? .1 : n
  1529. , o = i.deleteWidth
  1530. , C = void 0 === o ? .05 : o
  1531. , I = i.show
  1532. , a = void 0 === I || I
  1533. , l = r(i, ["minWidth", "deleteWidth", "show"])
  1534. , u = t.call(this, A(A({}, l), {
  1535. show: a
  1536. })) || this;
  1537. return u.zIndex = 1,
  1538. u.linePoints = u.linePoints.map((function(t) {
  1539. var e = new s.default(A(A({}, t), {
  1540. renderer: u.renderer
  1541. }),u.attachment);
  1542. return e.click = function() {
  1543. return u.changeSelect(!0)
  1544. }
  1545. ,
  1546. e
  1547. }
  1548. )),
  1549. u.minWidth = g,
  1550. u.deleteWidth = C,
  1551. u.real.setAttribute("class", "variable"),
  1552. e.attaArch.get(u.attachment) ? e.attaArch.get(u.attachment).push(u) : e.attaArch.set(u.attachment, [u]),
  1553. u.attachment.update(),
  1554. u
  1555. }
  1556. return g(e, t),
  1557. e.prototype.setAttachment = function(t) {
  1558. if (void 0 === t && (t = this.attachment),
  1559. console.error("set new attach"),
  1560. this.attachment !== t) {
  1561. var i = e.attaArch.get(this.attachment)
  1562. , n = e.attaArch.get(t) || e.attaArch.set(t, []).get(t);
  1563. i.splice(i.indexOf(this), 1),
  1564. n.push(this),
  1565. this.linePoints.forEach((function(e) {
  1566. e.line = t
  1567. }
  1568. )),
  1569. this.attachment = t
  1570. }
  1571. }
  1572. ,
  1573. e.prototype.checkPointBorder = function(t, e) {
  1574. return void 0 === e && (e = this.attachment),
  1575. a.lineDis({
  1576. points: [e.points[0], t]
  1577. }) < .08 || (a.lineDis({
  1578. points: [e.points[1], t]
  1579. }) < .08 || void 0)
  1580. }
  1581. ,
  1582. e.prototype.checkPoint = function(t, e) {
  1583. return void 0 === e && (e = this.attachment),
  1584. !a.isContainPoint(e, t)
  1585. }
  1586. ,
  1587. e.prototype.checkWidth = function(t) {
  1588. return void 0 === t && (t = this.linePoints),
  1589. a.lineDis({
  1590. points: t
  1591. }) < this.minWidth
  1592. }
  1593. ,
  1594. e.prototype.checkPointOverlapAttaArch = function(t) {
  1595. return void 0 === t && (t = e.attaArch.get(this.attachment)),
  1596. !(t.length <= 1) && t.some((function(e) {
  1597. return t.some((function(t) {
  1598. return e !== t && (a.isContainPoint({
  1599. points: t.linePoints
  1600. }, e.linePoints[0]) || a.isContainPoint({
  1601. points: t.linePoints
  1602. }, e.linePoints[1]))
  1603. }
  1604. ))
  1605. }
  1606. ))
  1607. }
  1608. ,
  1609. e.prototype.checkLineAllPoint = function(t, i) {
  1610. return void 0 === t && (t = e.attaArch.get(this.attachment)),
  1611. void 0 === i && (i = this.attachment),
  1612. 0 !== t.length && t.some((function(t) {
  1613. return !a.isContainPoint(i, t.linePoints[0]) || !a.isContainPoint(i, t.linePoints[1])
  1614. }
  1615. ))
  1616. }
  1617. ,
  1618. e.prototype.getLineNewAll = function(t, i) {
  1619. void 0 === t && (t = this.linePoints),
  1620. void 0 === i && (i = this);
  1621. var n = o(e.attaArch.get(this.attachment));
  1622. return n.splice(n.indexOf(i), 1, {
  1623. linePoints: t
  1624. }),
  1625. n
  1626. }
  1627. ,
  1628. e.prototype.qualified = function(t, e) {
  1629. return void 0 === t && (t = this.linePoints),
  1630. void 0 === e && (e = this.attachment),
  1631. !(this.checkPointBorder(t[0], e) || this.checkPointBorder(t[0], e) || this.checkPoint(t[0], e) || this.checkPoint(t[1], e) || this.checkWidth(t))
  1632. }
  1633. ,
  1634. e.prototype.lineChange = function(t, e) {
  1635. var i = this;
  1636. void 0 === t && (t = this.attachment.points[0]),
  1637. void 0 === e && (e = t);
  1638. var n = e.x
  1639. , g = e.y
  1640. , r = this.attachment.points.findIndex((function(e) {
  1641. return e === t
  1642. }
  1643. ))
  1644. , o = {
  1645. points: 0 === r ? [{
  1646. x: n,
  1647. y: g
  1648. }, this.attachment.points[1]] : [this.attachment.points[0], {
  1649. x: n,
  1650. y: g
  1651. }]
  1652. }
  1653. , C = a.lineDis({
  1654. points: [o.points[r], this.linePoints[0]]
  1655. })
  1656. , I = a.getDisPointLinePoints(o, o.points[r], C)
  1657. , l = I[0]
  1658. , u = I[1]
  1659. , c = a.lineDis({
  1660. points: [l, this.linePoints[0]]
  1661. }) > a.lineDis({
  1662. points: [u, this.linePoints[0]]
  1663. }) ? u : l
  1664. , h = a.lineDis({
  1665. points: [o.points[r], this.linePoints[1]]
  1666. })
  1667. , p = a.getDisPointLinePoints(o, o.points[r], h)
  1668. , d = p[0]
  1669. , f = p[1]
  1670. , y = a.lineDis({
  1671. points: [d, this.linePoints[1]]
  1672. }) > a.lineDis({
  1673. points: [f, this.linePoints[1]]
  1674. }) ? f : d
  1675. , v = (a.lineDis({
  1676. points: [this.linePoints[0], c]
  1677. }) < a.lineDis({
  1678. points: [this.linePoints[0], y]
  1679. }) ? [c, y] : [y, c]).map((function(t) {
  1680. var e = s.default.prototype.getLineInsertPoint.call(A(A({}, i.linePoints[0]), {
  1681. line: o
  1682. }), t);
  1683. return a.pointLineDis(i.attachment, e) > .1 ? a.lineDis({
  1684. points: [i.attachment.points[0], e]
  1685. }) < a.lineDis({
  1686. points: [i.attachment.points[1], e]
  1687. }) ? {
  1688. x: i.attachment.points[0].x,
  1689. y: i.attachment.points[0].y
  1690. } : {
  1691. x: i.attachment.points[1].x,
  1692. y: i.attachment.points[1].y
  1693. } : e
  1694. }
  1695. ));
  1696. return {
  1697. line: o,
  1698. points: v
  1699. }
  1700. }
  1701. ,
  1702. e.prototype.pointChange = function(t, e) {
  1703. var i = e.x
  1704. , n = e.y;
  1705. return 0 === this.linePoints.findIndex((function(e) {
  1706. return e === t
  1707. }
  1708. )) ? [{
  1709. x: i,
  1710. y: n
  1711. }, this.linePoints[1]] : [this.linePoints[0], {
  1712. x: i,
  1713. y: n
  1714. }]
  1715. }
  1716. ,
  1717. e.prototype.lineChangeCheck = function(t, e, i) {
  1718. return this.qualified(t, e) && !this.checkLineAllPoint(i, e) && !this.checkPointOverlapAttaArch(i)
  1719. }
  1720. ,
  1721. e.prototype.intercept = function(t, i, n) {
  1722. var g, A = this, r = i.x, o = i.y;
  1723. if (l.type.isUndefined(r) || l.type.isUndefined(o))
  1724. return !0;
  1725. if (g = this.attachment.points.find((function(e) {
  1726. return t.some((function(t) {
  1727. return t === e
  1728. }
  1729. ))
  1730. }
  1731. ))) {
  1732. var C = this.lineChange(g, {
  1733. x: r,
  1734. y: o
  1735. })
  1736. , I = C.points
  1737. , s = (C.line,
  1738. t.filter((function(t) {
  1739. return t instanceof e && t.attachment.id === A.attachment.id
  1740. }
  1741. )));
  1742. return s = Array.from(new Set(s)),
  1743. this.attachment.nextTick((function() {
  1744. if (!A.attachment || !A.attachment.points)
  1745. return A.destroy();
  1746. var t = A.lineChange(g, {
  1747. x: g.x,
  1748. y: g.y
  1749. })
  1750. , e = t.points;
  1751. t.line;
  1752. e.forEach((function(t, e) {
  1753. t && (A.linePoints[e].x = t.x,
  1754. A.linePoints[e].y = t.y)
  1755. }
  1756. )),
  1757. A.nextTick((function() {
  1758. A.linePoints && A.linePoints.length && a.lineDis({
  1759. points: A.linePoints
  1760. }) <= A.deleteWidth && A.destroy()
  1761. }
  1762. ))
  1763. }
  1764. )),
  1765. this.attachment.update(),
  1766. {
  1767. __points: I
  1768. }
  1769. }
  1770. t.findIndex((function(t) {
  1771. return A.linePoints.some((function(e) {
  1772. return e === t
  1773. }
  1774. ))
  1775. }
  1776. ))
  1777. }
  1778. ,
  1779. e.prototype.dragEnd = function() {
  1780. var t = this;
  1781. this.nextTick((function() {
  1782. a.lineDis({
  1783. points: t.linePoints
  1784. }) <= t.deleteWidth && t.destroy()
  1785. }
  1786. ))
  1787. }
  1788. ,
  1789. e.prototype.destroy = function() {
  1790. var i = e.attaArch.get(this.attachment);
  1791. i && (i.splice(i.indexOf(this), 1),
  1792. console.log(this.linePoints[0], this),
  1793. this.linePoints[0] && this.linePoints[0].destroy && this.linePoints[0].destroy(),
  1794. this.linePoints[1] && this.linePoints[1].destroy && this.linePoints[1].destroy(),
  1795. this.attachment = null,
  1796. this.linePoints = null,
  1797. this.update = null,
  1798. t.prototype.destroy.call(this),
  1799. this.attachment.update())
  1800. }
  1801. ,
  1802. e.attaArch = new Map,
  1803. e
  1804. }(I.CADElement);
  1805. e.default = u
  1806. }
  1807. , function(t, e, i) {
  1808. "use strict";
  1809. var n, g = this && this.__extends || (n = function(t, e) {
  1810. return (n = Object.setPrototypeOf || {
  1811. __proto__: []
  1812. }instanceof Array && function(t, e) {
  1813. t.__proto__ = e
  1814. }
  1815. || function(t, e) {
  1816. for (var i in e)
  1817. e.hasOwnProperty(i) && (t[i] = e[i])
  1818. }
  1819. )(t, e)
  1820. }
  1821. ,
  1822. function(t, e) {
  1823. function i() {
  1824. this.constructor = t
  1825. }
  1826. n(t, e),
  1827. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  1828. new i)
  1829. }
  1830. ), A = this && this.__assign || function() {
  1831. return (A = Object.assign || function(t) {
  1832. for (var e, i = 1, n = arguments.length; i < n; i++)
  1833. for (var g in e = arguments[i])
  1834. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  1835. return t
  1836. }
  1837. ).apply(this, arguments)
  1838. }
  1839. , r = this && this.__awaiter || function(t, e, i, n) {
  1840. return new (i || (i = Promise))((function(g, A) {
  1841. function r(t) {
  1842. try {
  1843. C(n.next(t))
  1844. } catch (t) {
  1845. A(t)
  1846. }
  1847. }
  1848. function o(t) {
  1849. try {
  1850. C(n.throw(t))
  1851. } catch (t) {
  1852. A(t)
  1853. }
  1854. }
  1855. function C(t) {
  1856. var e;
  1857. t.done ? g(t.value) : (e = t.value,
  1858. e instanceof i ? e : new i((function(t) {
  1859. t(e)
  1860. }
  1861. ))).then(r, o)
  1862. }
  1863. C((n = n.apply(t, e || [])).next())
  1864. }
  1865. ))
  1866. }
  1867. , o = this && this.__generator || function(t, e) {
  1868. var i, n, g, A, r = {
  1869. label: 0,
  1870. sent: function() {
  1871. if (1 & g[0])
  1872. throw g[1];
  1873. return g[1]
  1874. },
  1875. trys: [],
  1876. ops: []
  1877. };
  1878. return A = {
  1879. next: o(0),
  1880. throw: o(1),
  1881. return: o(2)
  1882. },
  1883. "function" == typeof Symbol && (A[Symbol.iterator] = function() {
  1884. return this
  1885. }
  1886. ),
  1887. A;
  1888. function o(A) {
  1889. return function(o) {
  1890. return function(A) {
  1891. if (i)
  1892. throw new TypeError("Generator is already executing.");
  1893. for (; r; )
  1894. try {
  1895. if (i = 1,
  1896. n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n),
  1897. 0) : n.next) && !(g = g.call(n, A[1])).done)
  1898. return g;
  1899. switch (n = 0,
  1900. g && (A = [2 & A[0], g.value]),
  1901. A[0]) {
  1902. case 0:
  1903. case 1:
  1904. g = A;
  1905. break;
  1906. case 4:
  1907. return r.label++,
  1908. {
  1909. value: A[1],
  1910. done: !1
  1911. };
  1912. case 5:
  1913. r.label++,
  1914. n = A[1],
  1915. A = [0];
  1916. continue;
  1917. case 7:
  1918. A = r.ops.pop(),
  1919. r.trys.pop();
  1920. continue;
  1921. default:
  1922. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  1923. r = 0;
  1924. continue
  1925. }
  1926. if (3 === A[0] && (!g || A[1] > g[0] && A[1] < g[3])) {
  1927. r.label = A[1];
  1928. break
  1929. }
  1930. if (6 === A[0] && r.label < g[1]) {
  1931. r.label = g[1],
  1932. g = A;
  1933. break
  1934. }
  1935. if (g && r.label < g[2]) {
  1936. r.label = g[2],
  1937. r.ops.push(A);
  1938. break
  1939. }
  1940. g[2] && r.ops.pop(),
  1941. r.trys.pop();
  1942. continue
  1943. }
  1944. A = e.call(t, r)
  1945. } catch (t) {
  1946. A = [6, t],
  1947. n = 0
  1948. } finally {
  1949. i = g = 0
  1950. }
  1951. if (5 & A[0])
  1952. throw A[1];
  1953. return {
  1954. value: A[0] ? A[1] : void 0,
  1955. done: !0
  1956. }
  1957. }([A, o])
  1958. }
  1959. }
  1960. }
  1961. , C = this && this.__rest || function(t, e) {
  1962. var i = {};
  1963. for (var n in t)
  1964. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  1965. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  1966. var g = 0;
  1967. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1968. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  1969. }
  1970. return i
  1971. }
  1972. , I = this && this.__spreadArrays || function() {
  1973. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  1974. t += arguments[e].length;
  1975. var n = Array(t)
  1976. , g = 0;
  1977. for (e = 0; e < i; e++)
  1978. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  1979. g++)
  1980. n[g] = A[r];
  1981. return n
  1982. }
  1983. , s = this && this.__importDefault || function(t) {
  1984. return t && t.__esModule ? t : {
  1985. default: t
  1986. }
  1987. }
  1988. ;
  1989. Object.defineProperty(e, "__esModule", {
  1990. value: !0
  1991. });
  1992. var a = s(i(6))
  1993. , l = i(3)
  1994. , u = i(0)
  1995. , c = function(t) {
  1996. function e(i) {
  1997. var n = i.hover
  1998. , g = C(i, ["hover"])
  1999. , A = this;
  2000. if (!g.renderer)
  2001. throw g;
  2002. return n || (n = {
  2003. fillColor: e.Setting.get(g.renderer).fillColor,
  2004. storkeColor: e.Setting.get(g.renderer).storkeColor
  2005. }),
  2006. (A = t.call(this, g) || this).hover = n,
  2007. A.hover.r = A.hover.r || A.init.r,
  2008. A.real.setAttribute("class", "variable"),
  2009. A.adopt = !1,
  2010. A.disable = !1,
  2011. A.zIndex = 2,
  2012. A
  2013. }
  2014. return g(e, t),
  2015. e.prototype.setHoverStyle = function() {
  2016. this.fillColor = this.hover.fillColor,
  2017. this.strokeWidth = this.hover.r,
  2018. this.storkeColor = this.hover.storkeColor
  2019. }
  2020. ,
  2021. e.prototype.setUnHoverStyle = function() {
  2022. this.fillColor = this.init.fillColor,
  2023. this.strokeWidth = this.init.strokeWidth,
  2024. this.storkeColor = this.init.storkeColor
  2025. }
  2026. ,
  2027. e.prototype.dragStart = function() {
  2028. this.dragStartPoint = {
  2029. x: this.x,
  2030. y: this.y
  2031. }
  2032. }
  2033. ,
  2034. e.prototype.drag = function(t) {
  2035. if (this.disable || 0 === t.x && 0 === t.y)
  2036. return !1;
  2037. this.x = this.dragStartPoint.x + t.x * this.multiple,
  2038. this.y = this.dragStartPoint.y + t.y * this.multiple
  2039. }
  2040. ,
  2041. e.prototype.update = function() {
  2042. var e = this;
  2043. t.prototype.update.call(this),
  2044. this.renderer.processing.lines.filter((function(t) {
  2045. return ~t.ele.points.indexOf(e)
  2046. }
  2047. )).map((function(t) {
  2048. return t.ele
  2049. }
  2050. )).forEach((function(t) {
  2051. t.showAngle = e.hover && e.fillColor === e.hover.fillColor
  2052. }
  2053. ))
  2054. }
  2055. ,
  2056. e.prototype.intercept = function(t, e, i) {
  2057. var n = this
  2058. , g = e.x
  2059. , r = e.y;
  2060. e.select;
  2061. if (l.type.isUndefined(g) || l.type.isUndefined(r))
  2062. return !0;
  2063. if (this.dragStartPoint) {
  2064. for (var o, C = {
  2065. x: g,
  2066. y: r
  2067. }, s = this.renderer.processing.lines.map((function(t) {
  2068. return t.ele
  2069. }
  2070. )), a = s.filter((function(t) {
  2071. return ~t.points.indexOf(n)
  2072. }
  2073. )).map((function(t) {
  2074. var e = t.points.indexOf(n)
  2075. , i = Number(!e)
  2076. , g = s.filter((function(e) {
  2077. return ~e.points.indexOf(t.points[i]) && t !== e
  2078. }
  2079. ))
  2080. , A = I(t.points);
  2081. return A[e] = C,
  2082. I([{
  2083. points: A
  2084. }], g)
  2085. }
  2086. )), c = function(t) {
  2087. var e = a[t];
  2088. if (e.length < 2)
  2089. return "continue";
  2090. var i = e.slice(1).map((function(t) {
  2091. var i = u.getAngle(e[0], t);
  2092. return i > 90 && (i = 180 - i),
  2093. {
  2094. line: t,
  2095. angle: u.getAngle(e[0], t)
  2096. }
  2097. }
  2098. ))
  2099. , n = i.map((function(t) {
  2100. return A(A({}, t), {
  2101. angle: t.angle > 90 ? 180 - t.angle : t.angle
  2102. })
  2103. }
  2104. )).sort((function(t, e) {
  2105. return t.angle - e.angle
  2106. }
  2107. ));
  2108. if (n[0].angle <= 5) {
  2109. var g = n[0].line;
  2110. o = u.getLinePoint(g, o || C)
  2111. }
  2112. var r = i.find((function(t) {
  2113. var e = t.angle;
  2114. return e > 85 && e < 95 && 90 !== e
  2115. }
  2116. ));
  2117. r && (o = u.getVectorPosPoint(u.verticalLine(r.line), r.line.points.find((function(t) {
  2118. return ~e[0].points.indexOf(t)
  2119. }
  2120. )), o || C))
  2121. }, h = 0; h < a.length; h++)
  2122. c(h);
  2123. return o
  2124. }
  2125. }
  2126. ,
  2127. e.prototype.dragEnd = function() {
  2128. return r(this, void 0, void 0, (function() {
  2129. var t, e, n, g, A, r, C = this;
  2130. return o(this, (function(o) {
  2131. switch (o.label) {
  2132. case 0:
  2133. return delete this.dragStartPoint,
  2134. t = i(4).default,
  2135. (e = this).stopDragEnd || e.dragEnding ? [2] : (e.dragEnding = !0,
  2136. (n = e.__join_lines && e.__join_lines.find((function(e) {
  2137. return !(u.lineDis({
  2138. points: e.points
  2139. }) > .1 || t.attaArch.get(e) && t.attaArch.get(e).length)
  2140. }
  2141. ))) ? [4, n.judgeMerge()] : [3, 4]);
  2142. case 1:
  2143. return (g = o.sent()) ? [4, new Promise((function(t) {
  2144. g.adopt = !1,
  2145. n.nextTick((function() {
  2146. g.nextTick((function() {
  2147. n.destroy(),
  2148. n.destoryPoint(g),
  2149. t()
  2150. }
  2151. ))
  2152. }
  2153. ))
  2154. }
  2155. ))] : [3, 3];
  2156. case 2:
  2157. o.sent(),
  2158. o.label = 3;
  2159. case 3:
  2160. return [3, 8];
  2161. case 4:
  2162. A = this.renderer.processing.lines.map((function(t) {
  2163. return t.ele
  2164. }
  2165. )).filter((function(t) {
  2166. return ~t.points.indexOf(C)
  2167. }
  2168. )),
  2169. r = 0,
  2170. o.label = 5;
  2171. case 5:
  2172. return r < A.length ? [4, A[r].judgePoint()] : [3, 8];
  2173. case 6:
  2174. o.sent(),
  2175. o.label = 7;
  2176. case 7:
  2177. return r++,
  2178. [3, 5];
  2179. case 8:
  2180. return e.dragEnding = !1,
  2181. this.renderer.processing.depLines(),
  2182. [2]
  2183. }
  2184. }
  2185. ))
  2186. }
  2187. ))
  2188. }
  2189. ,
  2190. e.Setting = new Map,
  2191. e
  2192. }(a.default);
  2193. e.default = c
  2194. }
  2195. , function(t, e, i) {
  2196. "use strict";
  2197. var n, g = this && this.__extends || (n = function(t, e) {
  2198. return (n = Object.setPrototypeOf || {
  2199. __proto__: []
  2200. }instanceof Array && function(t, e) {
  2201. t.__proto__ = e
  2202. }
  2203. || function(t, e) {
  2204. for (var i in e)
  2205. e.hasOwnProperty(i) && (t[i] = e[i])
  2206. }
  2207. )(t, e)
  2208. }
  2209. ,
  2210. function(t, e) {
  2211. function i() {
  2212. this.constructor = t
  2213. }
  2214. n(t, e),
  2215. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  2216. new i)
  2217. }
  2218. ), A = this && this.__assign || function() {
  2219. return (A = Object.assign || function(t) {
  2220. for (var e, i = 1, n = arguments.length; i < n; i++)
  2221. for (var g in e = arguments[i])
  2222. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2223. return t
  2224. }
  2225. ).apply(this, arguments)
  2226. }
  2227. , r = this && this.__rest || function(t, e) {
  2228. var i = {};
  2229. for (var n in t)
  2230. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2231. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2232. var g = 0;
  2233. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2234. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  2235. }
  2236. return i
  2237. }
  2238. ;
  2239. Object.defineProperty(e, "__esModule", {
  2240. value: !0
  2241. });
  2242. var o = i(2)
  2243. , C = i(1)
  2244. , I = 1
  2245. , s = function(t) {
  2246. function e(i) {
  2247. var n = i.strokeWidth
  2248. , g = void 0 === n ? 0 : n
  2249. , o = i.r
  2250. , C = void 0 === o ? 4 : o
  2251. , I = i.r1
  2252. , s = void 0 === I ? 4 : I
  2253. , a = i.fillColor
  2254. , l = i.storkeColor
  2255. , u = r(i, ["strokeWidth", "r", "r1", "fillColor", "storkeColor"])
  2256. , c = this;
  2257. return a = a || e.Setting.get(u.renderer).fillColor,
  2258. l = l || e.Setting.get(u.renderer).storkeColor,
  2259. (c = t.call(this, A({
  2260. storkeColor: l,
  2261. fillColor: a,
  2262. r: C,
  2263. r1: s,
  2264. strokeWidth: g
  2265. }, u)) || this).init = {
  2266. strokeWidth: g,
  2267. r: C,
  2268. r1: s,
  2269. fillColor: a,
  2270. storkeColor: l
  2271. },
  2272. c.update(),
  2273. c
  2274. }
  2275. return g(e, t),
  2276. e.prototype.grentNode = function() {
  2277. var t = document.createElementNS(C.SVGURI, "ellipse");
  2278. return t.setAttribute("_id", (I++).toString()),
  2279. t
  2280. }
  2281. ,
  2282. e.prototype.update = function() {
  2283. var t = this.r * this.multiple
  2284. , e = this.r1 * this.multiple
  2285. , i = this.strokeWidth * this.multiple;
  2286. try {
  2287. this.real.setAttribute("cx", this.x.toString()),
  2288. this.real.setAttribute("cy", this.y.toString()),
  2289. this.real.setAttribute("fill", this.fillColor),
  2290. this.real.setAttribute("rx", t.toString()),
  2291. this.real.setAttribute("ry", e.toString()),
  2292. this.real.setAttribute("stroke-width", i.toString()),
  2293. this.real.setAttribute("stroke", this.storkeColor)
  2294. } catch (t) {
  2295. console.error(this.x)
  2296. }
  2297. }
  2298. ,
  2299. e.prototype.destroy = function() {
  2300. t.prototype.destroy.call(this)
  2301. }
  2302. ,
  2303. e.fillColor = "rgb(183, 18, 15)",
  2304. e.storkeColor = "green",
  2305. e.Setting = new Map,
  2306. e
  2307. }(o.CADElement);
  2308. e.default = s
  2309. }
  2310. , function(t, e, i) {
  2311. "use strict";
  2312. var n, g = this && this.__extends || (n = function(t, e) {
  2313. return (n = Object.setPrototypeOf || {
  2314. __proto__: []
  2315. }instanceof Array && function(t, e) {
  2316. t.__proto__ = e
  2317. }
  2318. || function(t, e) {
  2319. for (var i in e)
  2320. e.hasOwnProperty(i) && (t[i] = e[i])
  2321. }
  2322. )(t, e)
  2323. }
  2324. ,
  2325. function(t, e) {
  2326. function i() {
  2327. this.constructor = t
  2328. }
  2329. n(t, e),
  2330. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  2331. new i)
  2332. }
  2333. ), A = this && this.__assign || function() {
  2334. return (A = Object.assign || function(t) {
  2335. for (var e, i = 1, n = arguments.length; i < n; i++)
  2336. for (var g in e = arguments[i])
  2337. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2338. return t
  2339. }
  2340. ).apply(this, arguments)
  2341. }
  2342. , r = this && this.__rest || function(t, e) {
  2343. var i = {};
  2344. for (var n in t)
  2345. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2346. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2347. var g = 0;
  2348. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2349. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  2350. }
  2351. return i
  2352. }
  2353. , o = this && this.__spreadArrays || function() {
  2354. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  2355. t += arguments[e].length;
  2356. var n = Array(t)
  2357. , g = 0;
  2358. for (e = 0; e < i; e++)
  2359. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  2360. g++)
  2361. n[g] = A[r];
  2362. return n
  2363. }
  2364. , C = this && this.__importDefault || function(t) {
  2365. return t && t.__esModule ? t : {
  2366. default: t
  2367. }
  2368. }
  2369. ;
  2370. Object.defineProperty(e, "__esModule", {
  2371. value: !0
  2372. });
  2373. var I = i(1)
  2374. , s = C(i(5))
  2375. , a = i(2)
  2376. , l = C(i(4))
  2377. , u = i(3)
  2378. , c = i(0)
  2379. , h = function(t) {
  2380. function e(e) {
  2381. var i = e.points
  2382. , n = e.fill
  2383. , g = void 0 === n ? "rgba(0,0,0,0)" : n
  2384. , o = e.stroke
  2385. , C = void 0 === o ? "rgba(255,255,255,0.5)" : o
  2386. , I = e.width
  2387. , a = void 0 === I ? 1 : I
  2388. , l = e.hover
  2389. , u = r(e, ["points", "fill", "stroke", "width", "hover"])
  2390. , h = this
  2391. , p = [i[0], i[1]]
  2392. , d = i.slice(2).map((function(t) {
  2393. return new s.default(A(A({}, t), {
  2394. renderer: u.renderer
  2395. }))
  2396. }
  2397. ))
  2398. , f = {
  2399. fill: g,
  2400. stroke: C,
  2401. width: a
  2402. };
  2403. return l = l || A(A({}, f), {
  2404. fill: "rgba(243, 255, 0, 0.8)",
  2405. strokeBorder: "rgba(243, 255, 0, 0.8)"
  2406. }),
  2407. (h = t.call(this, A(A({
  2408. linePoints: p,
  2409. hover: l,
  2410. otherPoints: d
  2411. }, f), u)) || this).points = h.linePoints.concat(h.otherPoints),
  2412. h.selectLineIndex = -1,
  2413. h.init = f,
  2414. h.cacheVers = [c.lineVector({
  2415. points: [h.points[1], h.points[2]]
  2416. }), c.lineVector({
  2417. points: [h.points[0], h.points[3]]
  2418. })],
  2419. h.__enterHandle = function() {
  2420. h.hasTriggerEvent() || ~h.selectLineIndex && !h.select || Object.keys(h.hover).forEach((function(t) {
  2421. return h[t] = h.hover[t]
  2422. }
  2423. ))
  2424. }
  2425. ,
  2426. h.__leaveHandle = function() {
  2427. h.hasTriggerEvent() || h.select || Object.keys(h.init).forEach((function(t) {
  2428. return h[t] = h.init[t]
  2429. }
  2430. ))
  2431. }
  2432. ,
  2433. h.__lineEnter = function(t) {
  2434. h.hasTriggerEvent() || ~h.selectLineIndex || h.__draging || (h.selectLineIndex = h.lines.indexOf(t.target),
  2435. h.update())
  2436. }
  2437. ,
  2438. h.__lineLeave = function(t) {
  2439. h.hasTriggerEvent() || h.__draging || (h.selectLineIndex = -1,
  2440. h.update())
  2441. }
  2442. ,
  2443. h.__lineClick = function(t) {
  2444. return t.stopPropagation()
  2445. }
  2446. ,
  2447. h
  2448. }
  2449. return g(e, t),
  2450. e.prototype.updateFirstLinePoints = function() {
  2451. this.firstLinePoints = this.attachment.points.map((function(t) {
  2452. return {
  2453. x: t.x,
  2454. y: t.y
  2455. }
  2456. }
  2457. ))
  2458. }
  2459. ,
  2460. e.prototype.grentNode = function() {
  2461. var t = this
  2462. , e = document.createElementNS(I.SVGURI, "g");
  2463. return this.wrapPath = document.createElementNS(I.SVGURI, "path"),
  2464. this.leftLine = document.createElementNS(I.SVGURI, "path"),
  2465. this.rightLine = document.createElementNS(I.SVGURI, "path"),
  2466. this.bottomLeft = document.createElementNS(I.SVGURI, "path"),
  2467. this.topLine = document.createElementNS(I.SVGURI, "path"),
  2468. this.overLine1 = document.createElementNS(I.SVGURI, "path"),
  2469. this.overLine2 = document.createElementNS(I.SVGURI, "path"),
  2470. this.lines = [this.leftLine, this.rightLine, this.topLine, this.overLine1, this.overLine2, this.bottomLeft],
  2471. this.wrapPath.setAttribute("stroke", "rgba(0,0,0,0)"),
  2472. this.nextTick((function() {
  2473. t.points = t.linePoints.concat(t.otherPoints),
  2474. t.addEvent(),
  2475. t.updateThickness(),
  2476. t.updateFirstLinePoints()
  2477. }
  2478. )),
  2479. e.appendChild(this.overLine1),
  2480. e.appendChild(this.overLine2),
  2481. e.appendChild(this.wrapPath),
  2482. e.appendChild(this.leftLine),
  2483. e.appendChild(this.topLine),
  2484. e.appendChild(this.rightLine),
  2485. e.appendChild(this.bottomLeft),
  2486. e
  2487. }
  2488. ,
  2489. e.prototype.update = function() {
  2490. var t = this;
  2491. if (this.points) {
  2492. var e = this.width * this.multiple;
  2493. this.lines.forEach((function(i) {
  2494. i.setAttribute("stroke-width", e.toString()),
  2495. i.setAttribute("stroke-linecap", "round"),
  2496. i.setAttribute("stroke", t.stroke)
  2497. }
  2498. )),
  2499. u.type.isNumber(this.hoverIndex) ? this.lines[this.hoverIndex].setAttribute("stroke", this.hover.strokeBorder) : (this.wrapPath.setAttribute("stroke-width", "0"),
  2500. this.wrapPath.setAttribute("fill", this.fill),
  2501. this.wrapPath.setAttribute("d", "M " + this.points.map((function(t) {
  2502. return t.x + " " + t.y
  2503. }
  2504. )).join(" L "))),
  2505. 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),
  2506. this.overLine2.setAttribute("d", "M " + this.points[3].x + " " + this.points[3].y + " L " + this.points[1].x + " " + this.points[1].y),
  2507. this.topLine.setAttribute("d", "M " + this.points[3].x + " " + this.points[3].y + " L " + this.points[2].x + " " + this.points[2].y),
  2508. this.leftLine.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[3].x + " " + this.points[3].y),
  2509. this.rightLine.setAttribute("d", "M " + this.points[2].x + " " + this.points[2].y + " L " + this.points[1].x + " " + this.points[1].y),
  2510. this.bottomLeft.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[1].x + " " + this.points[1].y),
  2511. ~this.selectLineIndex && this.lines[this.selectLineIndex].setAttribute("stroke", this.hover.strokeBorder),
  2512. this.attachment.update())
  2513. }
  2514. }
  2515. ,
  2516. e.prototype.hasTriggerEvent = function() {
  2517. return a.CADElement.examples.get(this.renderer).some((function(t) {
  2518. return t.__draging
  2519. }
  2520. ))
  2521. }
  2522. ,
  2523. e.prototype.wallSelect = function() {
  2524. var t = this;
  2525. this.select ? Object.keys(this.hover).forEach((function(e) {
  2526. return t[e] = t.hover[e]
  2527. }
  2528. )) : Object.keys(this.init).forEach((function(e) {
  2529. return t[e] = t.init[e]
  2530. }
  2531. ))
  2532. }
  2533. ,
  2534. e.prototype.addEvent = function() {
  2535. var t = this;
  2536. this.wrapPath.addEventListener("mouseenter", this.__enterHandle, !1),
  2537. this.wrapPath.addEventListener("mouseleave", this.__leaveHandle, !1),
  2538. this.lines.forEach((function(e) {
  2539. e.addEventListener("mouseenter", t.__lineEnter, !1),
  2540. e.addEventListener("mouseleave", t.__lineLeave, !1),
  2541. e.addEventListener("click", t.__lineClick, !1)
  2542. }
  2543. ))
  2544. }
  2545. ,
  2546. e.prototype.updateThickness = function(t) {
  2547. void 0 === t && (t = [this.points[0], this.points[3]]),
  2548. this.thickness = c.lineDis({
  2549. points: t
  2550. })
  2551. }
  2552. ,
  2553. e.prototype.checkPeripheral = function(t) {
  2554. return void 0 === t && (t = this.points),
  2555. !0
  2556. }
  2557. ,
  2558. e.prototype.getPeripheral = function(t) {
  2559. void 0 === t && (t = this.points);
  2560. var e = {
  2561. x: this.firstLinePoints[0].x - this.attachment.points[0].x,
  2562. y: this.firstLinePoints[0].y - this.attachment.points[0].y
  2563. }
  2564. , i = {
  2565. x: this.firstLinePoints[1].x - this.attachment.points[1].x,
  2566. y: this.firstLinePoints[1].y - this.attachment.points[1].y
  2567. }
  2568. , n = e.x || e.y ? e : i
  2569. , g = {
  2570. x: t[3].x + n.x,
  2571. y: t[3].y + n.y
  2572. }
  2573. , A = {
  2574. x: t[2].x + n.x,
  2575. y: t[2].y + n.y
  2576. }
  2577. , r = {
  2578. points: [t[0], t[1]]
  2579. }
  2580. , C = c.getDisVerticalLinePoints(r, t[0], this.thickness).sort((function(t, e) {
  2581. return c.lineDis({
  2582. points: [t, g]
  2583. }) - c.lineDis({
  2584. points: [e, g]
  2585. })
  2586. }
  2587. ))[0]
  2588. , I = c.getDisVerticalLinePoints(r, t[1], this.thickness).sort((function(t, e) {
  2589. return c.lineDis({
  2590. points: [t, A]
  2591. }) - c.lineDis({
  2592. points: [e, A]
  2593. })
  2594. }
  2595. ))[0]
  2596. , s = c.getDisPointLinePoints({
  2597. points: [t[0], C]
  2598. }, t[0], this.thickness)
  2599. , a = s[0]
  2600. , l = s[1];
  2601. C = c.lineDis({
  2602. points: [a, t[3]]
  2603. }) > c.lineDis({
  2604. points: [l, t[3]]
  2605. }) ? l : a;
  2606. var u = c.getDisPointLinePoints({
  2607. points: [t[1], I]
  2608. }, t[1], this.thickness)
  2609. , h = u[0]
  2610. , p = u[1]
  2611. , d = null;
  2612. return c.lineDis({
  2613. points: [h, t[2]]
  2614. }) > c.lineDis({
  2615. points: [p, t[2]]
  2616. }) ? (I = p,
  2617. d = h) : (I = h,
  2618. d = p),
  2619. Math.abs(c.lineDis({
  2620. points: [I, C]
  2621. }) - c.lineDis({
  2622. points: [t[0], t[1]]
  2623. })) > .01 && (I = d),
  2624. (t = o(t))[2] = I,
  2625. t[3] = C,
  2626. this.checkPeripheral(t) ? [I, C] : []
  2627. }
  2628. ,
  2629. e.prototype.updatePeripheral = function(t) {
  2630. void 0 === t && (t = this.points);
  2631. var e = this.getPeripheral(t);
  2632. return this.points[2].x = e[0].x,
  2633. this.points[2].y = e[0].y,
  2634. this.points[3].x = e[1].x,
  2635. this.points[3].y = e[1].y,
  2636. this.readyPoints = t.slice(0, 2).concat(e),
  2637. !0
  2638. }
  2639. ,
  2640. e.prototype.intercept = function(e, i, n) {
  2641. var g, r, C, I, s = i.x, a = i.y;
  2642. if (u.type.isUndefined(s) || u.type.isUndefined(a))
  2643. return !0;
  2644. if (!1 === (g = t.prototype.intercept.call(this, e, {
  2645. x: s,
  2646. y: a
  2647. }, n)))
  2648. return g;
  2649. if (r = this.points.findIndex((function(t) {
  2650. return e.some((function(e) {
  2651. return e === t
  2652. }
  2653. ))
  2654. }
  2655. )),
  2656. I = this.attachment.points.findIndex((function(t) {
  2657. return C = e.find((function(e) {
  2658. return e === t
  2659. }
  2660. ))
  2661. }
  2662. )),
  2663. !~r && C) {
  2664. (h = [])[this.points.indexOf(this.linePoints[0])] = g.__points[0],
  2665. h[this.points.indexOf(this.linePoints[1])] = g.__points[1],
  2666. h.push(this.points[2], this.points[3]),
  2667. this.firstLinePoints[I] = C;
  2668. var l = this.getPeripheral(h);
  2669. if (this.cacheVers = [c.lineVector({
  2670. points: [this.points[1], this.points[2]]
  2671. }), c.lineVector({
  2672. points: [this.points[0], this.points[3]]
  2673. })],
  2674. 0 === l.length)
  2675. return !1
  2676. } else {
  2677. var h = o(this.points);
  2678. if (!~r)
  2679. return g;
  2680. if (h[r] = A({}, n[e.indexOf(h[r])]),
  2681. !(r < 2)) {
  2682. var p, d = void 0, f = void 0, y = void 0, v = void 0, m = void 0;
  2683. 2 === r ? (d = {
  2684. points: [this.points[1], this.points[2]]
  2685. },
  2686. f = {
  2687. points: [this.points[0], this.points[3]]
  2688. },
  2689. p = this.points[2],
  2690. y = 2,
  2691. v = 3,
  2692. m = this.cacheVers[1]) : (f = {
  2693. points: [this.points[1], this.points[2]]
  2694. },
  2695. d = {
  2696. points: [this.points[0], this.points[3]]
  2697. },
  2698. p = this.points[3],
  2699. y = 3,
  2700. v = 2,
  2701. m = d,
  2702. m = this.cacheVers[0]);
  2703. var b = c.lineVector(d);
  2704. if (b.x - m.x < .01 && b.y - m.y < .01) {
  2705. var x = c.getLinePoint(d, {
  2706. x: s,
  2707. y: a
  2708. })
  2709. , _ = c.getLinePoint(f, {
  2710. x: s,
  2711. y: a
  2712. })
  2713. , w = f.points[1].x + s - p.x
  2714. , P = f.points[1].y + a - p.y
  2715. , O = c.getLinePoint(f, {
  2716. x: w,
  2717. y: P
  2718. })
  2719. , S = Math.abs(this.moveLineDis - c.lineDis({
  2720. points: [x, _]
  2721. })) > Math.abs(this.moveLineDis - c.lineDis({
  2722. points: [x, O]
  2723. })) ? O : _;
  2724. h[y] = x,
  2725. h[v] = S
  2726. }
  2727. return this.readyPoints = h,
  2728. !0
  2729. }
  2730. if (!this.updatePeripheral(h))
  2731. return !1
  2732. }
  2733. return g
  2734. }
  2735. ,
  2736. e.prototype.dragStart = function(t) {
  2737. var e = this.lines.indexOf(t.target);
  2738. this.__index = e < 3 ? e : -1,
  2739. this.__startPoints = this.points.map((function(t) {
  2740. return {
  2741. x: t.x,
  2742. y: t.y
  2743. }
  2744. }
  2745. ))
  2746. }
  2747. ,
  2748. e.prototype.drag = function(t) {
  2749. var e = t.x * this.multiple
  2750. , i = t.y * this.multiple
  2751. , n = ~this.__index ? [this.points[this.__index]] : this.linePoints
  2752. , g = ~this.__index ? [this.__startPoints[this.__index]] : this.__startPoints;
  2753. if (this.__index < 2)
  2754. n.forEach((function(t, n) {
  2755. t.x = g[n].x + e,
  2756. t.y = g[n].y + i
  2757. }
  2758. ));
  2759. else {
  2760. var A = c.getLinePoint({
  2761. points: [this.points[0], this.points[3]]
  2762. }, {
  2763. x: this.__startPoints[3].x + e,
  2764. y: this.__startPoints[3].y + i
  2765. })
  2766. , r = c.getLinePoint({
  2767. points: [this.points[1], this.points[2]]
  2768. }, {
  2769. x: this.__startPoints[2].x + e,
  2770. y: this.__startPoints[2].y + i
  2771. });
  2772. this.checkPeripheral(this.points.slice(0, 2).map((function(t) {
  2773. return {
  2774. x: t.x,
  2775. y: t.y
  2776. }
  2777. }
  2778. )).concat([r, A])) && (this.points[3].x = A.x,
  2779. this.points[3].y = A.y,
  2780. this.points[2].x = r.x,
  2781. this.points[2].y = r.y)
  2782. }
  2783. }
  2784. ,
  2785. e.prototype.dragEnd = function() {
  2786. delete this.dragStartPoints,
  2787. delete this.__index,
  2788. this.updateThickness(),
  2789. this.__leaveHandle(),
  2790. this.__lineLeave(),
  2791. t.prototype.dragEnd.call(this)
  2792. }
  2793. ,
  2794. e.prototype.delEvent = function() {
  2795. var t = this;
  2796. this.wrapPath.removeEventListener("mouseenter", this.__enterHandle, !1),
  2797. this.wrapPath.removeEventListener("mouseleave", this.__leaveHandle, !1),
  2798. this.lines.forEach((function(e) {
  2799. e.removeEventListener("mouseenter", t.__lineEnter, !1),
  2800. e.removeEventListener("mouseleave", t.__lineLeave, !1),
  2801. e.removeEventListener("click", t.__lineClick, !1)
  2802. }
  2803. ))
  2804. }
  2805. ,
  2806. e.prototype.destroy = function() {
  2807. this.delEvent(),
  2808. t.prototype.destroy.call(this)
  2809. }
  2810. ,
  2811. e
  2812. }(l.default);
  2813. e.default = h
  2814. }
  2815. , function(t, e, i) {
  2816. "use strict";
  2817. var n, g = this && this.__extends || (n = function(t, e) {
  2818. return (n = Object.setPrototypeOf || {
  2819. __proto__: []
  2820. }instanceof Array && function(t, e) {
  2821. t.__proto__ = e
  2822. }
  2823. || function(t, e) {
  2824. for (var i in e)
  2825. e.hasOwnProperty(i) && (t[i] = e[i])
  2826. }
  2827. )(t, e)
  2828. }
  2829. ,
  2830. function(t, e) {
  2831. function i() {
  2832. this.constructor = t
  2833. }
  2834. n(t, e),
  2835. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  2836. new i)
  2837. }
  2838. ), A = this && this.__assign || function() {
  2839. return (A = Object.assign || function(t) {
  2840. for (var e, i = 1, n = arguments.length; i < n; i++)
  2841. for (var g in e = arguments[i])
  2842. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  2843. return t
  2844. }
  2845. ).apply(this, arguments)
  2846. }
  2847. , r = this && this.__rest || function(t, e) {
  2848. var i = {};
  2849. for (var n in t)
  2850. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  2851. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  2852. var g = 0;
  2853. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2854. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  2855. }
  2856. return i
  2857. }
  2858. , o = this && this.__importDefault || function(t) {
  2859. return t && t.__esModule ? t : {
  2860. default: t
  2861. }
  2862. }
  2863. , C = this && this.__importStar || function(t) {
  2864. if (t && t.__esModule)
  2865. return t;
  2866. var e = {};
  2867. if (null != t)
  2868. for (var i in t)
  2869. Object.hasOwnProperty.call(t, i) && (e[i] = t[i]);
  2870. return e.default = t,
  2871. e
  2872. }
  2873. ;
  2874. Object.defineProperty(e, "__esModule", {
  2875. value: !0
  2876. });
  2877. var I = i(1)
  2878. , s = o(i(4))
  2879. , a = i(0)
  2880. , l = {
  2881. defaultIcon: C(i(34)),
  2882. darkIcon: C(i(35))
  2883. }
  2884. , u = function(t) {
  2885. function e(e) {
  2886. var i = e.points
  2887. , n = e.fill
  2888. , g = void 0 === n ? "rgba(0,0,0,0)" : n
  2889. , o = e.icon
  2890. , C = void 0 === o ? "defaultIcon" : o
  2891. , I = e.stroke
  2892. , s = void 0 === I ? "rgba(255,255,255,0.5)" : I
  2893. , a = e.outWidth
  2894. , l = void 0 === a ? 1 : a
  2895. , u = e.foorWidth
  2896. , c = void 0 === u ? 6 : u
  2897. , h = e.linecap
  2898. , p = void 0 === h ? "square" : h
  2899. , d = e.foorColor
  2900. , f = void 0 === d ? "rgba(0,0,0,0)" : d
  2901. , y = e.hover
  2902. , v = e.within
  2903. , m = void 0 === v ? 0 : v
  2904. , b = e.start
  2905. , x = void 0 !== b && b
  2906. , _ = r(e, ["points", "fill", "icon", "stroke", "outWidth", "foorWidth", "linecap", "foorColor", "hover", "within", "start"])
  2907. , w = this
  2908. , P = {
  2909. fill: g,
  2910. stroke: s,
  2911. outWidth: l,
  2912. foorWidth: c,
  2913. foorColor: f,
  2914. linecap: p
  2915. };
  2916. return y = y || A(A({}, P), {
  2917. fill: "rgba(243, 255, 0, 0.8)"
  2918. }),
  2919. (w = t.call(this, A(A({
  2920. linePoints: i,
  2921. hover: y,
  2922. within: m,
  2923. start: x,
  2924. icon: C
  2925. }, P), _)) || this).init = P,
  2926. w.showStart = !0,
  2927. w
  2928. }
  2929. return g(e, t),
  2930. e.prototype.grentNode = function() {
  2931. var t = this
  2932. , e = document.createElementNS(I.SVGURI, "g");
  2933. return this.arc = document.createElementNS(I.SVGURI, "path"),
  2934. this.outLine = document.createElementNS(I.SVGURI, "path"),
  2935. this.image = document.createElementNS(I.SVGURI, "image"),
  2936. e.appendChild(this.outLine),
  2937. e.appendChild(this.arc),
  2938. e.appendChild(this.image),
  2939. this.nextTick((function() {
  2940. t.linePoints && (e.appendChild(t.linePoints[0].real),
  2941. e.appendChild(t.linePoints[1].real))
  2942. }
  2943. )),
  2944. e
  2945. }
  2946. ,
  2947. e.prototype.getCalcPoint = function(t) {
  2948. void 0 === t && (t = a.lineDis({
  2949. points: this.linePoints
  2950. }));
  2951. var e = this.linePoints[0];
  2952. return a.getDisVectorPoints(a.verticalLine(this.attachment), e, t)[0]
  2953. }
  2954. ,
  2955. e.prototype.click = function(e) {
  2956. t.prototype.click.call(this, e),
  2957. console.log(this.within)
  2958. }
  2959. ,
  2960. e.prototype.getDrawArgs = function() {
  2961. var t, e, i, n;
  2962. 0 === this.within || 2 === this.within ? (i = (t = this.linePoints)[0],
  2963. n = t[1]) : (n = (e = this.linePoints)[0],
  2964. i = e[1]);
  2965. var g, A = a.lineDis({
  2966. points: this.linePoints
  2967. }), r = a.getDisVerticalLinePoints(this.attachment, i, A), o = r[0], C = r[1], I = {
  2968. x: 0,
  2969. y: 0
  2970. }, s = a.lineDis({
  2971. points: [o, I]
  2972. }) < a.lineDis({
  2973. points: [C, I]
  2974. });
  2975. return [i, n, g = 0 === this.within || 3 === this.within ? s ? o : C : s ? C : o, A, a.isClockWise([i, n, g])]
  2976. }
  2977. ,
  2978. e.prototype.update = function() {
  2979. this.real.style.display = this.show ? "initial" : "none";
  2980. var t = this.getDrawArgs()
  2981. , e = t[0]
  2982. , i = t[1]
  2983. , n = t[2]
  2984. , g = t[3]
  2985. , A = t[4];
  2986. if (isNaN(n.x))
  2987. this.destroy();
  2988. else if (this.ctl = [n],
  2989. 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"),
  2990. this.arc.setAttribute("stroke-width", (this.outWidth * this.multiple).toString()),
  2991. this.arc.setAttribute("stroke", this.stroke),
  2992. this.arc.setAttribute("fill", this.fill),
  2993. this.icon !== this.firstIcon && (this.image.href.baseVal = l[this.icon],
  2994. this.firstIcon = this.icon),
  2995. this.outLine.setAttribute("stroke", this.foorColor),
  2996. this.outLine.setAttribute("fill", this.fill),
  2997. this.outLine.setAttribute("stroke-width", (this.foorWidth * this.multiple).toString()),
  2998. this.outLine.setAttribute("stroke-linecap", this.linecap),
  2999. this.outLine.setAttribute("d", "M " + this.linePoints[0].x + " " + this.linePoints[0].y + " L " + this.linePoints[1].x + " " + this.linePoints[1].y),
  3000. this.attachment.update(),
  3001. this.start && this.showStart) {
  3002. var r = a.lineDis({
  3003. points: this.linePoints
  3004. })
  3005. , o = a.lineStretch({
  3006. points: this.linePoints
  3007. }, r / 2).points
  3008. , C = a.lineDis({
  3009. points: o
  3010. });
  3011. if (isNaN(C))
  3012. return;
  3013. var I = 4 * C
  3014. , s = o[1]
  3015. , u = s === o[1] ? o[0] : o[1]
  3016. , c = a.getDisVerticalLinePoints({
  3017. points: this.linePoints
  3018. }, s, I)
  3019. , h = a.lineDis({
  3020. points: [c[0], n]
  3021. }) > a.lineDis({
  3022. points: [c[1], n]
  3023. }) ? c[0] : c[1]
  3024. , p = a.getDisVerticalLinePoints({
  3025. points: this.linePoints
  3026. }, u, I)
  3027. , d = a.lineDis({
  3028. points: [p[0], n]
  3029. }) > a.lineDis({
  3030. points: [p[1], n]
  3031. }) ? p[0] : p[1]
  3032. , f = a.faceCenter([s, h, d, u])
  3033. , y = a.lineDeg({
  3034. points: [s, h]
  3035. }) + 90;
  3036. this.image.setAttribute("width", C.toString()),
  3037. this.image.setAttribute("height", I.toString()),
  3038. this.image.setAttribute("x", (f.x - C / 2).toString()),
  3039. this.image.setAttribute("y", (f.y - I / 2).toString()),
  3040. this.image.setAttribute("transform", "rotate(" + y + ", " + f.x + ", " + f.y + ")"),
  3041. this.image.style.display = "block"
  3042. } else
  3043. this.image.style.display = "none"
  3044. }
  3045. ,
  3046. e.prototype.dragStart = function(t) {
  3047. this.__index = t.target === this.linePoints[0].real ? 0 : t.target === this.linePoints[1].real ? 1 : -1,
  3048. this.__startPoints = this.linePoints.map((function(t) {
  3049. return {
  3050. x: t.x,
  3051. y: t.y
  3052. }
  3053. }
  3054. ))
  3055. }
  3056. ,
  3057. e.prototype.drag = function(t) {
  3058. var e = this
  3059. , i = ~this.__index ? [this.linePoints[this.__index]] : this.linePoints
  3060. , n = ~this.__index ? [this.__startPoints[this.__index]] : this.__startPoints;
  3061. i.forEach((function(i, g) {
  3062. i.x = n[g].x + t.x * e.multiple,
  3063. i.y = n[g].y + t.y * e.multiple
  3064. }
  3065. ))
  3066. }
  3067. ,
  3068. e.prototype.dragEnd = function() {
  3069. delete this.dragStartPoints,
  3070. delete this.__index,
  3071. t.prototype.dragEnd.call(this)
  3072. }
  3073. ,
  3074. e.prototype.setHoverStyle = function() {
  3075. var t = this;
  3076. Object.keys(this.hover).forEach((function(e) {
  3077. return t[e] = t.hover[e]
  3078. }
  3079. ))
  3080. }
  3081. ,
  3082. e.prototype.setUnHoverStyle = function() {
  3083. var t = this;
  3084. Object.keys(this.init).forEach((function(e) {
  3085. return t[e] = t.init[e]
  3086. }
  3087. ))
  3088. }
  3089. ,
  3090. e
  3091. }(s.default);
  3092. e.default = u
  3093. }
  3094. , function(t, e, i) {
  3095. "use strict";
  3096. var n = this && this.__importDefault || function(t) {
  3097. return t && t.__esModule ? t : {
  3098. default: t
  3099. }
  3100. }
  3101. ;
  3102. Object.defineProperty(e, "__esModule", {
  3103. value: !0
  3104. });
  3105. var g = n(i(30))
  3106. , A = {
  3107. t: function(t, e) {
  3108. for (var i = t.split("."), n = g.default; i.length; )
  3109. n = n[i.shift()];
  3110. return n
  3111. }
  3112. };
  3113. e.i18n = A
  3114. }
  3115. , function(t, e, i) {
  3116. "use strict";
  3117. var n, g = this && this.__extends || (n = function(t, e) {
  3118. return (n = Object.setPrototypeOf || {
  3119. __proto__: []
  3120. }instanceof Array && function(t, e) {
  3121. t.__proto__ = e
  3122. }
  3123. || function(t, e) {
  3124. for (var i in e)
  3125. e.hasOwnProperty(i) && (t[i] = e[i])
  3126. }
  3127. )(t, e)
  3128. }
  3129. ,
  3130. function(t, e) {
  3131. function i() {
  3132. this.constructor = t
  3133. }
  3134. n(t, e),
  3135. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  3136. new i)
  3137. }
  3138. ), A = this && this.__assign || function() {
  3139. return (A = Object.assign || function(t) {
  3140. for (var e, i = 1, n = arguments.length; i < n; i++)
  3141. for (var g in e = arguments[i])
  3142. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  3143. return t
  3144. }
  3145. ).apply(this, arguments)
  3146. }
  3147. , r = this && this.__rest || function(t, e) {
  3148. var i = {};
  3149. for (var n in t)
  3150. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  3151. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  3152. var g = 0;
  3153. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  3154. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  3155. }
  3156. return i
  3157. }
  3158. ;
  3159. Object.defineProperty(e, "__esModule", {
  3160. value: !0
  3161. });
  3162. var o = i(2)
  3163. , C = i(1)
  3164. , I = function(t) {
  3165. function e(i) {
  3166. var n = i.color
  3167. , g = i.width
  3168. , o = i.showAngle
  3169. , C = void 0 !== o && o
  3170. , I = i.linecap
  3171. , s = void 0 === I ? "square" : I
  3172. , a = r(i, ["color", "width", "showAngle", "linecap"])
  3173. , l = this;
  3174. return g = g || e.Setting.get(a.renderer).width,
  3175. n = n || e.Setting.get(a.renderer).color,
  3176. (l = t.call(this, A({
  3177. color: n,
  3178. width: g,
  3179. linecap: s,
  3180. showAngle: C
  3181. }, a)) || this).init = {
  3182. color: n,
  3183. width: g,
  3184. linecap: s
  3185. },
  3186. l
  3187. }
  3188. return g(e, t),
  3189. e.prototype.intercept = function(t, e, i) {
  3190. return !0
  3191. }
  3192. ,
  3193. e.prototype.grentNode = function() {
  3194. return document.createElementNS(C.SVGURI, "path")
  3195. }
  3196. ,
  3197. e.prototype.update = function() {
  3198. var t = this.width * this.multiple;
  3199. this.real.setAttribute("stroke", this.color),
  3200. this.real.setAttribute("stroke-width", t.toString()),
  3201. this.real.setAttribute("stroke-linecap", this.linecap),
  3202. this.real.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[1].x + " " + this.points[1].y)
  3203. }
  3204. ,
  3205. e.Setting = new Map,
  3206. e
  3207. }(o.CADElement);
  3208. e.default = I
  3209. }
  3210. , function(t, e, i) {
  3211. "use strict";
  3212. var n, g = this && this.__extends || (n = function(t, e) {
  3213. return (n = Object.setPrototypeOf || {
  3214. __proto__: []
  3215. }instanceof Array && function(t, e) {
  3216. t.__proto__ = e
  3217. }
  3218. || function(t, e) {
  3219. for (var i in e)
  3220. e.hasOwnProperty(i) && (t[i] = e[i])
  3221. }
  3222. )(t, e)
  3223. }
  3224. ,
  3225. function(t, e) {
  3226. function i() {
  3227. this.constructor = t
  3228. }
  3229. n(t, e),
  3230. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  3231. new i)
  3232. }
  3233. ), A = this && this.__assign || function() {
  3234. return (A = Object.assign || function(t) {
  3235. for (var e, i = 1, n = arguments.length; i < n; i++)
  3236. for (var g in e = arguments[i])
  3237. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  3238. return t
  3239. }
  3240. ).apply(this, arguments)
  3241. }
  3242. , r = this && this.__rest || function(t, e) {
  3243. var i = {};
  3244. for (var n in t)
  3245. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  3246. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  3247. var g = 0;
  3248. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  3249. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  3250. }
  3251. return i
  3252. }
  3253. , o = this && this.__importDefault || function(t) {
  3254. return t && t.__esModule ? t : {
  3255. default: t
  3256. }
  3257. }
  3258. ;
  3259. Object.defineProperty(e, "__esModule", {
  3260. value: !0
  3261. });
  3262. var C = o(i(12))
  3263. , I = i(1)
  3264. , s = o(i(4))
  3265. , a = i(0)
  3266. , l = function(t) {
  3267. function e(e) {
  3268. var i = e.points
  3269. , n = e.fill
  3270. , g = void 0 === n ? "rgba(0,0,0,0)" : n
  3271. , o = e.seam
  3272. , C = void 0 === o ? "rgba(255,255,255,0)" : o
  3273. , I = e.bgColor
  3274. , s = void 0 === I ? "rgba(255,255,255,0.5)" : I
  3275. , a = e.width
  3276. , l = void 0 === a ? 6 : a
  3277. , u = e.stamWidth
  3278. , c = void 0 === u ? .5 : u
  3279. , h = e.hover
  3280. , p = r(e, ["points", "fill", "seam", "bgColor", "width", "stamWidth", "hover"])
  3281. , d = this
  3282. , f = {
  3283. fill: g,
  3284. seam: C,
  3285. width: l,
  3286. stamWidth: c
  3287. };
  3288. return h = h || A(A({}, f), {
  3289. fill: "rgba(243, 255, 0, 0.8)"
  3290. }),
  3291. (d = t.call(this, A(A({
  3292. linePoints: i,
  3293. bgColor: s,
  3294. hover: h
  3295. }, p), f)) || this).eleHover = !1,
  3296. d
  3297. }
  3298. return g(e, t),
  3299. e.prototype.grentNode = function() {
  3300. var t = this
  3301. , e = document.createElementNS(I.SVGURI, "g");
  3302. return this.nextTick((function() {
  3303. t.outLine = new C.default({
  3304. points: t.linePoints,
  3305. width: t.width,
  3306. color: t.fill,
  3307. renderer: t.renderer
  3308. }),
  3309. t.innerline = new C.default({
  3310. points: t.linePoints,
  3311. width: t.stamWidth,
  3312. color: t.seam,
  3313. renderer: t.renderer
  3314. }),
  3315. t.outLine.click = t.innerline.click = function() {
  3316. return t.changeSelect(!0)
  3317. }
  3318. ,
  3319. e.appendChild(t.outLine.real),
  3320. e.appendChild(t.innerline.real),
  3321. e.appendChild(t.linePoints[0].real),
  3322. e.appendChild(t.linePoints[1].real),
  3323. t.interceptUpdateStyle(),
  3324. t.outLine.update(),
  3325. t.innerline.update()
  3326. }
  3327. )),
  3328. this.clip1 = document.createElementNS(I.SVGURI, "path"),
  3329. this.clip2 = document.createElementNS(I.SVGURI, "path"),
  3330. this.clip3 = document.createElementNS(I.SVGURI, "path"),
  3331. this.clip4 = document.createElementNS(I.SVGURI, "path"),
  3332. e.appendChild(this.clip1),
  3333. e.appendChild(this.clip2),
  3334. e.appendChild(this.clip3),
  3335. e.appendChild(this.clip4),
  3336. e
  3337. }
  3338. ,
  3339. e.prototype.getStyle = function() {
  3340. return this.eleHover || this.select ? this.hover : {
  3341. width: this.width,
  3342. fill: this.fill,
  3343. seam: this.seam,
  3344. stamWidth: this.stamWidth
  3345. }
  3346. }
  3347. ,
  3348. e.prototype.interceptUpdateStyle = function() {
  3349. var t = this
  3350. , e = this.outLine.intercept
  3351. , i = this.innerline.intercept;
  3352. this.outLine.intercept = function(i, n) {
  3353. var g = i[0]
  3354. , A = n.width
  3355. , r = n.color;
  3356. if (g === t.outLine && (A || r)) {
  3357. var o = t.getStyle();
  3358. return {
  3359. width: o.width,
  3360. color: o.fill
  3361. }
  3362. }
  3363. return e.call(t)
  3364. }
  3365. ,
  3366. this.innerline.intercept = function(e, n) {
  3367. var g = e[0]
  3368. , A = n.width
  3369. , r = n.color;
  3370. if (g === t.innerline && (A || r)) {
  3371. var o = t.getStyle();
  3372. return {
  3373. width: o.stamWidth,
  3374. color: o.seam
  3375. }
  3376. }
  3377. return i.call(t)
  3378. }
  3379. }
  3380. ,
  3381. e.prototype.update = function() {
  3382. this.outLine && (this.outLine.width = this.outLine.width + 1e-8,
  3383. this.innerline.width = this.innerline.width + 1e-8);
  3384. var t = a.getDisVerticalLinePoints(this.attachment, this.linePoints[0], .4 * this.width * this.multiple)
  3385. , e = t[0]
  3386. , i = t[1]
  3387. , n = a.getDisVerticalLinePoints(this.attachment, this.linePoints[1], .4 * this.width * this.multiple)
  3388. , g = n[0]
  3389. , A = n[1]
  3390. , r = a.getDisVerticalLinePoints(this.attachment, this.linePoints[0], .1 * this.width * this.multiple)
  3391. , o = r[0]
  3392. , C = r[1]
  3393. , I = a.getDisVerticalLinePoints(this.attachment, this.linePoints[1], .1 * this.width * this.multiple)
  3394. , s = I[0]
  3395. , l = I[1];
  3396. isNaN(e.x) || (this.clip1.setAttribute("stroke-width", this.multiple.toString()),
  3397. this.clip1.setAttribute("d", "M " + e.x + " " + e.y + " L " + g.x + " " + g.y),
  3398. this.clip2.setAttribute("stroke-width", this.multiple.toString()),
  3399. this.clip2.setAttribute("d", "M " + i.x + " " + i.y + " L " + A.x + " " + A.y),
  3400. this.clip3.setAttribute("stroke-width", this.multiple.toString()),
  3401. this.clip3.setAttribute("d", "M " + o.x + " " + o.y + " L " + s.x + " " + s.y),
  3402. this.clip4.setAttribute("stroke-width", this.multiple.toString()),
  3403. this.clip4.setAttribute("d", "M " + C.x + " " + C.y + " L " + l.x + " " + l.y),
  3404. this.clip1.setAttribute("stroke", this.bgColor),
  3405. this.clip2.setAttribute("stroke", this.bgColor),
  3406. this.clip3.setAttribute("stroke", this.bgColor),
  3407. this.clip4.setAttribute("stroke", this.bgColor),
  3408. this.attachment.update())
  3409. }
  3410. ,
  3411. e.prototype.wallSelect = function() {
  3412. this.update && this.update()
  3413. }
  3414. ,
  3415. e.prototype.enter = function() {
  3416. this.eleHover = !0,
  3417. this.update()
  3418. }
  3419. ,
  3420. e.prototype.leave = function() {
  3421. this.eleHover = !1,
  3422. this.update()
  3423. }
  3424. ,
  3425. e.prototype.drag = function(t) {}
  3426. ,
  3427. e
  3428. }(s.default);
  3429. e.default = l
  3430. }
  3431. , function(t, e, i) {
  3432. "use strict";
  3433. var n, g = this && this.__extends || (n = function(t, e) {
  3434. return (n = Object.setPrototypeOf || {
  3435. __proto__: []
  3436. }instanceof Array && function(t, e) {
  3437. t.__proto__ = e
  3438. }
  3439. || function(t, e) {
  3440. for (var i in e)
  3441. e.hasOwnProperty(i) && (t[i] = e[i])
  3442. }
  3443. )(t, e)
  3444. }
  3445. ,
  3446. function(t, e) {
  3447. function i() {
  3448. this.constructor = t
  3449. }
  3450. n(t, e),
  3451. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  3452. new i)
  3453. }
  3454. ), A = this && this.__assign || function() {
  3455. return (A = Object.assign || function(t) {
  3456. for (var e, i = 1, n = arguments.length; i < n; i++)
  3457. for (var g in e = arguments[i])
  3458. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  3459. return t
  3460. }
  3461. ).apply(this, arguments)
  3462. }
  3463. , r = this && this.__rest || function(t, e) {
  3464. var i = {};
  3465. for (var n in t)
  3466. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  3467. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  3468. var g = 0;
  3469. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  3470. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  3471. }
  3472. return i
  3473. }
  3474. , o = this && this.__importDefault || function(t) {
  3475. return t && t.__esModule ? t : {
  3476. default: t
  3477. }
  3478. }
  3479. ;
  3480. Object.defineProperty(e, "__esModule", {
  3481. value: !0
  3482. });
  3483. var C = function(t) {
  3484. function e(e) {
  3485. var i = e.hover
  3486. , n = e.color
  3487. , g = void 0 === n ? "#fff" : n
  3488. , o = e.width
  3489. , C = void 0 === o ? 3 : o
  3490. , I = e.linecap
  3491. , s = r(e, ["hover", "color", "width", "linecap"])
  3492. , a = this
  3493. , l = {
  3494. color: g,
  3495. width: C,
  3496. linecap: I
  3497. };
  3498. return i = i || A(A({}, l), {
  3499. color: "rgba(243, 255, 0, 0.8)"
  3500. }),
  3501. (a = t.call(this, A({
  3502. width: C,
  3503. color: g
  3504. }, s)) || this).hover = i,
  3505. a.init = l,
  3506. a.disable = !1,
  3507. a.real.setAttribute("class", "variable"),
  3508. a
  3509. }
  3510. return g(e, t),
  3511. e.prototype.setHoverStyle = function() {
  3512. var t = this;
  3513. console.log(this.hover),
  3514. Object.keys(this.hover).forEach((function(e) {
  3515. return t[e] = t.hover[e]
  3516. }
  3517. ))
  3518. }
  3519. ,
  3520. e.prototype.setUnHoverStyle = function() {
  3521. var t = this;
  3522. Object.keys(this.init).forEach((function(e) {
  3523. return t[e] = t.init[e]
  3524. }
  3525. ))
  3526. }
  3527. ,
  3528. e.prototype.dragStart = function() {
  3529. this.dragStartPoints = this.points.map((function(t) {
  3530. return {
  3531. x: t.x,
  3532. y: t.y
  3533. }
  3534. }
  3535. ))
  3536. }
  3537. ,
  3538. e.prototype.drag = function(t) {
  3539. var e = this;
  3540. if (this.disable)
  3541. return !1;
  3542. this.points.forEach((function(i, n) {
  3543. i.x = e.dragStartPoints[n].x + t.x * e.multiple,
  3544. i.y = e.dragStartPoints[n].y + t.y * e.multiple
  3545. }
  3546. ))
  3547. }
  3548. ,
  3549. e.prototype.dragEnd = function() {
  3550. delete this.dragStartPoints
  3551. }
  3552. ,
  3553. e
  3554. }(o(i(10)).default);
  3555. e.default = C
  3556. }
  3557. , function(t, e, i) {
  3558. "use strict";
  3559. var n, g = this && this.__extends || (n = function(t, e) {
  3560. return (n = Object.setPrototypeOf || {
  3561. __proto__: []
  3562. }instanceof Array && function(t, e) {
  3563. t.__proto__ = e
  3564. }
  3565. || function(t, e) {
  3566. for (var i in e)
  3567. e.hasOwnProperty(i) && (t[i] = e[i])
  3568. }
  3569. )(t, e)
  3570. }
  3571. ,
  3572. function(t, e) {
  3573. function i() {
  3574. this.constructor = t
  3575. }
  3576. n(t, e),
  3577. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  3578. new i)
  3579. }
  3580. ), A = this && this.__assign || function() {
  3581. return (A = Object.assign || function(t) {
  3582. for (var e, i = 1, n = arguments.length; i < n; i++)
  3583. for (var g in e = arguments[i])
  3584. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  3585. return t
  3586. }
  3587. ).apply(this, arguments)
  3588. }
  3589. , r = this && this.__rest || function(t, e) {
  3590. var i = {};
  3591. for (var n in t)
  3592. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  3593. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  3594. var g = 0;
  3595. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  3596. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  3597. }
  3598. return i
  3599. }
  3600. , o = (this && this.__spreadArrays,
  3601. this && this.__importDefault || function(t) {
  3602. return t && t.__esModule ? t : {
  3603. default: t
  3604. }
  3605. }
  3606. );
  3607. Object.defineProperty(e, "__esModule", {
  3608. value: !0
  3609. });
  3610. var C = i(2)
  3611. , I = o(i(5))
  3612. , s = i(0)
  3613. , a = i(3)
  3614. , l = i(1)
  3615. , u = o(i(12))
  3616. , c = function(t) {
  3617. function e(e) {
  3618. var i = e.minWidth
  3619. , n = void 0 === i ? .1 : i
  3620. , g = e.points
  3621. , o = e.renderer
  3622. , C = e.top
  3623. , a = e.bottom
  3624. , l = e.angle
  3625. , c = void 0 === l ? 0 : l
  3626. , h = e.stroke
  3627. , p = void 0 === h ? "rgba(255,255,255,0.5)" : h
  3628. , d = e.width
  3629. , f = void 0 === d ? 1 : d
  3630. , y = r(e, ["minWidth", "points", "renderer", "top", "bottom", "angle", "stroke", "width"])
  3631. , v = this
  3632. , m = g.map((function(t) {
  3633. return new I.default(A(A({}, t), {
  3634. renderer: o
  3635. }))
  3636. }
  3637. ))
  3638. , b = m.map((function(t, e) {
  3639. return new u.default({
  3640. points: [m[e], m[e === m.length - 1 ? 0 : e + 1]],
  3641. renderer: o,
  3642. width: f,
  3643. color: p
  3644. })
  3645. }
  3646. ));
  3647. (v = t.call(this, A(A({}, y), {
  3648. points: m,
  3649. lines: b,
  3650. renderer: o,
  3651. angle: c,
  3652. stroke: p,
  3653. width: f,
  3654. fill: "rgba(0,0,0,0)"
  3655. })) || this).paths = b,
  3656. v.points = m,
  3657. v.zIndex = 1,
  3658. v.minWidth = n,
  3659. v.stop = !0;
  3660. var x = [];
  3661. return Object.defineProperty(v, "movePoints", {
  3662. get: function() {
  3663. return x
  3664. },
  3665. set: function(t) {
  3666. x = t,
  3667. t && t.length >= 2 ? this.moveLineDis = s.lineDis({
  3668. points: x
  3669. }) : delete this.moveLineDis
  3670. }
  3671. }),
  3672. v.real.setAttribute("class", "variable"),
  3673. Object.defineProperty(v, "top", {
  3674. get: function() {
  3675. return C
  3676. },
  3677. set: function(t) {
  3678. C = t,
  3679. this.wallPos && this.wallPos()
  3680. }
  3681. }),
  3682. Object.defineProperty(v, "bottom", {
  3683. get: function() {
  3684. return a
  3685. },
  3686. set: function(t) {
  3687. a = t,
  3688. this.wallPos && this.wallPos()
  3689. }
  3690. }),
  3691. v
  3692. }
  3693. return g(e, t),
  3694. e.prototype.setHoverStyle = function() {
  3695. this.fill = "rgba(243, 255, 0, 0.8)"
  3696. }
  3697. ,
  3698. e.prototype.setUnHoverStyle = function() {
  3699. this.fill = "rgba(243, 255, 0, 0)"
  3700. }
  3701. ,
  3702. e.prototype.rotate = function(t) {
  3703. var e = this;
  3704. if (t === this.angle)
  3705. return !1;
  3706. var i = s.faceRotate(this.points, t - this.angle);
  3707. return !!this.check(i) && (this.stop = !1,
  3708. this.points.forEach((function(t, e) {
  3709. t.x = i[e].x,
  3710. t.y = i[e].y
  3711. }
  3712. )),
  3713. this.nextTick((function() {
  3714. return e.stop = !0
  3715. }
  3716. )),
  3717. !0)
  3718. }
  3719. ,
  3720. e.prototype.grentNode = function() {
  3721. var t = this
  3722. , e = document.createElementNS(l.SVGURI, "g");
  3723. return this.wrapPath = document.createElementNS(l.SVGURI, "path"),
  3724. e.appendChild(this.wrapPath),
  3725. this.nextTick((function() {
  3726. t.lines.forEach((function(i) {
  3727. i.changeSelect = function(e) {
  3728. e && t.changeSelect(e)
  3729. }
  3730. ,
  3731. i.update(),
  3732. e.appendChild(i.real)
  3733. }
  3734. ))
  3735. }
  3736. )),
  3737. e
  3738. }
  3739. ,
  3740. e.prototype.update = function() {
  3741. var t = this;
  3742. this.wrapPath && (this.wrapPath.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  3743. this.wrapPath.setAttribute("d", "M " + this.points.map((function(t) {
  3744. return t.x + " " + t.y
  3745. }
  3746. )).join(" L ") + " z"),
  3747. this.wrapPath.setAttribute("fill", this.fill),
  3748. this.wrapPath.setAttribute("stroke", this.stroke)),
  3749. this.lines.forEach((function(e) {
  3750. e.real.setAttribute("stroke", t.stroke)
  3751. }
  3752. ))
  3753. }
  3754. ,
  3755. e.prototype.checkWidth = function(t) {
  3756. var e = this;
  3757. return void 0 === t && (t = this.points),
  3758. !t.some((function(i, n) {
  3759. var g = t[n === t.length - 1 ? 0 : n + 1];
  3760. return s.lineDis({
  3761. points: [i, g]
  3762. }) <= e.minWidth
  3763. }
  3764. ))
  3765. }
  3766. ,
  3767. e.prototype.qualified = function(t, e) {
  3768. void 0 === t && (t = this.points),
  3769. void 0 === e && (e = this.room);
  3770. var i = this.renderer.processing.getRoomEles(e);
  3771. return !!s.isFaceContain(i.ground, t) && !i.hole.some((function(e) {
  3772. return s.isFaceIntersect(e, t) || s.isFaceContain(e, t) || s.isFaceContain(t, e)
  3773. }
  3774. ))
  3775. }
  3776. ,
  3777. e.prototype.check = function(t) {
  3778. return void 0 === t && (t = this.points),
  3779. this.checkWidth(t)
  3780. }
  3781. ,
  3782. e.prototype.intercept = function(t, e, i) {
  3783. e.x,
  3784. e.y;
  3785. var n = e.angle;
  3786. return !a.type.isNumber(n) || this.rotate(n)
  3787. }
  3788. ,
  3789. e.prototype.directUpdate = function(t) {
  3790. var e = this;
  3791. t.forEach((function(t, i) {
  3792. e.points[i].__state.direct = !0,
  3793. e.points[i].x = t.x,
  3794. e.points[i].y = t.y,
  3795. e.points[i].__state.direct = !1,
  3796. e.points[i].update()
  3797. }
  3798. )),
  3799. this.lines.forEach((function(t) {
  3800. t.update()
  3801. }
  3802. )),
  3803. this.update(),
  3804. this.wallPos && this.wallPos(),
  3805. this.fromAsync && this.fromAsync()
  3806. }
  3807. ,
  3808. e.prototype.dragStart = function(t) {
  3809. if (this.lines.some((function(e) {
  3810. return e.real === t.target
  3811. }
  3812. ))) {
  3813. var e = this.lines.find((function(e) {
  3814. return e.real === t.target
  3815. }
  3816. ));
  3817. this.moveLineDis = s.lineDis(e)
  3818. } else
  3819. this.initPoints = this.points.map((function(t) {
  3820. return {
  3821. x: t.x,
  3822. y: t.y
  3823. }
  3824. }
  3825. ))
  3826. }
  3827. ,
  3828. e.prototype.drag = function(t) {
  3829. var e = this;
  3830. if (this.initPoints) {
  3831. this.stop = !1;
  3832. var i = this.points.map((function(i, n) {
  3833. return {
  3834. x: e.initPoints[n].x + t.x * e.multiple,
  3835. y: e.initPoints[n].y + t.y * e.multiple
  3836. }
  3837. }
  3838. ));
  3839. setTimeout((function() {
  3840. e.directUpdate(i)
  3841. }
  3842. ))
  3843. }
  3844. }
  3845. ,
  3846. e.prototype.dragEnd = function() {
  3847. var t = this;
  3848. this.nextTick((function() {
  3849. t.stop = !0,
  3850. delete t.moveLineDis
  3851. }
  3852. )),
  3853. delete this.initPoints
  3854. }
  3855. ,
  3856. e.prototype.destroy = function() {
  3857. this.points.forEach((function(t) {
  3858. return t.destroy()
  3859. }
  3860. )),
  3861. this.room = null,
  3862. this.points = null,
  3863. this.update = null,
  3864. t.prototype.destroy.call(this)
  3865. }
  3866. ,
  3867. e
  3868. }(C.CADElement);
  3869. e.default = c
  3870. }
  3871. , function(t, e, i) {
  3872. "use strict";
  3873. var n, g = this && this.__extends || (n = function(t, e) {
  3874. return (n = Object.setPrototypeOf || {
  3875. __proto__: []
  3876. }instanceof Array && function(t, e) {
  3877. t.__proto__ = e
  3878. }
  3879. || function(t, e) {
  3880. for (var i in e)
  3881. e.hasOwnProperty(i) && (t[i] = e[i])
  3882. }
  3883. )(t, e)
  3884. }
  3885. ,
  3886. function(t, e) {
  3887. function i() {
  3888. this.constructor = t
  3889. }
  3890. n(t, e),
  3891. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  3892. new i)
  3893. }
  3894. ), A = this && this.__assign || function() {
  3895. return (A = Object.assign || function(t) {
  3896. for (var e, i = 1, n = arguments.length; i < n; i++)
  3897. for (var g in e = arguments[i])
  3898. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  3899. return t
  3900. }
  3901. ).apply(this, arguments)
  3902. }
  3903. , r = this && this.__awaiter || function(t, e, i, n) {
  3904. return new (i || (i = Promise))((function(g, A) {
  3905. function r(t) {
  3906. try {
  3907. C(n.next(t))
  3908. } catch (t) {
  3909. A(t)
  3910. }
  3911. }
  3912. function o(t) {
  3913. try {
  3914. C(n.throw(t))
  3915. } catch (t) {
  3916. A(t)
  3917. }
  3918. }
  3919. function C(t) {
  3920. var e;
  3921. t.done ? g(t.value) : (e = t.value,
  3922. e instanceof i ? e : new i((function(t) {
  3923. t(e)
  3924. }
  3925. ))).then(r, o)
  3926. }
  3927. C((n = n.apply(t, e || [])).next())
  3928. }
  3929. ))
  3930. }
  3931. , o = this && this.__generator || function(t, e) {
  3932. var i, n, g, A, r = {
  3933. label: 0,
  3934. sent: function() {
  3935. if (1 & g[0])
  3936. throw g[1];
  3937. return g[1]
  3938. },
  3939. trys: [],
  3940. ops: []
  3941. };
  3942. return A = {
  3943. next: o(0),
  3944. throw: o(1),
  3945. return: o(2)
  3946. },
  3947. "function" == typeof Symbol && (A[Symbol.iterator] = function() {
  3948. return this
  3949. }
  3950. ),
  3951. A;
  3952. function o(A) {
  3953. return function(o) {
  3954. return function(A) {
  3955. if (i)
  3956. throw new TypeError("Generator is already executing.");
  3957. for (; r; )
  3958. try {
  3959. if (i = 1,
  3960. n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n),
  3961. 0) : n.next) && !(g = g.call(n, A[1])).done)
  3962. return g;
  3963. switch (n = 0,
  3964. g && (A = [2 & A[0], g.value]),
  3965. A[0]) {
  3966. case 0:
  3967. case 1:
  3968. g = A;
  3969. break;
  3970. case 4:
  3971. return r.label++,
  3972. {
  3973. value: A[1],
  3974. done: !1
  3975. };
  3976. case 5:
  3977. r.label++,
  3978. n = A[1],
  3979. A = [0];
  3980. continue;
  3981. case 7:
  3982. A = r.ops.pop(),
  3983. r.trys.pop();
  3984. continue;
  3985. default:
  3986. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  3987. r = 0;
  3988. continue
  3989. }
  3990. if (3 === A[0] && (!g || A[1] > g[0] && A[1] < g[3])) {
  3991. r.label = A[1];
  3992. break
  3993. }
  3994. if (6 === A[0] && r.label < g[1]) {
  3995. r.label = g[1],
  3996. g = A;
  3997. break
  3998. }
  3999. if (g && r.label < g[2]) {
  4000. r.label = g[2],
  4001. r.ops.push(A);
  4002. break
  4003. }
  4004. g[2] && r.ops.pop(),
  4005. r.trys.pop();
  4006. continue
  4007. }
  4008. A = e.call(t, r)
  4009. } catch (t) {
  4010. A = [6, t],
  4011. n = 0
  4012. } finally {
  4013. i = g = 0
  4014. }
  4015. if (5 & A[0])
  4016. throw A[1];
  4017. return {
  4018. value: A[0] ? A[1] : void 0,
  4019. done: !0
  4020. }
  4021. }([A, o])
  4022. }
  4023. }
  4024. }
  4025. , C = this && this.__spreadArrays || function() {
  4026. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  4027. t += arguments[e].length;
  4028. var n = Array(t)
  4029. , g = 0;
  4030. for (e = 0; e < i; e++)
  4031. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  4032. g++)
  4033. n[g] = A[r];
  4034. return n
  4035. }
  4036. , I = this && this.__importDefault || function(t) {
  4037. return t && t.__esModule ? t : {
  4038. default: t
  4039. }
  4040. }
  4041. ;
  4042. Object.defineProperty(e, "__esModule", {
  4043. value: !0
  4044. });
  4045. var s = I(i(33))
  4046. , a = I(i(4))
  4047. , l = I(i(7))
  4048. , u = i(1)
  4049. , c = i(0)
  4050. , h = function(t) {
  4051. function e() {
  4052. return null !== t && t.apply(this, arguments) || this
  4053. }
  4054. return g(e, t),
  4055. e.prototype.setHoverStyle = function() {
  4056. this.color = this.hover.color,
  4057. this.width = this.hover.width,
  4058. this.linecap = this.hover.linecap
  4059. }
  4060. ,
  4061. e.prototype.setUnHoverStyle = function() {
  4062. this.color = this.init.color,
  4063. this.width = this.init.width,
  4064. this.linecap = this.init.linecap
  4065. }
  4066. ,
  4067. e.prototype.dragStart = function() {
  4068. this.clones = [],
  4069. this.bkpoints = this.points.map((function(t) {
  4070. return {
  4071. x: t.x,
  4072. y: t.y
  4073. }
  4074. }
  4075. )),
  4076. this.startPoint = this.renderer.screenToRealPoint({
  4077. x: 0,
  4078. y: 0
  4079. }),
  4080. this.bkverctor = c.lineVector(this)
  4081. }
  4082. ,
  4083. e.prototype.drag = function(t) {
  4084. var e = this.renderer.screenToRealPoint(t);
  4085. this.exterior || this.changePos({
  4086. x: e.x - this.startPoint.x,
  4087. y: e.y - this.startPoint.y
  4088. })
  4089. }
  4090. ,
  4091. e.prototype.dragEnd = function() {
  4092. return r(this, void 0, void 0, (function() {
  4093. var t, e = this;
  4094. return o(this, (function(i) {
  4095. return (t = this.renderer.processing).lines.forEach((function(t) {
  4096. t.ele.__state.direct = !1
  4097. }
  4098. )),
  4099. t.points.forEach((function(t) {
  4100. t.ele.__state.direct = !1
  4101. }
  4102. )),
  4103. setTimeout((function() {
  4104. e.renderer.processing.depLines()
  4105. }
  4106. ), 500),
  4107. [2]
  4108. }
  4109. ))
  4110. }
  4111. ))
  4112. }
  4113. ,
  4114. e.prototype.directUpdate = function(t) {
  4115. this.__state.direct = !0;
  4116. var e = C(this.points);
  4117. e.forEach((function(t) {
  4118. return t.__state.direct = !0
  4119. }
  4120. )),
  4121. t(),
  4122. (e = Array.from(new Set(e.concat(this.points)))).forEach((function(t) {
  4123. return t.__state.direct = !1
  4124. }
  4125. )),
  4126. this.__state.direct = !1,
  4127. e.concat(e).forEach((function(t) {
  4128. return t.update()
  4129. }
  4130. )),
  4131. this.wallLines.filter((function(t) {
  4132. return t.points.some((function(t) {
  4133. return ~e.indexOf(t)
  4134. }
  4135. ))
  4136. }
  4137. )).forEach((function(t) {
  4138. t.update(),
  4139. t.points[0].wallPos && t.points[0].wallPos(),
  4140. t.points[1].wallPos && t.points[1].wallPos(),
  4141. t.wallPos && t.wallPos(),
  4142. t.fromAsync && t.fromAsync(),
  4143. t.updateJoin()
  4144. }
  4145. ))
  4146. }
  4147. ,
  4148. e.prototype.grentNewJoinLine = function(t, e) {
  4149. var i, n = this, g = this.renderer.processing, r = g.points.find((function(e) {
  4150. return e.ele === t
  4151. }
  4152. )), o = g.lines.find((function(t) {
  4153. return t.ele === n
  4154. }
  4155. )), I = g.addPoint(A({
  4156. id: Math.max.apply(Math, g.points.map((function(t) {
  4157. return t.id
  4158. }
  4159. ))) + 1
  4160. }, e));
  4161. g.data.vertex.push({
  4162. id: I.id,
  4163. x: e.x,
  4164. y: e.y
  4165. });
  4166. var s = o.ele
  4167. , a = C(s.points);
  4168. return a[s.points.indexOf(t)] = I.ele,
  4169. s.directUpdate((function() {
  4170. s.points = a,
  4171. s.listenPointDrag(a)
  4172. }
  4173. )),
  4174. s.update(),
  4175. i = g.cad.increase(u.SEFTLINE, {
  4176. id: g.getNewLineId(),
  4177. p1: I.id,
  4178. p2: r.id,
  4179. isOut: s.isOut,
  4180. border: s.border,
  4181. exterior: s.exterior
  4182. }).obj,
  4183. this.wallLines.filter((function(t) {
  4184. return ~t.points.indexOf(n.points[0]) || ~t.points.indexOf(n.points[1])
  4185. }
  4186. )).forEach((function(t) {
  4187. t.update(),
  4188. t.points[0].wallPos && t.points[0].wallPos(),
  4189. t.points[1].wallPos && t.points[1].wallPos(),
  4190. t.wallPos && t.wallPos(),
  4191. t.fromAsync && t.fromAsync()
  4192. }
  4193. )),
  4194. i
  4195. }
  4196. ,
  4197. e.prototype.getPointJoinLines = function(t) {
  4198. for (var e = this, i = this.wallLines.filter((function(i) {
  4199. return ~i.points.indexOf(t) && !(~e.points.indexOf(i.points[0]) && ~e.points.indexOf(i.points[1]))
  4200. }
  4201. )), n = [], g = function(t) {
  4202. n.some((function(e) {
  4203. return ~e.points.indexOf(i[t].points[0]) && ~e.points.indexOf(i[t].points[1])
  4204. }
  4205. )) || n.push(i[t])
  4206. }, A = 0; A < i.length; A++)
  4207. g(A);
  4208. return n
  4209. }
  4210. ,
  4211. e.prototype.updatePoint = function(t, e, i) {
  4212. var n = this.getPointJoinLines(t)
  4213. , g = n[0]
  4214. , r = c.lineVector(this)
  4215. , o = Number(!this.points.indexOf(t))
  4216. , C = this.points[o]
  4217. , I = !1;
  4218. if (g) {
  4219. var s = c.lineVector(g) || g.lineVerctor
  4220. , a = !1;
  4221. isNaN(s.x) && !isNaN(r.x) && (I = !0);
  4222. var l = this.points.indexOf(t)
  4223. , u = n.every((function(t) {
  4224. var e = c.lineVector(t);
  4225. return Math.abs(Math.abs(e.x) - Math.abs(s.x)) < .2 && Math.abs(Math.abs(e.y) - Math.abs(s.y)) < .2
  4226. }
  4227. ))
  4228. , h = Math.abs(Math.abs(s.x) - Math.abs(r.x)) < .2 && Math.abs(Math.abs(s.y) - Math.abs(r.y)) < .2 || n.length > 1 && !u;
  4229. if (!~this.clones.indexOf(l) && (h || I)) {
  4230. if (!I && n.length > 1)
  4231. g = n.find((function(t) {
  4232. var e = c.lineVector(t);
  4233. return e.x - r.x < .1 && e.y - r.y < .1
  4234. }
  4235. )) || n.find((function(t) {
  4236. var e = c.lineVector(t)
  4237. , i = Math.abs(e.x - r.x)
  4238. , n = Math.abs(e.y - r.y);
  4239. return i > .1 && i < .9 || n > .1 && n < .9
  4240. }
  4241. )) || n[0],
  4242. s = g.lineVector || c.lineVector(g);
  4243. var p = A({}, e);
  4244. Math.abs(r.x) > Math.abs(r.y) ? p.x = t.x : p.y = t.y,
  4245. I && (e = p),
  4246. p.x === t.x && p.y === t.y || (g = this.grentNewJoinLine(t, p.x === t.x && p.y === t.y ? e : p),
  4247. a = !0,
  4248. this.clones.push(l),
  4249. t = g.points[Number(!g.points.indexOf(t))],
  4250. s = c.lineVector(g),
  4251. g.lineVerctor = s)
  4252. }
  4253. if (e = c.getVectorPosPoint(s, g.points[0], e),
  4254. g.lineVector = s,
  4255. !a && i && !I && (Math.abs(Math.abs(s.x) - Math.abs(r.x)) < .9 || Math.abs(Math.abs(s.y) - Math.abs(r.y)) < .9)) {
  4256. var d = c.segmentsIntrFine(g, {
  4257. points: [C, {
  4258. x: C.x + 1e4 * this.bkverctor.x,
  4259. y: C.y + 1e4 * this.bkverctor.y
  4260. }]
  4261. });
  4262. d && (e = d)
  4263. }
  4264. } else {
  4265. if (this.getPointJoinLines(C).length) {
  4266. var f = this.points.indexOf(t);
  4267. e = {
  4268. x: this.bkpoints[f].x + this.points[o].x - this.bkpoints[o].x,
  4269. y: this.bkpoints[f].y + this.points[o].y - this.bkpoints[o].y
  4270. }
  4271. }
  4272. g = this
  4273. }
  4274. var y = c.lineVector({
  4275. points: [C, e]
  4276. });
  4277. return !(isNaN(e.x) || isNaN(e.y) || i && (Math.abs(Math.abs(this.bkverctor.x) - Math.abs(y.x)) > .05 || Math.abs(Math.abs(this.bkverctor.y) - Math.abs(y.y)) > .05)) && (t.__state.direct = !0,
  4278. t.x = e.x,
  4279. t.y = e.y,
  4280. t.update(),
  4281. t.__state.direct = !1,
  4282. g)
  4283. }
  4284. ,
  4285. e.prototype.getVerPos = function(t) {
  4286. var e = c.verticalLine(this);
  4287. if (0 === e.x)
  4288. return {
  4289. x: 0,
  4290. y: t.y
  4291. };
  4292. if (0 === e.y)
  4293. return {
  4294. x: t.x,
  4295. y: 0
  4296. };
  4297. var i = {
  4298. points: [{
  4299. x: -100 * e.x,
  4300. y: -100 * e.y
  4301. }, {
  4302. x: 100 * e.x,
  4303. y: 100 * e.y
  4304. }]
  4305. }
  4306. , n = c.pointLineDis(i, t)
  4307. , g = Math.sqrt(Math.pow(t.x, 2) + Math.pow(t.y, 2) - Math.pow(n, 2))
  4308. , A = c.getDisPointLinePoints(i, {
  4309. x: 0,
  4310. y: 0
  4311. }, g)
  4312. , r = A[0]
  4313. , o = A[1];
  4314. return c.lineDis({
  4315. points: [r, t]
  4316. }) > c.lineDis({
  4317. points: [o, t]
  4318. }) ? o : r
  4319. }
  4320. ,
  4321. e.prototype.checkJoinArch = function() {
  4322. var t = a.default.attaArch.get(this);
  4323. if (!t || 0 === t.length)
  4324. return !1;
  4325. var e = t.map((function(t) {
  4326. return [t.linePoints[0].getLineInsertPoint(), t.linePoints[1].getLineInsertPoint()]
  4327. }
  4328. ));
  4329. return t.some((function(t, i) {
  4330. 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
  4331. }
  4332. ))
  4333. }
  4334. ,
  4335. e.prototype.updateArchs = function() {
  4336. var t = a.default.attaArch.get(this);
  4337. if (t && 0 !== t.length) {
  4338. var e = t.map((function(t) {
  4339. return t.lineChange().points
  4340. }
  4341. ));
  4342. t.forEach((function(t, i) {
  4343. if (t.__state.direct = !0,
  4344. t.linePoints[0].__state.direct = !0,
  4345. t.linePoints[1].__state.direct = !0,
  4346. t.linePoints[0].x = e[i][0].x,
  4347. t.linePoints[0].y = e[i][0].y,
  4348. t.linePoints[1].x = e[i][1].x,
  4349. t.linePoints[1].y = e[i][1].y,
  4350. t.linePoints[0].update(),
  4351. t.linePoints[1].update(),
  4352. t.linePoints[0].__state.direct = !1,
  4353. t.linePoints[1].__state.direct = !1,
  4354. t instanceof l.default) {
  4355. var n = t.getPeripheral();
  4356. t.points[2].__state.direct = !0,
  4357. t.points[3].__state.direct = !0,
  4358. t.points[2].x = n[0].x,
  4359. t.points[2].y = n[0].y,
  4360. t.points[3].x = n[1].x,
  4361. t.points[3].y = n[1].y,
  4362. t.points[2].update(),
  4363. t.points[3].update(),
  4364. t.points[2].__state.direct = !1,
  4365. t.points[3].__state.direct = !1
  4366. }
  4367. t.__state.direct = !1,
  4368. t.dragEnd(),
  4369. t.update()
  4370. }
  4371. ))
  4372. }
  4373. }
  4374. ,
  4375. e.prototype.changePos = function(t) {
  4376. var e = this;
  4377. 0 === t.x && 0 === t.y || (t = this.getVerPos(t)),
  4378. this.directUpdate((function() {
  4379. e.points.map((function(t) {
  4380. return {
  4381. x: t.x,
  4382. y: t.y
  4383. }
  4384. }
  4385. ));
  4386. var i = [0, 1]
  4387. , n = e.getPointJoinLines(e.points[0])
  4388. , g = e.getPointJoinLines(e.points[1])
  4389. , A = (e.points.map((function(t) {
  4390. return {
  4391. x: t.x,
  4392. y: t.y
  4393. }
  4394. }
  4395. )),
  4396. !0);
  4397. if (0 === n.length)
  4398. i = [1, 0];
  4399. else if (0 !== g.length) {
  4400. i = c.getPointCoordDistance(e.bkverctor, c.lineVector(n[0])) > c.getPointCoordDistance(e.bkverctor, c.lineVector(g[0])) ? [0, 1] : [1, 0]
  4401. }
  4402. i.forEach((function(i, n) {
  4403. A && (e.updatePoint(e.points[i], {
  4404. x: e.bkpoints[i].x + t.x,
  4405. y: e.bkpoints[i].y + t.y
  4406. }, !!n) || (A = !1))
  4407. }
  4408. )),
  4409. e.renderer.processing.lines.filter((function(t) {
  4410. return ~t.ele.points.indexOf(e.points[0]) || ~t.ele.points.indexOf(e.points[1])
  4411. }
  4412. )).forEach((function(t) {
  4413. t.ele.updateArchs()
  4414. }
  4415. ))
  4416. }
  4417. ))
  4418. }
  4419. ,
  4420. e.prototype.correct = function() {
  4421. for (var t = this.renderer.processing, e = t.points.map((function(t) {
  4422. return t.ele
  4423. }
  4424. )), i = t.lines.map((function(t) {
  4425. return t.ele
  4426. }
  4427. )), n = i.filter((function(t) {
  4428. return ~e.indexOf(t.points[0]) || ~e.indexOf(t.points[1])
  4429. }
  4430. )), g = function(t, e, i) {
  4431. return ~t.points.indexOf(e) && ~t.points.indexOf(i)
  4432. }, A = function(A) {
  4433. var o = i[A]
  4434. , I = e.find((function(t) {
  4435. return !~o.points.indexOf(t) && (c.lineDis({
  4436. points: [o.points[0], t]
  4437. }) < .02 || c.lineDis({
  4438. points: [o.points[1], t]
  4439. }) < .02)
  4440. }
  4441. ));
  4442. if (!I)
  4443. return "continue";
  4444. var s = 0;
  4445. if (i.some((function(t) {
  4446. return g(t, I, o.points[0])
  4447. }
  4448. )))
  4449. s = 0;
  4450. else {
  4451. if (!i.some((function(t) {
  4452. return g(t, I, o.points[1])
  4453. }
  4454. )))
  4455. return "continue";
  4456. s = 1
  4457. }
  4458. var a = o.points[s];
  4459. return n.filter((function(t) {
  4460. return ~t.points.indexOf(a)
  4461. }
  4462. )).forEach((function(t) {
  4463. var e = t.points.indexOf(a)
  4464. , i = t.points
  4465. , n = C(i);
  4466. n[e] = I,
  4467. t.directUpdate((function() {
  4468. t.points = n,
  4469. t.listenPointDrag(n)
  4470. }
  4471. ))
  4472. }
  4473. )),
  4474. n.filter((function(t) {
  4475. return ~t.points.indexOf(I) && ~t.points.indexOf(a)
  4476. }
  4477. )).forEach((function(e) {
  4478. t.lines.splice(t.lines.findIndex((function(t) {
  4479. return t.ele === e
  4480. }
  4481. )), 1),
  4482. e.destroy()
  4483. }
  4484. )),
  4485. a.destroy(),
  4486. {
  4487. value: r.correct()
  4488. }
  4489. }, r = this, o = 0; o < i.length; o++) {
  4490. var I = A(o);
  4491. if ("object" == typeof I)
  4492. return I.value
  4493. }
  4494. }
  4495. ,
  4496. e
  4497. }(s.default);
  4498. e.default = h
  4499. }
  4500. , function(t, e, i) {
  4501. "use strict";
  4502. var n, g = this && this.__extends || (n = function(t, e) {
  4503. return (n = Object.setPrototypeOf || {
  4504. __proto__: []
  4505. }instanceof Array && function(t, e) {
  4506. t.__proto__ = e
  4507. }
  4508. || function(t, e) {
  4509. for (var i in e)
  4510. e.hasOwnProperty(i) && (t[i] = e[i])
  4511. }
  4512. )(t, e)
  4513. }
  4514. ,
  4515. function(t, e) {
  4516. function i() {
  4517. this.constructor = t
  4518. }
  4519. n(t, e),
  4520. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  4521. new i)
  4522. }
  4523. ), A = this && this.__assign || function() {
  4524. return (A = Object.assign || function(t) {
  4525. for (var e, i = 1, n = arguments.length; i < n; i++)
  4526. for (var g in e = arguments[i])
  4527. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  4528. return t
  4529. }
  4530. ).apply(this, arguments)
  4531. }
  4532. , r = this && this.__rest || function(t, e) {
  4533. var i = {};
  4534. for (var n in t)
  4535. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  4536. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  4537. var g = 0;
  4538. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  4539. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  4540. }
  4541. return i
  4542. }
  4543. , o = this && this.__importDefault || function(t) {
  4544. return t && t.__esModule ? t : {
  4545. default: t
  4546. }
  4547. }
  4548. ;
  4549. Object.defineProperty(e, "__esModule", {
  4550. value: !0
  4551. });
  4552. var C = o(i(8))
  4553. , I = i(1)
  4554. , s = i(0)
  4555. , a = function(t) {
  4556. function e(e) {
  4557. var i = e.points
  4558. , n = e.foorWidth
  4559. , g = void 0 === n ? 6 : n
  4560. , o = e.foorColor
  4561. , C = void 0 === o ? "rgba(255,255,255,0.5)" : o
  4562. , I = e.clipColor
  4563. , s = void 0 === I ? "rgba(0,0,0,1)" : I
  4564. , a = (e.linecap,
  4565. e.within)
  4566. , l = void 0 === a ? 0 : a
  4567. , u = r(e, ["points", "foorWidth", "foorColor", "clipColor", "linecap", "within"])
  4568. , c = this;
  4569. return i[0].fillColor = "rgba(0,0,0,0)",
  4570. i[1].fillColor = "rgba(0,0,0,0)",
  4571. (c = t.call(this, A(A({}, u), {
  4572. points: i,
  4573. foorWidth: g,
  4574. foorColor: C,
  4575. within: l
  4576. })) || this).clipColor = s,
  4577. c
  4578. }
  4579. return g(e, t),
  4580. e.prototype.setHoverStyle = function() {
  4581. this.clipColor = "rgba(243, 255, 0, 0.8)",
  4582. this.foorColor = "rgba(243, 255, 0, 0.8)"
  4583. }
  4584. ,
  4585. e.prototype.setUnHoverStyle = function() {
  4586. this.clipColor = "rgba(0,0,0,1)",
  4587. this.foorColor = "rgba(255,255,255,0.5)"
  4588. }
  4589. ,
  4590. e.prototype.grentNode = function() {
  4591. var t = this
  4592. , e = document.createElementNS(I.SVGURI, "g");
  4593. return this.clip1 = document.createElementNS(I.SVGURI, "path"),
  4594. e.appendChild(this.clip1),
  4595. this.clip2 = document.createElementNS(I.SVGURI, "path"),
  4596. e.appendChild(this.clip2),
  4597. this.path1 = document.createElementNS(I.SVGURI, "path"),
  4598. e.appendChild(this.path1),
  4599. this.path2 = document.createElementNS(I.SVGURI, "path"),
  4600. e.appendChild(this.path2),
  4601. this.left = document.createElementNS(I.SVGURI, "rect"),
  4602. this.left.setAttribute("width", "0.00001"),
  4603. this.left.setAttribute("height", "0.00001"),
  4604. e.appendChild(this.left),
  4605. this.right = document.createElementNS(I.SVGURI, "rect"),
  4606. this.right.setAttribute("width", "0.00001"),
  4607. this.right.setAttribute("height", "0.00001"),
  4608. e.appendChild(this.right),
  4609. this.nextTick((function() {
  4610. e.appendChild(t.linePoints[0].real),
  4611. e.appendChild(t.linePoints[1].real),
  4612. t.linePoints.forEach((function(e) {
  4613. e.changeSelect = function(e) {
  4614. e && t.changeSelect(e)
  4615. }
  4616. }
  4617. ))
  4618. }
  4619. )),
  4620. e
  4621. }
  4622. ,
  4623. e.prototype.update = function() {
  4624. var t, e, i, n, g = this.foorWidth * this.multiple, A = s.lineDis({
  4625. points: this.linePoints
  4626. }), r = 2 * this.multiple, o = .6 * A;
  4627. if (this.within ? (i = (t = this.linePoints)[0],
  4628. n = t[1]) : (n = (e = this.linePoints)[0],
  4629. i = e[1]),
  4630. !isNaN(i.x)) {
  4631. var C = s.getLineDisSelectPoint({
  4632. points: this.linePoints
  4633. }, i, o)
  4634. , I = s.getLineDisSelectPoint({
  4635. points: this.linePoints
  4636. }, i, o - r)
  4637. , a = s.getLineDisSelectPoint({
  4638. points: this.linePoints
  4639. }, n, o)
  4640. , l = s.getLineDisSelectPoint({
  4641. points: this.linePoints
  4642. }, n, o - r)
  4643. , u = s.verticalLine({
  4644. points: this.linePoints
  4645. })
  4646. , c = g / 2
  4647. , h = (g - c) / 2 - 1e-4 * this.multiple
  4648. , p = i.x + u.x * h
  4649. , d = i.y + u.y * h
  4650. , f = C.x + u.x * h
  4651. , y = C.y + u.y * h
  4652. , v = I.x + u.x * h
  4653. , m = I.y + u.y * h
  4654. , b = n.x - u.x * h
  4655. , x = n.y - u.y * h
  4656. , _ = a.x - u.x * h
  4657. , w = a.y - u.y * h
  4658. , P = l.x - u.x * h
  4659. , O = l.y - u.y * h;
  4660. this.path1.setAttribute("stroke", this.foorColor),
  4661. this.path1.setAttribute("stroke-width", c.toString()),
  4662. this.path1.setAttribute("d", "M " + p + " " + d + " L " + f + " " + y),
  4663. this.clip1.setAttribute("stroke", this.clipColor),
  4664. this.clip1.setAttribute("stroke-width", (c - this.bwithin * this.multiple).toString()),
  4665. this.clip1.setAttribute("d", "M " + p + " " + d + " L " + v + " " + m),
  4666. this.path2.setAttribute("stroke", this.foorColor),
  4667. this.path2.setAttribute("stroke-width", c.toString()),
  4668. this.path2.setAttribute("d", "M " + b + " " + x + " L " + _ + " " + w),
  4669. this.clip2.setAttribute("stroke", this.clipColor),
  4670. this.clip2.setAttribute("stroke-width", (c - this.bwithin * this.multiple).toString()),
  4671. this.clip2.setAttribute("d", "M " + b + " " + x + " L " + P + " " + O),
  4672. this.left.setAttribute("x", i.x.toString()),
  4673. this.left.setAttribute("y", i.y.toString()),
  4674. this.left.setAttribute("stroke-width", g.toString()),
  4675. this.left.setAttribute("stroke", "rgba(0,0,0,0)"),
  4676. this.right.setAttribute("x", n.x.toString()),
  4677. this.right.setAttribute("y", n.y.toString()),
  4678. this.right.setAttribute("stroke-width", g.toString()),
  4679. this.right.setAttribute("stroke", "rgba(0,0,0,0)"),
  4680. this.attachment.update()
  4681. }
  4682. }
  4683. ,
  4684. e
  4685. }(C.default);
  4686. e.default = a
  4687. }
  4688. , function(t, e, i) {
  4689. "use strict";
  4690. var n, g = this && this.__extends || (n = function(t, e) {
  4691. return (n = Object.setPrototypeOf || {
  4692. __proto__: []
  4693. }instanceof Array && function(t, e) {
  4694. t.__proto__ = e
  4695. }
  4696. || function(t, e) {
  4697. for (var i in e)
  4698. e.hasOwnProperty(i) && (t[i] = e[i])
  4699. }
  4700. )(t, e)
  4701. }
  4702. ,
  4703. function(t, e) {
  4704. function i() {
  4705. this.constructor = t
  4706. }
  4707. n(t, e),
  4708. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  4709. new i)
  4710. }
  4711. ), A = this && this.__importDefault || function(t) {
  4712. return t && t.__esModule ? t : {
  4713. default: t
  4714. }
  4715. }
  4716. ;
  4717. Object.defineProperty(e, "__esModule", {
  4718. value: !0
  4719. });
  4720. var r = A(i(8))
  4721. , o = i(1)
  4722. , C = i(0)
  4723. , I = function(t) {
  4724. function e(e) {
  4725. return t.call(this, e) || this
  4726. }
  4727. return g(e, t),
  4728. e.prototype.grentNode = function() {
  4729. var t = this
  4730. , e = document.createElementNS(o.SVGURI, "g");
  4731. return this.arc1 = document.createElementNS(o.SVGURI, "path"),
  4732. this.outLine1 = document.createElementNS(o.SVGURI, "path"),
  4733. this.arc2 = document.createElementNS(o.SVGURI, "path"),
  4734. this.outLine2 = document.createElementNS(o.SVGURI, "path"),
  4735. e.appendChild(this.outLine1),
  4736. e.appendChild(this.arc1),
  4737. e.appendChild(this.outLine2),
  4738. e.appendChild(this.arc2),
  4739. this.nextTick((function() {
  4740. e.appendChild(t.linePoints[0].real),
  4741. e.appendChild(t.linePoints[1].real)
  4742. }
  4743. )),
  4744. e
  4745. }
  4746. ,
  4747. e.prototype.update = function() {
  4748. var t;
  4749. this.real.style.display = this.show ? "initial" : "none";
  4750. var e = C.lineCenter({
  4751. points: this.linePoints
  4752. })
  4753. , i = this.getDrawArgs.call({
  4754. linePoints: [this.linePoints[0], e],
  4755. within: 1 === this.within ? 2 : this.within,
  4756. attachment: this.attachment
  4757. })
  4758. , n = i[0]
  4759. , g = i[1]
  4760. , A = i[2]
  4761. , r = i[3]
  4762. , o = i[4];
  4763. 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"),
  4764. this.arc1.setAttribute("stroke-width", (this.outWidth * this.multiple).toString()),
  4765. this.arc1.setAttribute("stroke", this.stroke),
  4766. this.arc1.setAttribute("fill", this.fill),
  4767. this.outLine1.setAttribute("stroke", this.foorColor),
  4768. this.outLine1.setAttribute("fill", this.fill),
  4769. this.outLine1.setAttribute("stroke-width", (this.foorWidth * this.multiple).toString()),
  4770. this.outLine1.setAttribute("stroke-linecap", this.linecap),
  4771. this.outLine1.setAttribute("d", "M " + this.linePoints[0].x + " " + this.linePoints[0].y + " L " + this.linePoints[1].x + " " + this.linePoints[1].y),
  4772. n = (t = this.getDrawArgs.call({
  4773. linePoints: [this.linePoints[1], e],
  4774. within: 1 === this.within ? 2 : this.within,
  4775. attachment: this.attachment
  4776. }))[0],
  4777. g = t[1],
  4778. A = t[2],
  4779. r = t[3],
  4780. o = t[4],
  4781. 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"),
  4782. this.arc2.setAttribute("stroke-width", (this.outWidth * this.multiple).toString()),
  4783. this.arc2.setAttribute("stroke", this.stroke),
  4784. this.arc2.setAttribute("fill", this.fill),
  4785. this.outLine2.setAttribute("stroke", this.foorColor),
  4786. this.outLine2.setAttribute("fill", this.fill),
  4787. this.outLine2.setAttribute("stroke-width", (this.foorWidth * this.multiple).toString()),
  4788. this.outLine2.setAttribute("stroke-linecap", this.linecap),
  4789. this.outLine2.setAttribute("d", "M " + this.linePoints[0].x + " " + this.linePoints[0].y + " L " + this.linePoints[1].x + " " + this.linePoints[1].y),
  4790. this.attachment.update()))
  4791. }
  4792. ,
  4793. e
  4794. }(r.default);
  4795. e.default = I
  4796. }
  4797. , function(t, e, i) {
  4798. "use strict";
  4799. var n, g = this && this.__extends || (n = function(t, e) {
  4800. return (n = Object.setPrototypeOf || {
  4801. __proto__: []
  4802. }instanceof Array && function(t, e) {
  4803. t.__proto__ = e
  4804. }
  4805. || function(t, e) {
  4806. for (var i in e)
  4807. e.hasOwnProperty(i) && (t[i] = e[i])
  4808. }
  4809. )(t, e)
  4810. }
  4811. ,
  4812. function(t, e) {
  4813. function i() {
  4814. this.constructor = t
  4815. }
  4816. n(t, e),
  4817. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  4818. new i)
  4819. }
  4820. ), A = this && this.__importDefault || function(t) {
  4821. return t && t.__esModule ? t : {
  4822. default: t
  4823. }
  4824. }
  4825. ;
  4826. Object.defineProperty(e, "__esModule", {
  4827. value: !0
  4828. });
  4829. var r = A(i(13))
  4830. , o = i(1)
  4831. , C = function(t) {
  4832. function e() {
  4833. return null !== t && t.apply(this, arguments) || this
  4834. }
  4835. return g(e, t),
  4836. e.prototype.grentNode = function() {
  4837. var e = t.prototype.grentNode.call(this);
  4838. return this.path1 = document.createElementNS(o.SVGURI, "path"),
  4839. this.path2 = document.createElementNS(o.SVGURI, "path"),
  4840. this.path1.setAttribute("stroke", this.stroke),
  4841. this.path2.setAttribute("stroke", this.stroke),
  4842. e.insertBefore(this.path1, e.childNodes[0]),
  4843. e.insertBefore(this.path2, e.childNodes[0]),
  4844. e
  4845. }
  4846. ,
  4847. e.prototype.update = function() {
  4848. t.prototype.update.call(this),
  4849. this.path1.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  4850. this.path2.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  4851. this.path1.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[2].x + " " + this.points[2].y),
  4852. this.path2.setAttribute("d", "M " + this.points[1].x + " " + this.points[1].y + " L " + this.points[3].x + " " + this.points[3].y),
  4853. this.path1.setAttribute("stroke", this.stroke),
  4854. this.path2.setAttribute("stroke", this.stroke)
  4855. }
  4856. ,
  4857. e
  4858. }(r.default);
  4859. e.default = C
  4860. }
  4861. , function(t, e, i) {
  4862. "use strict";
  4863. var n, g = this && this.__extends || (n = function(t, e) {
  4864. return (n = Object.setPrototypeOf || {
  4865. __proto__: []
  4866. }instanceof Array && function(t, e) {
  4867. t.__proto__ = e
  4868. }
  4869. || function(t, e) {
  4870. for (var i in e)
  4871. e.hasOwnProperty(i) && (t[i] = e[i])
  4872. }
  4873. )(t, e)
  4874. }
  4875. ,
  4876. function(t, e) {
  4877. function i() {
  4878. this.constructor = t
  4879. }
  4880. n(t, e),
  4881. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  4882. new i)
  4883. }
  4884. ), A = this && this.__importDefault || function(t) {
  4885. return t && t.__esModule ? t : {
  4886. default: t
  4887. }
  4888. }
  4889. ;
  4890. Object.defineProperty(e, "__esModule", {
  4891. value: !0
  4892. });
  4893. var r = A(i(13))
  4894. , o = i(1)
  4895. , C = i(0)
  4896. , I = function(t) {
  4897. function e() {
  4898. return null !== t && t.apply(this, arguments) || this
  4899. }
  4900. return g(e, t),
  4901. e.prototype.grentNode = function() {
  4902. var e = t.prototype.grentNode.call(this);
  4903. return this.g = document.createElementNS(o.SVGURI, "g"),
  4904. this.path1 = document.createElementNS(o.SVGURI, "path"),
  4905. this.path2 = document.createElementNS(o.SVGURI, "path"),
  4906. this.path1.setAttribute("stroke", this.stroke),
  4907. this.path1.setAttribute("fill", "rgba(0,0,0,0)"),
  4908. this.path2.setAttribute("stroke", this.stroke),
  4909. this.path2.setAttribute("fill", "rgba(0,0,0,0)"),
  4910. this.g.appendChild(this.path1),
  4911. this.g.appendChild(this.path2),
  4912. e.insertBefore(this.g, e.children[0]),
  4913. e
  4914. }
  4915. ,
  4916. e.prototype.update = function() {
  4917. t.prototype.update.call(this);
  4918. var e = C.faceCenter(this.points)
  4919. , i = C.lineDis({
  4920. points: [this.points[1], this.points[2]]
  4921. }) / this.multiple
  4922. , n = C.lineDis({
  4923. points: [this.points[2], this.points[3]]
  4924. }) / this.multiple
  4925. , g = (n - 5 * this.width) / n
  4926. , A = (i - 5 * this.width) / i;
  4927. g = g <= 0 ? 1 : g,
  4928. A = A <= 0 ? 1 : A,
  4929. this.g.setAttribute("transform", "translate(" + e.x + "," + e.y + ") scale(" + (g < A ? A : g) + ") translate(" + -e.x + "," + -e.y + ")"),
  4930. this.path1.setAttribute("stroke-width", (this.width * this.multiple / (g < A ? A : g)).toString()),
  4931. this.path1.setAttribute("d", "M " + this.points.map((function(t) {
  4932. return t.x + " " + t.y
  4933. }
  4934. )).join(" L ") + " Z"),
  4935. this.path2.setAttribute("stroke", this.stroke);
  4936. var r = this.points[2]
  4937. , o = {
  4938. points: [this.points[1], this.points[3]]
  4939. }
  4940. , I = C.lineCenter(o)
  4941. , s = C.lineDis({
  4942. points: [I, r]
  4943. }) * (1 / 3)
  4944. , a = C.getDisVerticalLinePoints(o, I, s)
  4945. , l = a[0]
  4946. , u = a[1]
  4947. , c = C.lineDis({
  4948. points: [r, l]
  4949. }) > C.lineDis({
  4950. points: [r, u]
  4951. }) ? u : l;
  4952. C.pointInside(this.points, c) || (c = C.lineCenter(o)),
  4953. this.path2.setAttribute("stroke", this.stroke),
  4954. this.path2.setAttribute("stroke-width", (this.width * this.multiple).toString()),
  4955. 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)
  4956. }
  4957. ,
  4958. e
  4959. }(r.default);
  4960. e.default = I
  4961. }
  4962. , function(t, e, i) {
  4963. "use strict";
  4964. var n, g = this && this.__extends || (n = function(t, e) {
  4965. return (n = Object.setPrototypeOf || {
  4966. __proto__: []
  4967. }instanceof Array && function(t, e) {
  4968. t.__proto__ = e
  4969. }
  4970. || function(t, e) {
  4971. for (var i in e)
  4972. e.hasOwnProperty(i) && (t[i] = e[i])
  4973. }
  4974. )(t, e)
  4975. }
  4976. ,
  4977. function(t, e) {
  4978. function i() {
  4979. this.constructor = t
  4980. }
  4981. n(t, e),
  4982. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  4983. new i)
  4984. }
  4985. ), A = this && this.__assign || function() {
  4986. return (A = Object.assign || function(t) {
  4987. for (var e, i = 1, n = arguments.length; i < n; i++)
  4988. for (var g in e = arguments[i])
  4989. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  4990. return t
  4991. }
  4992. ).apply(this, arguments)
  4993. }
  4994. , r = this && this.__rest || function(t, e) {
  4995. var i = {};
  4996. for (var n in t)
  4997. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  4998. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  4999. var g = 0;
  5000. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  5001. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  5002. }
  5003. return i
  5004. }
  5005. ;
  5006. Object.defineProperty(e, "__esModule", {
  5007. value: !0
  5008. });
  5009. var o = i(2)
  5010. , C = i(1)
  5011. , I = i(9)
  5012. , s = function(t) {
  5013. function e(e) {
  5014. var i = e.pos
  5015. , n = e.renderer
  5016. , g = e.fontSize
  5017. , o = void 0 === g ? 12 : g
  5018. , C = e.color
  5019. , I = void 0 === C ? "#fff" : C
  5020. , s = r(e, ["pos", "renderer", "fontSize", "color"])
  5021. , a = t.call(this, A(A({}, s), {
  5022. x: i.x,
  5023. y: i.y,
  5024. fontSize: o,
  5025. renderer: n,
  5026. color: I
  5027. })) || this;
  5028. return a.zIndex = -1,
  5029. a
  5030. }
  5031. return g(e, t),
  5032. e.prototype.changeSelect = function(e) {
  5033. t.prototype.changeSelect.call(this, e)
  5034. }
  5035. ,
  5036. e.prototype.dragStart = function() {
  5037. this.dragStartPoint = {
  5038. x: this.x,
  5039. y: this.y
  5040. }
  5041. }
  5042. ,
  5043. e.prototype.drag = function(t) {
  5044. this.x = this.dragStartPoint.x + t.x * this.multiple,
  5045. this.y = this.dragStartPoint.y + t.y * this.multiple
  5046. }
  5047. ,
  5048. e.prototype.grentNode = function() {
  5049. var t = this
  5050. , e = document.createElementNS(C.SVGURI, "g");
  5051. return this.titleNode = document.createElementNS(C.SVGURI, "text"),
  5052. this.titleNode.setAttribute("fill", "#fff"),
  5053. this.titleNode.setAttribute("text-anchor", "middle"),
  5054. this.titleNode.setAttribute("dy", ".4em"),
  5055. this.contentNode = document.createElementNS(C.SVGURI, "text"),
  5056. this.contentNode.setAttribute("fill", "#fff"),
  5057. this.contentNode.setAttribute("text-anchor", "middle"),
  5058. this.contentNode.setAttribute("dy", ".4em"),
  5059. e.appendChild(this.titleNode),
  5060. e.appendChild(this.contentNode),
  5061. this.nextTick((function() {
  5062. return t.update()
  5063. }
  5064. )),
  5065. e
  5066. }
  5067. ,
  5068. e.prototype.setHoverStyle = function() {}
  5069. ,
  5070. e.prototype.setUnHoverStyle = function() {}
  5071. ,
  5072. e.prototype.update = function() {
  5073. var t = this.fontSize * this.multiple;
  5074. this.titleNode.setAttribute("x", this.x.toString()),
  5075. this.titleNode.setAttribute("y", this.y.toString()),
  5076. this.titleNode.setAttribute("font-size", t.toString()),
  5077. this.titleNode.style.display = this.show && this.showTitle ? "inherit" : "none",
  5078. this.titleNode.textContent = this.title || I.i18n.t("modules.model.tagging_name_tips"),
  5079. this.contentNode.setAttribute("x", this.x.toString()),
  5080. this.contentNode.setAttribute("y", (this.y + t + t / 5).toString()),
  5081. this.contentNode.setAttribute("font-size", t.toString()),
  5082. this.contentNode.style.display = this.show && this.showContent ? "inherit" : "none",
  5083. this.contentNode.textContent = this.content,
  5084. this.select ? (this.titleNode.setAttribute("fill", "rgb(183, 18, 15)"),
  5085. this.contentNode.setAttribute("fill", "rgb(183, 18, 15)")) : (this.titleNode.setAttribute("fill", this.color),
  5086. this.contentNode.setAttribute("fill", this.color))
  5087. }
  5088. ,
  5089. e.prototype.destroy = function() {
  5090. t.prototype.destroy.call(this)
  5091. }
  5092. ,
  5093. e
  5094. }(o.CADElement);
  5095. e.default = s
  5096. }
  5097. , function(t, e, i) {
  5098. "use strict";
  5099. var n, g = this && this.__extends || (n = function(t, e) {
  5100. return (n = Object.setPrototypeOf || {
  5101. __proto__: []
  5102. }instanceof Array && function(t, e) {
  5103. t.__proto__ = e
  5104. }
  5105. || function(t, e) {
  5106. for (var i in e)
  5107. e.hasOwnProperty(i) && (t[i] = e[i])
  5108. }
  5109. )(t, e)
  5110. }
  5111. ,
  5112. function(t, e) {
  5113. function i() {
  5114. this.constructor = t
  5115. }
  5116. n(t, e),
  5117. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  5118. new i)
  5119. }
  5120. ), A = this && this.__assign || function() {
  5121. return (A = Object.assign || function(t) {
  5122. for (var e, i = 1, n = arguments.length; i < n; i++)
  5123. for (var g in e = arguments[i])
  5124. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  5125. return t
  5126. }
  5127. ).apply(this, arguments)
  5128. }
  5129. , r = this && this.__rest || function(t, e) {
  5130. var i = {};
  5131. for (var n in t)
  5132. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  5133. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  5134. var g = 0;
  5135. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  5136. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  5137. }
  5138. return i
  5139. }
  5140. , o = this && this.__importDefault || function(t) {
  5141. return t && t.__esModule ? t : {
  5142. default: t
  5143. }
  5144. }
  5145. ;
  5146. Object.defineProperty(e, "__esModule", {
  5147. value: !0
  5148. });
  5149. var C = i(1)
  5150. , I = o(i(4))
  5151. , s = i(0)
  5152. , a = function(t) {
  5153. function e(e) {
  5154. var i = e.points
  5155. , n = e.width
  5156. , g = void 0 === n ? 3 : n
  5157. , o = r(e, ["points", "width"]);
  5158. return t.call(this, A({
  5159. linePoints: i,
  5160. fill: "rgba(255,255,255,0.5)",
  5161. width: g
  5162. }, o)) || this
  5163. }
  5164. return g(e, t),
  5165. e.prototype.grentNode = function() {
  5166. var t = this
  5167. , e = document.createElementNS(C.SVGURI, "g");
  5168. return this.clip1 = document.createElementNS(C.SVGURI, "path"),
  5169. this.clip2 = document.createElementNS(C.SVGURI, "path"),
  5170. this.clip3 = document.createElementNS(C.SVGURI, "path"),
  5171. this.clip4 = document.createElementNS(C.SVGURI, "path"),
  5172. this.clip5 = document.createElementNS(C.SVGURI, "path"),
  5173. this.clip1.setAttribute("stroke", this.fill),
  5174. this.clip2.setAttribute("stroke", this.fill),
  5175. this.clip3.setAttribute("stroke", this.fill),
  5176. this.clip4.setAttribute("stroke", this.fill),
  5177. this.clip5.setAttribute("stroke", this.fill),
  5178. e.appendChild(this.clip1),
  5179. e.appendChild(this.clip2),
  5180. e.appendChild(this.clip3),
  5181. e.appendChild(this.clip4),
  5182. e.appendChild(this.clip5),
  5183. this.nextTick((function() {
  5184. e.appendChild(t.linePoints[0].real),
  5185. e.appendChild(t.linePoints[1].real)
  5186. }
  5187. )),
  5188. e
  5189. }
  5190. ,
  5191. e.prototype.setHoverStyle = function() {
  5192. this.fill = "rgba(243, 255, 0, 0.8)"
  5193. }
  5194. ,
  5195. e.prototype.setUnHoverStyle = function() {
  5196. this.fill = "rgba(255,255,255,0.5)"
  5197. }
  5198. ,
  5199. e.prototype.update = function() {
  5200. var t = s.getDisVerticalLinePoints(this.attachment, this.linePoints[0], .4 * this.width * this.multiple)
  5201. , e = t[0]
  5202. , i = t[1]
  5203. , n = s.getDisVerticalLinePoints(this.attachment, this.linePoints[1], .4 * this.width * this.multiple)
  5204. , g = n[0]
  5205. , A = n[1]
  5206. , r = s.getDisVerticalLinePoints(this.attachment, this.linePoints[0], .15 * this.width * this.multiple)
  5207. , o = r[0]
  5208. , C = r[1]
  5209. , I = s.getDisVerticalLinePoints(this.attachment, this.linePoints[1], .15 * this.width * this.multiple)
  5210. , a = I[0]
  5211. , l = I[1]
  5212. , u = s.lineCenter({
  5213. points: [o, a]
  5214. })
  5215. , c = s.lineCenter({
  5216. points: [C, l]
  5217. });
  5218. isNaN(e.x) || (this.clip1.setAttribute("stroke-width", this.multiple.toString()),
  5219. this.clip1.setAttribute("d", "M " + e.x + " " + e.y + " L " + g.x + " " + g.y),
  5220. this.clip2.setAttribute("stroke-width", this.multiple.toString()),
  5221. this.clip2.setAttribute("d", "M " + i.x + " " + i.y + " L " + A.x + " " + A.y),
  5222. this.clip3.setAttribute("stroke-width", this.multiple.toString()),
  5223. this.clip3.setAttribute("d", "M " + o.x + " " + o.y + " L " + a.x + " " + a.y),
  5224. this.clip4.setAttribute("stroke-width", this.multiple.toString()),
  5225. this.clip4.setAttribute("d", "M " + C.x + " " + C.y + " L " + l.x + " " + l.y),
  5226. this.clip5.setAttribute("stroke-width", (6 * this.multiple).toString()),
  5227. this.clip5.setAttribute("d", "M " + u.x + " " + u.y + " L " + c.x + " " + c.y),
  5228. this.clip1.setAttribute("stroke", this.fill),
  5229. this.clip2.setAttribute("stroke", this.fill),
  5230. this.clip3.setAttribute("stroke", this.fill),
  5231. this.clip4.setAttribute("stroke", this.fill),
  5232. this.clip5.setAttribute("stroke", this.fill),
  5233. this.attachment.update())
  5234. }
  5235. ,
  5236. e.prototype.dragStart = function(t) {
  5237. this.move = this.linePoints[0].real === t.target || this.linePoints[1].real === t.target,
  5238. this.dragStartPoints = this.linePoints.map((function(t) {
  5239. return {
  5240. x: t.x,
  5241. y: t.y
  5242. }
  5243. }
  5244. ))
  5245. }
  5246. ,
  5247. e.prototype.drag = function(t) {
  5248. var e = this;
  5249. this.move || this.linePoints.forEach((function(i, n) {
  5250. i.x = e.dragStartPoints[n].x + t.x * e.multiple,
  5251. i.y = e.dragStartPoints[n].y + t.y * e.multiple
  5252. }
  5253. ))
  5254. }
  5255. ,
  5256. e.prototype.dragEnd = function() {
  5257. this.move = !1,
  5258. delete this.dragStartPoints
  5259. }
  5260. ,
  5261. e
  5262. }(I.default);
  5263. e.default = a
  5264. }
  5265. , function(t, e, i) {
  5266. "use strict";
  5267. var n, g = this && this.__extends || (n = function(t, e) {
  5268. return (n = Object.setPrototypeOf || {
  5269. __proto__: []
  5270. }instanceof Array && function(t, e) {
  5271. t.__proto__ = e
  5272. }
  5273. || function(t, e) {
  5274. for (var i in e)
  5275. e.hasOwnProperty(i) && (t[i] = e[i])
  5276. }
  5277. )(t, e)
  5278. }
  5279. ,
  5280. function(t, e) {
  5281. function i() {
  5282. this.constructor = t
  5283. }
  5284. n(t, e),
  5285. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  5286. new i)
  5287. }
  5288. ), A = this && this.__assign || function() {
  5289. return (A = Object.assign || function(t) {
  5290. for (var e, i = 1, n = arguments.length; i < n; i++)
  5291. for (var g in e = arguments[i])
  5292. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  5293. return t
  5294. }
  5295. ).apply(this, arguments)
  5296. }
  5297. , r = this && this.__rest || function(t, e) {
  5298. var i = {};
  5299. for (var n in t)
  5300. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  5301. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  5302. var g = 0;
  5303. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  5304. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  5305. }
  5306. return i
  5307. }
  5308. , o = this && this.__importDefault || function(t) {
  5309. return t && t.__esModule ? t : {
  5310. default: t
  5311. }
  5312. }
  5313. ;
  5314. Object.defineProperty(e, "__esModule", {
  5315. value: !0
  5316. });
  5317. var C = i(1)
  5318. , I = o(i(4))
  5319. , s = i(0)
  5320. , a = function(t) {
  5321. function e(e) {
  5322. var i = e.points
  5323. , n = e.within
  5324. , g = void 0 === n ? 0 : n
  5325. , o = e.width
  5326. , C = void 0 === o ? 1 : o
  5327. , I = r(e, ["points", "within", "width"]);
  5328. return i[0].fillColor = "rgba(0,0,0,0)",
  5329. i[1].fillColor = "rgba(0,0,0,0)",
  5330. t.call(this, A({
  5331. linePoints: i,
  5332. fill: "rgba(243, 255, 0, 0)",
  5333. stroke: "rgba(255,255,255,0.5)",
  5334. within: g,
  5335. width: C
  5336. }, I)) || this
  5337. }
  5338. return g(e, t),
  5339. e.prototype.grentNode = function() {
  5340. var t = this
  5341. , e = document.createElementNS(C.SVGURI, "g");
  5342. 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 ',
  5343. this.out = e.querySelector(".ground-case-out"),
  5344. this.in = e.querySelector(".ground-case-in"),
  5345. this.left = e.querySelector(".ground-case-left"),
  5346. this.right = e.querySelector(".ground-case-right"),
  5347. this.nextTick((function() {
  5348. e.appendChild(t.linePoints[0].real),
  5349. e.appendChild(t.linePoints[1].real)
  5350. }
  5351. )),
  5352. e
  5353. }
  5354. ,
  5355. e.prototype.setHoverStyle = function() {
  5356. this.fill = "rgba(243, 255, 0, 0.8)"
  5357. }
  5358. ,
  5359. e.prototype.setUnHoverStyle = function() {
  5360. this.fill = "rgba(0,0,0,0)"
  5361. }
  5362. ,
  5363. e.prototype.getOutInPath = function(t, e, i, n, g, A, r) {
  5364. var o = this;
  5365. void 0 === A && (A = 0),
  5366. void 0 === r && (r = 0);
  5367. var C, I = i, a = s.getDisVerticalLinePoints(this.attachment, t, I), l = s.getDisVerticalLinePoints(this.attachment, e, I), u = {
  5368. x: 0,
  5369. y: 0
  5370. }, c = s.lineDis({
  5371. points: [a[0], u]
  5372. }) < s.lineDis({
  5373. points: [a[1], u]
  5374. }), h = this.within ? c ? a[1] : a[0] : c ? a[0] : a[1];
  5375. h ? C = l[a.indexOf(h)] : (C = this.within ? l.find((function(t) {
  5376. return o.rooms.find((function(e) {
  5377. return !s.pointInside(e, t)
  5378. }
  5379. ))
  5380. }
  5381. )) : l.find((function(t) {
  5382. return o.rooms.find((function(e) {
  5383. return s.pointInside(e, t)
  5384. }
  5385. ))
  5386. }
  5387. ))) ? h = a[l.indexOf(C)] : (h = a[0],
  5388. C = l[0]),
  5389. A = A || h,
  5390. r = r || C;
  5391. var p = s.getDisVerticalLinePoints(this.attachment, t, g).sort((function(t, e) {
  5392. return s.lineDis({
  5393. points: [A, t]
  5394. }) - s.lineDis({
  5395. points: [A, e]
  5396. })
  5397. }
  5398. ))[1];
  5399. return [h, C, s.getDisVerticalLinePoints(this.attachment, e, g).sort((function(t, e) {
  5400. return s.lineDis({
  5401. points: [r, t]
  5402. }) - s.lineDis({
  5403. points: [r, e]
  5404. })
  5405. }
  5406. ))[1], p, h]
  5407. }
  5408. ,
  5409. e.prototype.update = function() {
  5410. var t = 3 * this.width * this.multiple
  5411. , e = this.width * this.multiple
  5412. , i = .4 * s.lineDis({
  5413. points: this.linePoints
  5414. });
  5415. i / this.multiple > 30 && (i = 30 * this.multiple);
  5416. var n = this.linePoints[0]
  5417. , g = this.linePoints[1]
  5418. , A = s.getDisPointLinePoints(this.attachment, n, t)
  5419. , r = A[0]
  5420. , o = A[1]
  5421. , C = s.getDisPointLinePoints(this.attachment, g, t)
  5422. , I = C[0]
  5423. , a = C[1];
  5424. if (n = s.lineDis({
  5425. points: [r, g]
  5426. }) > s.lineDis({
  5427. points: [o, g]
  5428. }) ? r : o,
  5429. g = s.lineDis({
  5430. points: [I, n]
  5431. }) > s.lineDis({
  5432. points: [a, n]
  5433. }) ? I : a,
  5434. !isNaN(r.x)) {
  5435. this.left.setAttribute("stroke-width", t.toString()),
  5436. this.left.setAttribute("x", this.linePoints[0].x.toString()),
  5437. this.left.setAttribute("y", this.linePoints[0].y.toString()),
  5438. this.right.setAttribute("stroke-width", t.toString()),
  5439. this.right.setAttribute("x", this.linePoints[1].x.toString()),
  5440. this.right.setAttribute("y", this.linePoints[1].y.toString());
  5441. var l = this.getOutInPath(n, g, t, e, i);
  5442. this.ctl = [l[2], l[3]],
  5443. this.out.setAttribute("fill", this.fill),
  5444. this.out.setAttribute("stroke-width", e.toString()),
  5445. this.out.setAttribute("stroke", this.stroke),
  5446. this.out.setAttribute("d", l.map((function(t, e) {
  5447. return (e ? "L " : "M ") + t.x + " " + t.y
  5448. }
  5449. )).join(" "));
  5450. var u = s.getLineDisSelectPoint({
  5451. points: this.linePoints
  5452. }, n, t)
  5453. , c = s.getLineDisSelectPoint({
  5454. points: this.linePoints
  5455. }, g, t);
  5456. this.in.setAttribute("fill", this.fill),
  5457. this.in.setAttribute("stroke-width", e.toString()),
  5458. this.in.setAttribute("stroke", this.stroke),
  5459. this.in.setAttribute("d", this.getOutInPath(u, c, t, e, i - s.lineDis({
  5460. points: [u, n]
  5461. }), l[0], l[1]).map((function(t, e) {
  5462. return (e ? "L " : "M ") + t.x + " " + t.y
  5463. }
  5464. )).join(" ")),
  5465. this.attachment.update()
  5466. }
  5467. }
  5468. ,
  5469. e.prototype.dragStart = function(t) {
  5470. this.move = this.linePoints[0].real === t.target || this.linePoints[1].real === t.target,
  5471. this.dragStartPoints = this.linePoints.map((function(t) {
  5472. return {
  5473. x: t.x,
  5474. y: t.y
  5475. }
  5476. }
  5477. ))
  5478. }
  5479. ,
  5480. e.prototype.drag = function(t) {
  5481. var e = this;
  5482. this.move || this.linePoints.forEach((function(i, n) {
  5483. i.x = e.dragStartPoints[n].x + t.x * e.multiple,
  5484. i.y = e.dragStartPoints[n].y + t.y * e.multiple
  5485. }
  5486. ))
  5487. }
  5488. ,
  5489. e.prototype.dragEnd = function() {
  5490. this.move = !1,
  5491. delete this.dragStartPoints
  5492. }
  5493. ,
  5494. e
  5495. }(I.default);
  5496. e.default = a
  5497. }
  5498. , function(t, e, i) {
  5499. "use strict";
  5500. var n = this && this.__assign || function() {
  5501. return (n = Object.assign || function(t) {
  5502. for (var e, i = 1, n = arguments.length; i < n; i++)
  5503. for (var g in e = arguments[i])
  5504. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  5505. return t
  5506. }
  5507. ).apply(this, arguments)
  5508. }
  5509. , g = this && this.__awaiter || function(t, e, i, n) {
  5510. return new (i || (i = Promise))((function(g, A) {
  5511. function r(t) {
  5512. try {
  5513. C(n.next(t))
  5514. } catch (t) {
  5515. A(t)
  5516. }
  5517. }
  5518. function o(t) {
  5519. try {
  5520. C(n.throw(t))
  5521. } catch (t) {
  5522. A(t)
  5523. }
  5524. }
  5525. function C(t) {
  5526. var e;
  5527. t.done ? g(t.value) : (e = t.value,
  5528. e instanceof i ? e : new i((function(t) {
  5529. t(e)
  5530. }
  5531. ))).then(r, o)
  5532. }
  5533. C((n = n.apply(t, e || [])).next())
  5534. }
  5535. ))
  5536. }
  5537. , A = this && this.__generator || function(t, e) {
  5538. var i, n, g, A, r = {
  5539. label: 0,
  5540. sent: function() {
  5541. if (1 & g[0])
  5542. throw g[1];
  5543. return g[1]
  5544. },
  5545. trys: [],
  5546. ops: []
  5547. };
  5548. return A = {
  5549. next: o(0),
  5550. throw: o(1),
  5551. return: o(2)
  5552. },
  5553. "function" == typeof Symbol && (A[Symbol.iterator] = function() {
  5554. return this
  5555. }
  5556. ),
  5557. A;
  5558. function o(A) {
  5559. return function(o) {
  5560. return function(A) {
  5561. if (i)
  5562. throw new TypeError("Generator is already executing.");
  5563. for (; r; )
  5564. try {
  5565. if (i = 1,
  5566. n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n),
  5567. 0) : n.next) && !(g = g.call(n, A[1])).done)
  5568. return g;
  5569. switch (n = 0,
  5570. g && (A = [2 & A[0], g.value]),
  5571. A[0]) {
  5572. case 0:
  5573. case 1:
  5574. g = A;
  5575. break;
  5576. case 4:
  5577. return r.label++,
  5578. {
  5579. value: A[1],
  5580. done: !1
  5581. };
  5582. case 5:
  5583. r.label++,
  5584. n = A[1],
  5585. A = [0];
  5586. continue;
  5587. case 7:
  5588. A = r.ops.pop(),
  5589. r.trys.pop();
  5590. continue;
  5591. default:
  5592. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  5593. r = 0;
  5594. continue
  5595. }
  5596. if (3 === A[0] && (!g || A[1] > g[0] && A[1] < g[3])) {
  5597. r.label = A[1];
  5598. break
  5599. }
  5600. if (6 === A[0] && r.label < g[1]) {
  5601. r.label = g[1],
  5602. g = A;
  5603. break
  5604. }
  5605. if (g && r.label < g[2]) {
  5606. r.label = g[2],
  5607. r.ops.push(A);
  5608. break
  5609. }
  5610. g[2] && r.ops.pop(),
  5611. r.trys.pop();
  5612. continue
  5613. }
  5614. A = e.call(t, r)
  5615. } catch (t) {
  5616. A = [6, t],
  5617. n = 0
  5618. } finally {
  5619. i = g = 0
  5620. }
  5621. if (5 & A[0])
  5622. throw A[1];
  5623. return {
  5624. value: A[0] ? A[1] : void 0,
  5625. done: !0
  5626. }
  5627. }([A, o])
  5628. }
  5629. }
  5630. }
  5631. , r = this && this.__spreadArrays || function() {
  5632. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  5633. t += arguments[e].length;
  5634. var n = Array(t)
  5635. , g = 0;
  5636. for (e = 0; e < i; e++)
  5637. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  5638. g++)
  5639. n[g] = A[r];
  5640. return n
  5641. }
  5642. , o = this && this.__importDefault || function(t) {
  5643. return t && t.__esModule ? t : {
  5644. default: t
  5645. }
  5646. }
  5647. ;
  5648. Object.defineProperty(e, "__esModule", {
  5649. value: !0
  5650. });
  5651. var C = o(i(49))
  5652. , I = o(i(5))
  5653. , s = o(i(11))
  5654. , a = o(i(8))
  5655. , l = o(i(7))
  5656. , u = o(i(20))
  5657. , c = o(i(15))
  5658. , h = o(i(21))
  5659. , p = o(i(17))
  5660. , d = o(i(18))
  5661. , f = i(3)
  5662. , y = o(i(12))
  5663. , v = o(i(14))
  5664. , m = o(i(16))
  5665. , b = o(i(19))
  5666. , x = o(i(50));
  5667. e.roateDataY = function(t) {
  5668. return [(t = n(n({}, t), {
  5669. vertex: t.vertex.map((function(t) {
  5670. return n(n({}, t), {
  5671. y: -t.y
  5672. })
  5673. }
  5674. )),
  5675. window: r(t.window),
  5676. column: r(t.column),
  5677. door: r(t.door),
  5678. groundCase: r(t.groundCase),
  5679. slideDoor: r(t.slideDoor),
  5680. bayCase: r(t.bayCase),
  5681. tagging: r(t.tagging),
  5682. furnColumn: r(t.furnColumn),
  5683. furnFlue: r(t.furnFlue),
  5684. doubleDoor: r(t.doubleDoor)
  5685. })).window, t.column, t.door, t.slideDoor, t.tagging, t.groundCase, t.bayCase, t.furnColumn, t.furnFlue, t.doubleDoor].forEach((function(t) {
  5686. t.forEach((function(e, i) {
  5687. t[i] = n(n({}, e), {
  5688. pos: e.pos.map((function(t, e) {
  5689. return e % 2 ? -t : t
  5690. }
  5691. ))
  5692. })
  5693. }
  5694. ))
  5695. }
  5696. )),
  5697. t
  5698. }
  5699. ,
  5700. e.attchTransform = function(t) {
  5701. t.getData = function(i) {
  5702. return void 0 === i && (i = !1),
  5703. {
  5704. floors: t.processings.map((function(n) {
  5705. var g = e.roateDataY(n.toData());
  5706. return g.dire = n.direction.angle,
  5707. i && (g = x.default(g, t)),
  5708. g
  5709. }
  5710. ))
  5711. }
  5712. }
  5713. ,
  5714. t.loadData = function(i) {
  5715. i.floors || (i.show = !0,
  5716. i = {
  5717. floors: [i]
  5718. });
  5719. var n = JSON.parse(JSON.stringify(i));
  5720. n.floors.some((function(t) {
  5721. return t.show
  5722. }
  5723. )) || (n.floors[0].show = !0),
  5724. n.floors = n.floors.map((function(t) {
  5725. return e.roateDataY(function(t) {
  5726. t.column = t.column || [],
  5727. t.window = t.window || [],
  5728. t.doubleDoor = t.doubleDoor || [],
  5729. t.door = t.door || [],
  5730. t.groundCase = t.groundCase || [],
  5731. t.bayCase = t.bayCase || [],
  5732. t.slideDoor = t.slideDoor || [],
  5733. t.tagging = t.tagging || [],
  5734. t.furnColumn = t.furnColumn || [],
  5735. t.furnFlue = t.furnFlue || [];
  5736. var e = ["column", "window", "door", "groundCase", "bayCase", "slideDoor", "tagging", "furnColumn", "furnFlue"];
  5737. t["vertex-xy"] && (t.vertex = t["vertex-xy"],
  5738. t.wall = t.segment.map((function(t) {
  5739. return {
  5740. id: t.id,
  5741. p1: t.a,
  5742. p2: t.b,
  5743. border: t.border,
  5744. exterior: t.exterior
  5745. }
  5746. }
  5747. ))),
  5748. t["outdoor-segment"] && (t.wall = t.wall.concat(t["outdoor-segment"].map((function(t) {
  5749. return {
  5750. id: t.id,
  5751. p1: t.a,
  5752. p2: t.b,
  5753. border: t.border,
  5754. exterior: !0
  5755. }
  5756. }
  5757. ))),
  5758. t.vertex = t.vertex.concat(t["outdoor-vertex"]));
  5759. for (var i, n = function(n) {
  5760. var g = t.wall.filter((function(e) {
  5761. return e !== t.wall[n]
  5762. }
  5763. )).find((function(e) {
  5764. var i = e.p1
  5765. , g = e.p2;
  5766. return i === t.wall[n].p1 && g === t.wall[n].p2 || g === t.wall[n].p1 && i === t.wall[n].p2
  5767. }
  5768. ));
  5769. g && (e.forEach((function(e) {
  5770. t[e].forEach((function(e) {
  5771. e.line === t.wall[n].id && (e.line = g.id,
  5772. console.log("update", e))
  5773. }
  5774. ))
  5775. }
  5776. )),
  5777. t.wall.splice(n--, 1)),
  5778. i = n
  5779. }, g = 0; g < t.wall.length; g++)
  5780. n(g),
  5781. g = i;
  5782. return t.vertex = t.vertex.filter((function(e) {
  5783. return t.wall.some((function(t) {
  5784. var i = t.p1
  5785. , n = t.p2;
  5786. return e.id === i || e.id === n
  5787. }
  5788. ))
  5789. }
  5790. )),
  5791. t
  5792. }(t))
  5793. }
  5794. )),
  5795. !0,
  5796. t.processings.forEach((function(t) {
  5797. t.attrs.forEach((function(e) {
  5798. for (; t[e].length; )
  5799. t[e][0].ele.destroy(!0, !0)
  5800. }
  5801. ))
  5802. }
  5803. )),
  5804. n.floors.forEach((function(e) {
  5805. var i = t.processings.find((function(t) {
  5806. return t.id === e.id
  5807. }
  5808. ));
  5809. i || ((i = t.addProcessing()).id = e.id)
  5810. }
  5811. ));
  5812. for (var g, A = function(e) {
  5813. n.floors.some((function(i) {
  5814. var n = i.id;
  5815. return t.processings[e].id === n
  5816. }
  5817. )) || t.delProcessing(t.processings[e--]),
  5818. g = e
  5819. }, r = 0; r < t.processings.length; r++)
  5820. A(r),
  5821. r = g;
  5822. t.processings.forEach((function(t) {
  5823. for (var e, i = function(i) {
  5824. var n = t.render.elements[i];
  5825. [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) {
  5826. return n instanceof t
  5827. }
  5828. )) && (t.render.remove(n),
  5829. i--),
  5830. e = i
  5831. }, n = 0; n < t.render.elements.length; n++)
  5832. i(n),
  5833. n = e
  5834. }
  5835. )),
  5836. n.floors.forEach((function(e) {
  5837. var i = t.processings.find((function(t) {
  5838. return t.id === e.id
  5839. }
  5840. ));
  5841. e.surplus = [],
  5842. i.toEles(e),
  5843. i.direction.__state.direct = !0,
  5844. i.direction.angle = e.dire || 0,
  5845. i.direction.__state.direct = !1,
  5846. i.direction.update(),
  5847. t.adapt(e, void 0, void 0, n.floors[0])
  5848. }
  5849. )),
  5850. setTimeout((function() {
  5851. return !1
  5852. }
  5853. ), 5e3)
  5854. }
  5855. }
  5856. ,
  5857. e.attchStack = function(t) {
  5858. sessionStorage.clear();
  5859. var e = 0
  5860. , i = new C.default("cad_" + Date.now());
  5861. t.stack = i;
  5862. var n = function(t) {
  5863. void 0 === t && (t = e);
  5864. var n = i.getLength();
  5865. return {
  5866. previous: (1 !== n || 1 !== e) && t > 0,
  5867. next: t < n - 1
  5868. }
  5869. };
  5870. t.clearStack = function() {
  5871. sessionStorage.clear(),
  5872. i.setLength(e = 0)
  5873. }
  5874. ,
  5875. t.getCurrentData = function() {
  5876. return i.get(e - 1)
  5877. }
  5878. ,
  5879. t.preservation = f.debounce((function() {
  5880. if (!t.stoppreservation) {
  5881. var n = t.getData()
  5882. , g = i.getLength() - 1;
  5883. 0 !== g && JSON.stringify(n) === JSON.stringify(i.get(g)) || (i.push(n),
  5884. ++e)
  5885. }
  5886. }
  5887. ), 500);
  5888. var g;
  5889. Date.now();
  5890. t.previous = function() {
  5891. return n().previous ? (--e,
  5892. clearTimeout(g),
  5893. g = setTimeout((function() {
  5894. t.loadData(i.get(e))
  5895. }
  5896. ), 500),
  5897. n()) : n()
  5898. }
  5899. ,
  5900. t.next = function() {
  5901. return n().next ? (++e,
  5902. clearTimeout(g),
  5903. g = setTimeout((function() {
  5904. t.loadData(i.get(e))
  5905. }
  5906. ), 500),
  5907. n()) : n()
  5908. }
  5909. ,
  5910. t.getStackState = n;
  5911. var A = t.destroy;
  5912. t.destroy = function() {
  5913. for (var t = [], e = 0; e < arguments.length; e++)
  5914. t[e] = arguments[e];
  5915. i = null,
  5916. A.apply(this, t)
  5917. }
  5918. }
  5919. ,
  5920. e.autoPreservation = function(t) {
  5921. [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) {
  5922. var i = e.prototype.dragEnd;
  5923. e.prototype.dragEnd = function() {
  5924. for (var e = [], n = 0; n < arguments.length; n++)
  5925. e[n] = arguments[n];
  5926. return g(this, void 0, void 0, (function() {
  5927. return A(this, (function(n) {
  5928. switch (n.label) {
  5929. case 0:
  5930. return i ? [4, i.call.apply(i, r([this], e))] : [3, 2];
  5931. case 1:
  5932. n.sent(),
  5933. n.label = 2;
  5934. case 2:
  5935. return setTimeout((function() {
  5936. t.preservation()
  5937. }
  5938. ), 100),
  5939. [2]
  5940. }
  5941. }
  5942. ))
  5943. }
  5944. ))
  5945. }
  5946. ;
  5947. var n = t.destroy;
  5948. t.destroy = function() {
  5949. for (var t = [], g = 0; g < arguments.length; g++)
  5950. t[g] = arguments[g];
  5951. n.apply(this, t),
  5952. e.prototype.dragEnd = i
  5953. }
  5954. }
  5955. ));
  5956. var e = t.increase;
  5957. t.increase = function() {
  5958. for (var i = [], n = 0; n < arguments.length; n++)
  5959. i[n] = arguments[n];
  5960. var g = e.call.apply(e, r([t], i));
  5961. return g.error || setTimeout((function() {
  5962. t.preservation()
  5963. }
  5964. ), 100),
  5965. g
  5966. }
  5967. ,
  5968. t.preservation()
  5969. }
  5970. }
  5971. , function(t, e, i) {
  5972. "use strict";
  5973. var n, g = this && this.__extends || (n = function(t, e) {
  5974. return (n = Object.setPrototypeOf || {
  5975. __proto__: []
  5976. }instanceof Array && function(t, e) {
  5977. t.__proto__ = e
  5978. }
  5979. || function(t, e) {
  5980. for (var i in e)
  5981. e.hasOwnProperty(i) && (t[i] = e[i])
  5982. }
  5983. )(t, e)
  5984. }
  5985. ,
  5986. function(t, e) {
  5987. function i() {
  5988. this.constructor = t
  5989. }
  5990. n(t, e),
  5991. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  5992. new i)
  5993. }
  5994. ), A = this && this.__spreadArrays || function() {
  5995. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  5996. t += arguments[e].length;
  5997. var n = Array(t)
  5998. , g = 0;
  5999. for (e = 0; e < i; e++)
  6000. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  6001. g++)
  6002. n[g] = A[r];
  6003. return n
  6004. }
  6005. ;
  6006. Object.defineProperty(e, "__esModule", {
  6007. value: !0
  6008. });
  6009. var r = i(2)
  6010. , o = i(1)
  6011. , C = i(0)
  6012. , I = function(t, e) {
  6013. return t.contains ? t.contains(e) : Array.from(t.childNodes).some((function(t) {
  6014. return t === e
  6015. }
  6016. ))
  6017. }
  6018. , s = function(t) {
  6019. function e(e) {
  6020. var i = e.local
  6021. , n = e.renderer
  6022. , g = e.active
  6023. , A = void 0 === g ? 0 : g
  6024. , r = e.show
  6025. , o = void 0 === r || r
  6026. , C = t.call(this, {
  6027. local: i,
  6028. renderer: n,
  6029. dialog: 0,
  6030. active: A,
  6031. show: o
  6032. }) || this;
  6033. return C.items = [],
  6034. C.layerClick = function() {
  6035. return C.dialog = 0
  6036. }
  6037. ,
  6038. n.layer.addEventListener("click", C.layerClick),
  6039. C
  6040. }
  6041. return g(e, t),
  6042. e.prototype.grentImage = function(t) {
  6043. var e = document.createElementNS(o.SVGURI, "image");
  6044. return e.href.baseVal = i(54),
  6045. e.setAttribute("x", (-t / 2).toString()),
  6046. e.setAttribute("y", (-t / 2).toString()),
  6047. e.setAttribute("width", t.toString()),
  6048. e.setAttribute("height", t.toString()),
  6049. e
  6050. }
  6051. ,
  6052. e.prototype.grentNode = function() {
  6053. var t = document.createElementNS(o.SVGURI, "g");
  6054. this.path = document.createElementNS(o.SVGURI, "path"),
  6055. this.path.setAttribute("stroke", "rgb(183, 18, 15)"),
  6056. this.path.setAttribute("fill", "transparent");
  6057. var e = document.createElementNS(o.SVGURI, "circle");
  6058. e.setAttribute("fill", "rgb(183, 18, 15)"),
  6059. e.setAttribute("stroke", "#fff");
  6060. var i = document.createElementNS(o.SVGURI, "text");
  6061. return i.setAttribute("fill", "#fff"),
  6062. i.setAttribute("text-anchor", "middle"),
  6063. i.setAttribute("dy", ".4em"),
  6064. this.temp = document.createElementNS(o.SVGURI, "g"),
  6065. this.temp.appendChild(e),
  6066. this.temp.appendChild(i),
  6067. this.temp.style.cursor = "pointer",
  6068. this.dialogLayer = document.createElementNS(o.SVGURI, "g"),
  6069. this.itemsLayout = document.createElementNS(o.SVGURI, "path"),
  6070. this.itemsLayout.setAttribute("fill", "rgba(255,255,255,0.7)"),
  6071. this.dialogLayer.appendChild(this.itemsLayout),
  6072. t.appendChild(this.path),
  6073. t
  6074. }
  6075. ,
  6076. e.prototype.update = function() {
  6077. var t = this
  6078. , e = 9 * this.multiple
  6079. , i = 2 * this.multiple;
  6080. if (this.real.style.display = this.show ? "initial" : "none",
  6081. this.path.setAttribute("stroke-width", (2 * this.multiple).toString()),
  6082. this.local.length > 0)
  6083. this.path.setAttribute("d", "M " + this.local.map((function(t) {
  6084. return t.x + " " + t.y
  6085. }
  6086. )).join(" L "));
  6087. else if (this.path.setAttribute("d", ""),
  6088. this.dialog)
  6089. return this.dialog = 0;
  6090. this.items.forEach((function(e) {
  6091. try {
  6092. t.real.removeChild(e)
  6093. } catch (t) {}
  6094. }
  6095. )),
  6096. this.items = [],
  6097. this.temp.style.display = this.show ? "initial" : "none";
  6098. var n = this.local.length - this.items.length;
  6099. if (n > 0)
  6100. for (var g = 0; g < n; g++) {
  6101. var A = this.temp.cloneNode(!0);
  6102. this.real.appendChild(A),
  6103. this.items.push(A)
  6104. }
  6105. else if (n < 0)
  6106. for (g = 0; g > n; g--) {
  6107. var r = this.items.shift();
  6108. this.real.removeChild(r)
  6109. }
  6110. var o = 0;
  6111. for (g = 0; g < this.local.length; g++) {
  6112. var C = this.items[g].querySelector("circle")
  6113. , I = this.items[g].querySelector("text");
  6114. this.items[g].setAttribute("transform", "translate(" + this.local[g].x + "," + this.local[g].y + ")"),
  6115. this.items[g].style.display = "inherit",
  6116. C.setAttribute("stroke-width", i.toString()),
  6117. C.setAttribute("r", e.toString()),
  6118. I.setAttribute("font-size", (10 * this.multiple).toString()),
  6119. this.local[g].rangn ? (C.setAttribute("fill", "#666666"),
  6120. this.items[g].appendChild(this.grentImage(e + i))) : I.textContent = (++o).toString(),
  6121. this.local[g] === this.active && (I.setAttribute("fill", "rgb(250,250,0)"),
  6122. C.setAttribute("stroke", "rgb(250,250,0)"),
  6123. this.items[g].setAttribute("class", "active"))
  6124. }
  6125. var s = this.calcGroup();
  6126. for (g = 0; g < s.length; g++)
  6127. s[g].body.forEach((function(e) {
  6128. var i = t.local.indexOf(e);
  6129. t.items[i].style.display = "none"
  6130. }
  6131. ));
  6132. this.showDialog(2 * (e + i))
  6133. }
  6134. ,
  6135. e.prototype.showDialog = function(t) {
  6136. var e = this;
  6137. if (0 !== this.dialog) {
  6138. for (var i = 0; i < this.dialogLayer.childNodes.length; i++)
  6139. this.dialogLayer.childNodes[i] !== this.itemsLayout && (this.dialogLayer.removeChild(this.dialogLayer.childNodes[i]),
  6140. i--);
  6141. this.itemsLayout.innerHTML = "";
  6142. var n = 5 * this.multiple
  6143. , g = (t + n) * this.dialog.items.length
  6144. , A = t + 2 * n
  6145. , r = this.dialog.pos.x - g / 2
  6146. , o = this.dialog.pos.y - A - t
  6147. , C = 8 * this.multiple;
  6148. 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 ");
  6149. var I = function(i, g) {
  6150. i.setAttribute("transform", "translate(" + (r + (t + n) * g) + "," + (o + (t / 2 + n)) + ")"),
  6151. i.style.display = "inline",
  6152. e.dialogLayer.appendChild(i)
  6153. };
  6154. this.dialog.items.forEach((function(t, i) {
  6155. I(e.items[e.local.indexOf(t)], i + 1)
  6156. }
  6157. )),
  6158. I(this.items[this.local.indexOf(this.dialog.pos)].cloneNode(!0), 0)
  6159. }
  6160. }
  6161. ,
  6162. e.prototype.calcGroup = function() {
  6163. var t = this
  6164. , e = 18 * this.multiple
  6165. , i = [];
  6166. return this.local.forEach((function(n) {
  6167. if (!i.find((function(t) {
  6168. return ~t.body.indexOf(n)
  6169. }
  6170. ))) {
  6171. var g = t.local.filter((function(t) {
  6172. return n !== t && C.lineDis({
  6173. points: [n, t]
  6174. }) < e
  6175. }
  6176. ));
  6177. g.length > 0 && i.push({
  6178. head: n,
  6179. body: g
  6180. })
  6181. }
  6182. }
  6183. )),
  6184. i
  6185. }
  6186. ,
  6187. e.prototype.notice = function() {
  6188. 0 !== this.dialog ? this.real.appendChild(this.dialogLayer) : I(this.real, this.dialogLayer) && this.real.removeChild(this.dialogLayer)
  6189. }
  6190. ,
  6191. e.prototype.intercept = function(t, e) {
  6192. var i = this
  6193. , n = e.active;
  6194. if (!n)
  6195. return !0;
  6196. var g = this.calcGroup().find((function(t) {
  6197. var e = t.head
  6198. , i = t.body;
  6199. return e === n || ~i.indexOf(n)
  6200. }
  6201. ));
  6202. if (this.nextTick((function() {
  6203. i.dialog = g ? {
  6204. pos: g.head,
  6205. items: A(g.body)
  6206. } : 0
  6207. }
  6208. )),
  6209. this.active && this.items[this.local.indexOf(this.active)]) {
  6210. var r = this.items[this.local.indexOf(this.active)]
  6211. , o = r.querySelector("circle");
  6212. r.querySelector("text").setAttribute("fill", "#fff"),
  6213. o.setAttribute("stroke", "#fff"),
  6214. r.setAttribute("class", "active")
  6215. }
  6216. return !0
  6217. }
  6218. ,
  6219. e.prototype.setActive = function(t) {
  6220. this.active = t
  6221. }
  6222. ,
  6223. e.prototype.click = function(t) {
  6224. t.stopPropagation();
  6225. for (var e = 0; e < this.items.length; e++)
  6226. if (I(this.items[e], t.target) || t.target === this.items[e]) {
  6227. this.setActive(this.local[e]);
  6228. break
  6229. }
  6230. }
  6231. ,
  6232. e.prototype.destroy = function() {
  6233. this.renderer.layer.removeEventListener("click", this.layerClick)
  6234. }
  6235. ,
  6236. e
  6237. }(r.CADElement);
  6238. e.default = s
  6239. }
  6240. , function(t, e, i) {
  6241. "use strict";
  6242. var n = this && this.__spreadArrays || function() {
  6243. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  6244. t += arguments[e].length;
  6245. var n = Array(t)
  6246. , g = 0;
  6247. for (e = 0; e < i; e++)
  6248. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  6249. g++)
  6250. n[g] = A[r];
  6251. return n
  6252. }
  6253. , g = this && this.__importDefault || function(t) {
  6254. return t && t.__esModule ? t : {
  6255. default: t
  6256. }
  6257. }
  6258. ;
  6259. Object.defineProperty(e, "__esModule", {
  6260. value: !0
  6261. }),
  6262. i(25);
  6263. var A = g(i(26))
  6264. , r = i(39)
  6265. , o = i(40)
  6266. , C = i(46)
  6267. , I = i(48)
  6268. , s = i(22)
  6269. , a = i(51)
  6270. , l = i(52)
  6271. , u = i(53)
  6272. , c = i(55)
  6273. , h = i(56)
  6274. , p = g(i(57))
  6275. , d = i(58)
  6276. , f = g(i(7));
  6277. e.Column = f.default;
  6278. var y = g(i(8));
  6279. e.Door = y.default;
  6280. var v = g(i(11));
  6281. e.Casement = v.default;
  6282. var m = i(2)
  6283. , b = g(i(23))
  6284. , x = g(i(59))
  6285. , _ = g(i(63))
  6286. , w = m.CADElement.prototype.listen;
  6287. m.CADElement.prototype.listen = function() {
  6288. for (var t = this, e = [], i = 0; i < arguments.length; i++)
  6289. e[i] = arguments[i];
  6290. var g = this.render.processing.cad.edits.some((function(e) {
  6291. return t instanceof e
  6292. }
  6293. ));
  6294. (g || this.render.processing.cad.edit || this instanceof b.default) && w.call.apply(w, n([this], e))
  6295. }
  6296. ;
  6297. var P = f.default.prototype.addEvent;
  6298. function O(t) {
  6299. var e = t.data
  6300. , i = t.layer
  6301. , n = t.edit
  6302. , g = void 0 === n || n
  6303. , f = t.padding
  6304. , y = void 0 === f ? 20 : f
  6305. , v = new A.default({
  6306. dom: i,
  6307. padding: y
  6308. });
  6309. return v.edit = g,
  6310. r.attachInsert(v),
  6311. g ? (s.attchTransform(v),
  6312. s.attchStack(v),
  6313. s.autoPreservation(v),
  6314. a.attchDOMTranform(v),
  6315. l.attachDisabled(v),
  6316. p.default(v)) : (s.attchTransform(v),
  6317. a.attchDOMTranform(v)),
  6318. h.attchCustom(v),
  6319. c.attachStyle(v),
  6320. I.attachScreenshot(v),
  6321. C.attachSign(v),
  6322. o.attachGauge(v),
  6323. u.attachRote(v),
  6324. g && (v.openMouseHandle(),
  6325. v.showGauge()),
  6326. d.other(v),
  6327. x.default(v),
  6328. v.loadData(e),
  6329. v.toCanvas = function(t) {
  6330. return _.default(v, t)
  6331. }
  6332. ,
  6333. v
  6334. }
  6335. f.default.prototype.addEvent = function() {
  6336. for (var t = this, e = [], i = 0; i < arguments.length; i++)
  6337. e[i] = arguments[i];
  6338. var g = this.render.processing.cad.edits.some((function(e) {
  6339. return t instanceof e
  6340. }
  6341. ));
  6342. (g || this.render.processing.cad.edit) && P.call.apply(P, n([this], e))
  6343. }
  6344. ,
  6345. e.structureCAD = O,
  6346. e.default = O,
  6347. window.structureCAD = O
  6348. }
  6349. , function(t, e) {
  6350. !function() {
  6351. try {
  6352. if ("undefined" == typeof SVGElement || Boolean(SVGElement.prototype.innerHTML))
  6353. return
  6354. } catch (t) {
  6355. return
  6356. }
  6357. function t(e) {
  6358. switch (e.nodeType) {
  6359. case 1:
  6360. return function(e) {
  6361. var i = "";
  6362. i += "<" + e.tagName,
  6363. e.hasAttributes() && [].forEach.call(e.attributes, (function(t) {
  6364. i += " " + t.name + '="' + t.value + '"'
  6365. }
  6366. ));
  6367. i += ">",
  6368. e.hasChildNodes() && [].forEach.call(e.childNodes, (function(e) {
  6369. i += t(e)
  6370. }
  6371. ));
  6372. return i += "</" + e.tagName + ">"
  6373. }(e);
  6374. case 3:
  6375. return function(t) {
  6376. return t.textContent.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;")
  6377. }(e);
  6378. case 8:
  6379. return function(t) {
  6380. return "\x3c!--" + t.nodeValue + "--\x3e"
  6381. }(e)
  6382. }
  6383. }
  6384. Object.defineProperty(SVGElement.prototype, "innerHTML", {
  6385. get: function() {
  6386. var e = "";
  6387. return [].forEach.call(this.childNodes, (function(i) {
  6388. e += t(i)
  6389. }
  6390. )),
  6391. e
  6392. },
  6393. set: function(t) {
  6394. for (; this.firstChild; )
  6395. this.removeChild(this.firstChild);
  6396. try {
  6397. var e = new DOMParser;
  6398. e.async = !1;
  6399. var i = "<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>" + t + "</svg>"
  6400. , n = e.parseFromString(i, "text/xml").documentElement;
  6401. [].forEach.call(n.childNodes, function(t) {
  6402. this.appendChild(this.ownerDocument.importNode(t, !0))
  6403. }
  6404. .bind(this))
  6405. } catch (t) {
  6406. throw new Error("Error parsing markup string")
  6407. }
  6408. }
  6409. }),
  6410. Object.defineProperty(SVGElement.prototype, "innerSVG", {
  6411. get: function() {
  6412. return this.innerHTML
  6413. },
  6414. set: function(t) {
  6415. this.innerHTML = t
  6416. }
  6417. })
  6418. }()
  6419. }
  6420. , function(t, e, i) {
  6421. "use strict";
  6422. var n = this && this.__importDefault || function(t) {
  6423. return t && t.__esModule ? t : {
  6424. default: t
  6425. }
  6426. }
  6427. ;
  6428. Object.defineProperty(e, "__esModule", {
  6429. value: !0
  6430. });
  6431. var g = i(3)
  6432. , A = n(i(27))
  6433. , r = i(2)
  6434. , o = function() {
  6435. function t(t) {
  6436. var e = this
  6437. , i = t.dom
  6438. , n = t.padding
  6439. , g = void 0 === n ? 20 : n;
  6440. this.processings = [],
  6441. Object.defineProperty(this, "processing", {
  6442. get: function() {
  6443. return this.processings.find((function(t) {
  6444. return t.show
  6445. }
  6446. ))
  6447. }
  6448. }),
  6449. this.layer = i,
  6450. this.padding = g,
  6451. this.isDestroy = !1,
  6452. this.resizeHandle = function() {
  6453. return e.processing.data && e.adapt(e.processing.data)
  6454. }
  6455. ,
  6456. this.init()
  6457. }
  6458. return t.prototype.addProcessing = function() {
  6459. var t = new A.default({
  6460. dom: this.layer
  6461. });
  6462. return t.cad = this,
  6463. this.processings.push(t),
  6464. t
  6465. }
  6466. ,
  6467. t.prototype.delProcessing = function(t) {
  6468. t.render.elements.forEach((function(t) {
  6469. return t.destroy()
  6470. }
  6471. )),
  6472. this.processings.splice(this.processings.indexOf(t), 1)
  6473. }
  6474. ,
  6475. t.prototype.adapt = function(t, e, i, n) {
  6476. void 0 === t && (t = this.processing.data);
  6477. var A = this.processings.find((function(e) {
  6478. return e.data.id === t.id
  6479. }
  6480. ));
  6481. e = e || A.render.layer.offsetWidth || parseInt(getComputedStyle(A.render.layer).width) || 100,
  6482. i = i || A.render.layer.offsetHeight || parseInt(getComputedStyle(A.render.layer).height) || 100,
  6483. 0 === t.vertex.length ? A.render.props = g.getMapMultipleWH(e, i, {
  6484. vertex: [{
  6485. x: -15,
  6486. y: -15
  6487. }, {
  6488. x: -15,
  6489. y: 15
  6490. }, {
  6491. x: 15,
  6492. y: -15
  6493. }, {
  6494. x: 15,
  6495. y: 15
  6496. }]
  6497. }, this.padding) : (e && i && (A.render.props = g.getMapMultipleWH(e, i, t, this.padding)),
  6498. A.render.props.scale <= 0 && (A.render.props = {
  6499. width: 0,
  6500. height: 0,
  6501. multiple: 0,
  6502. scale: 1,
  6503. top: 0,
  6504. left: 0
  6505. })),
  6506. A.render.adaptLayer(e, i),
  6507. r.CADElement.update(A.render)
  6508. }
  6509. ,
  6510. t.prototype.init = function() {
  6511. window.addEventListener("resize", this.resizeHandle, !1)
  6512. }
  6513. ,
  6514. t.prototype.destroy = function() {
  6515. for (var t in window.removeEventListener("resize", this.resizeHandle, !1),
  6516. this.processing.destroy(),
  6517. this.processing = null,
  6518. this.isDestroy = !0,
  6519. this)
  6520. "function" == typeof this[t] ? this[t] = function() {}
  6521. : delete this[t]
  6522. }
  6523. ,
  6524. t
  6525. }();
  6526. e.default = o
  6527. }
  6528. , function(t, e, i) {
  6529. "use strict";
  6530. var n = this && this.__assign || function() {
  6531. return (n = Object.assign || function(t) {
  6532. for (var e, i = 1, n = arguments.length; i < n; i++)
  6533. for (var g in e = arguments[i])
  6534. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  6535. return t
  6536. }
  6537. ).apply(this, arguments)
  6538. }
  6539. , g = this && this.__spreadArrays || function() {
  6540. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  6541. t += arguments[e].length;
  6542. var n = Array(t)
  6543. , g = 0;
  6544. for (e = 0; e < i; e++)
  6545. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  6546. g++)
  6547. n[g] = A[r];
  6548. return n
  6549. }
  6550. , A = this && this.__importDefault || function(t) {
  6551. return t && t.__esModule ? t : {
  6552. default: t
  6553. }
  6554. }
  6555. ;
  6556. Object.defineProperty(e, "__esModule", {
  6557. value: !0
  6558. });
  6559. var r = A(i(28))
  6560. , o = i(31)
  6561. , C = i(36)
  6562. , I = i(37)
  6563. , s = i(38)
  6564. , a = function() {
  6565. function t(t) {
  6566. var e = t.dom;
  6567. this.render = new r.default({
  6568. layer: e,
  6569. processing: this
  6570. }),
  6571. this.id = 1,
  6572. this.points = [],
  6573. this.lines = [],
  6574. this.cases = [],
  6575. this.doors = [],
  6576. this.columns = [],
  6577. this.slideDoors = [],
  6578. this.groundCases = [],
  6579. this.taggings = [],
  6580. this.bayCases = [],
  6581. this.furnColumns = [],
  6582. this.furnFlues = [],
  6583. this.doubleDoors = [],
  6584. this.manageShow()
  6585. }
  6586. return t.prototype.manageShow = function() {
  6587. var t = this
  6588. , e = !1;
  6589. Object.defineProperty(this, "show", {
  6590. get: function() {
  6591. return e
  6592. },
  6593. set: function(i) {
  6594. console.log("---------", e),
  6595. e = i,
  6596. t.render.svg.style.display = e ? "block" : "none"
  6597. }
  6598. })
  6599. }
  6600. ,
  6601. t.prototype.rep = function(t) {
  6602. var e = this;
  6603. this.attrs.forEach((function(i) {
  6604. var n = e[i].findIndex((function(e) {
  6605. return e.ele === t
  6606. }
  6607. ));
  6608. ~n && (t.__id = e[i][n] && e[i][n].id,
  6609. e[i].splice(n, 1))
  6610. }
  6611. )),
  6612. this.render || console.error("掉用 rep"),
  6613. this.render && this.render.remove(t)
  6614. }
  6615. ,
  6616. t.prototype.retrofitElementDestroy = function(t) {
  6617. var e = this
  6618. , i = t.destroy;
  6619. t.__load_destroy || (t.__load_destroy = !0,
  6620. t.destroy = function() {
  6621. for (var n = [], A = 0; A < arguments.length; A++)
  6622. n[A] = arguments[A];
  6623. n[0] ? e.rep(t) : t.nextTick((function() {
  6624. return e.rep(t)
  6625. }
  6626. )),
  6627. i.call.apply(i, g([t], n)),
  6628. t.__load_destroy = !1
  6629. }
  6630. )
  6631. }
  6632. ,
  6633. t.prototype.updateWallPoints = function(t, e, i) {}
  6634. ,
  6635. t.prototype.retrofitElementIntercept = function(t) {}
  6636. ,
  6637. t.prototype.depLines = function() {
  6638. for (var t, e = g(this.lines), i = function(i) {
  6639. var n = e[i].ele
  6640. , g = e.some((function(t) {
  6641. var e = t.ele;
  6642. 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])
  6643. }
  6644. ));
  6645. (n.points[0] === n.points[1] || g) && (e[i].ele.destroy(),
  6646. e.splice(i--, 1)),
  6647. t = i
  6648. }, n = 0; n < e.length; n++)
  6649. i(n),
  6650. n = t
  6651. }
  6652. ,
  6653. t.prototype.destroy = function() {
  6654. var t = this
  6655. , e = this.attrs.map((function(e) {
  6656. return t[e]
  6657. }
  6658. ));
  6659. this.data = {
  6660. id: 1,
  6661. show: !0,
  6662. vertex: [],
  6663. wall: [],
  6664. window: [],
  6665. column: [],
  6666. door: [],
  6667. surplus: [],
  6668. slideDoor: [],
  6669. tagging: [],
  6670. groundCase: [],
  6671. bayCase: [],
  6672. doubleDoor: [],
  6673. furnColumn: [],
  6674. furnFlue: [],
  6675. dire: 0
  6676. },
  6677. e.forEach((function(t) {
  6678. for (; t.length; )
  6679. t[0].ele.destroy(!0)
  6680. }
  6681. )),
  6682. this.render.destroy(),
  6683. this.render = null
  6684. }
  6685. ,
  6686. t
  6687. }();
  6688. e._Processing = a,
  6689. e.default = a;
  6690. var l = n(n(n(n({}, o.methods), C.methods), I.methods), s.methods);
  6691. Object.keys(l).forEach((function(t) {
  6692. return a.prototype[t] = l[t]
  6693. }
  6694. ))
  6695. }
  6696. , function(t, e, i) {
  6697. "use strict";
  6698. Object.defineProperty(e, "__esModule", {
  6699. value: !0
  6700. });
  6701. var n = i(2)
  6702. , g = i(1)
  6703. , A = function() {
  6704. function t(t) {
  6705. var e = this
  6706. , i = t.layer
  6707. , g = t.width
  6708. , A = void 0 === g ? i.offsetWidth : g
  6709. , r = t.height
  6710. , o = void 0 === r ? i.offsetHeight : r
  6711. , C = t.processing;
  6712. this.clickHandle = function() {
  6713. e.elements.forEach((function(t) {
  6714. return t.changeSelect(!1)
  6715. }
  6716. ))
  6717. }
  6718. ,
  6719. n.CADElement.init(this),
  6720. this.props = {
  6721. left: 0,
  6722. top: 0,
  6723. width: A,
  6724. height: o,
  6725. multiple: 1,
  6726. scale: 1
  6727. },
  6728. this.elements = [],
  6729. this.processing = C,
  6730. this.init(i)
  6731. }
  6732. return t.prototype.init = function(t) {
  6733. this.svg = document.createElementNS(g.SVGURI, "svg"),
  6734. this.g = document.createElementNS(g.SVGURI, "g"),
  6735. this.svg.appendChild(this.g),
  6736. this.layer = t,
  6737. this.layer.style.position = "relative",
  6738. this.svg.style.position = "absolute",
  6739. this.svg.style.left = "0",
  6740. this.svg.style.top = "0",
  6741. this.svg.style.right = "0",
  6742. this.svg.style.bottom = "0",
  6743. this.svg.setAttribute("version", "1.0"),
  6744. this.svg.setAttribute("xmlns", "http://www.w3.org/2000/svg"),
  6745. this.svg.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"),
  6746. this.svg.addEventListener("click", this.clickHandle, !1),
  6747. this.layer.appendChild(this.svg)
  6748. }
  6749. ,
  6750. t.prototype.adaptLayer = function(t, e) {
  6751. void 0 === t && (t = this.layer.offsetWidth),
  6752. void 0 === e && (e = this.layer.offsetHeight);
  6753. var i = this.props.width / 2 - this.props.left
  6754. , g = this.props.height / 2 - this.props.top;
  6755. 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 "),
  6756. this.svg.setAttribute("width", t.toString()),
  6757. this.svg.setAttribute("height", e.toString()),
  6758. this.svg.setAttribute("viewBox", "0 0 " + this.props.width + " " + this.props.height),
  6759. this.realWidth = t,
  6760. this.realHeight = e,
  6761. n.CADElement.update(this)
  6762. }
  6763. ,
  6764. t.prototype.render = function() {
  6765. n.CADElement.update(this)
  6766. }
  6767. ,
  6768. t.prototype.screenToRealPoint = function(t) {
  6769. var e = t.x
  6770. , i = t.y
  6771. , n = this.props.width / 2 - this.props.left
  6772. , g = this.props.height / 2 - this.props.top
  6773. , A = this.props.width / this.props.multiple
  6774. , r = this.props.height / this.props.multiple;
  6775. return 0 == A || 0 == r ? {
  6776. x: n,
  6777. y: g
  6778. } : {
  6779. x: (e * this.props.width / A - this.props.left - n) / this.props.scale + n,
  6780. y: (i * this.props.height / r - this.props.top - g) / this.props.scale + g
  6781. }
  6782. }
  6783. ,
  6784. t.prototype.realPointToScreen = function(t) {
  6785. var e = t.x
  6786. , i = t.y
  6787. , n = this.props.width / 2 - this.props.left
  6788. , g = this.props.height / 2 - this.props.top
  6789. , A = this.props.width / this.props.multiple
  6790. , r = this.props.height / this.props.multiple;
  6791. return {
  6792. x: ((e - n) * this.props.scale + n + this.props.left) * A / this.props.width,
  6793. y: ((i - g) * this.props.scale + g + this.props.top) * r / this.props.height
  6794. }
  6795. }
  6796. ,
  6797. t.prototype.push = function() {
  6798. for (var t = this, e = [], i = 0; i < arguments.length; i++)
  6799. e[i] = arguments[i];
  6800. e.forEach((function(e) {
  6801. var i = t.elements.find((function(t) {
  6802. return t.zIndex > e.zIndex
  6803. }
  6804. ));
  6805. if (i) {
  6806. try {
  6807. t.g.insertBefore(e.real, i.real)
  6808. } catch (i) {
  6809. t.g.appendChild(e.real)
  6810. }
  6811. t.elements.splice(t.elements.indexOf(i), 0, e)
  6812. } else
  6813. t.g.appendChild(e.real),
  6814. t.elements.push(e)
  6815. }
  6816. ))
  6817. }
  6818. ,
  6819. t.prototype.remove = function() {
  6820. for (var t = this, e = [], i = 0; i < arguments.length; i++)
  6821. e[i] = arguments[i];
  6822. e.forEach((function(e) {
  6823. try {
  6824. t.g.removeChild(e.real)
  6825. } catch (t) {}
  6826. ~t.elements.indexOf(e) && t.elements.splice(t.elements.indexOf(e), 1)
  6827. }
  6828. ))
  6829. }
  6830. ,
  6831. t.prototype.destroy = function() {
  6832. this.svg.removeEventListener("click", this.clickHandle, !1),
  6833. this.layer.removeChild(this.svg)
  6834. }
  6835. ,
  6836. t
  6837. }();
  6838. e.default = A
  6839. }
  6840. , function(t, e, i) {
  6841. "use strict";
  6842. var n = this && this.__assign || function() {
  6843. return (n = Object.assign || function(t) {
  6844. for (var e, i = 1, n = arguments.length; i < n; i++)
  6845. for (var g in e = arguments[i])
  6846. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  6847. return t
  6848. }
  6849. ).apply(this, arguments)
  6850. }
  6851. , g = this && this.__awaiter || function(t, e, i, n) {
  6852. return new (i || (i = Promise))((function(g, A) {
  6853. function r(t) {
  6854. try {
  6855. C(n.next(t))
  6856. } catch (t) {
  6857. A(t)
  6858. }
  6859. }
  6860. function o(t) {
  6861. try {
  6862. C(n.throw(t))
  6863. } catch (t) {
  6864. A(t)
  6865. }
  6866. }
  6867. function C(t) {
  6868. var e;
  6869. t.done ? g(t.value) : (e = t.value,
  6870. e instanceof i ? e : new i((function(t) {
  6871. t(e)
  6872. }
  6873. ))).then(r, o)
  6874. }
  6875. C((n = n.apply(t, e || [])).next())
  6876. }
  6877. ))
  6878. }
  6879. , A = this && this.__generator || function(t, e) {
  6880. var i, n, g, A, r = {
  6881. label: 0,
  6882. sent: function() {
  6883. if (1 & g[0])
  6884. throw g[1];
  6885. return g[1]
  6886. },
  6887. trys: [],
  6888. ops: []
  6889. };
  6890. return A = {
  6891. next: o(0),
  6892. throw: o(1),
  6893. return: o(2)
  6894. },
  6895. "function" == typeof Symbol && (A[Symbol.iterator] = function() {
  6896. return this
  6897. }
  6898. ),
  6899. A;
  6900. function o(A) {
  6901. return function(o) {
  6902. return function(A) {
  6903. if (i)
  6904. throw new TypeError("Generator is already executing.");
  6905. for (; r; )
  6906. try {
  6907. if (i = 1,
  6908. n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n),
  6909. 0) : n.next) && !(g = g.call(n, A[1])).done)
  6910. return g;
  6911. switch (n = 0,
  6912. g && (A = [2 & A[0], g.value]),
  6913. A[0]) {
  6914. case 0:
  6915. case 1:
  6916. g = A;
  6917. break;
  6918. case 4:
  6919. return r.label++,
  6920. {
  6921. value: A[1],
  6922. done: !1
  6923. };
  6924. case 5:
  6925. r.label++,
  6926. n = A[1],
  6927. A = [0];
  6928. continue;
  6929. case 7:
  6930. A = r.ops.pop(),
  6931. r.trys.pop();
  6932. continue;
  6933. default:
  6934. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  6935. r = 0;
  6936. continue
  6937. }
  6938. if (3 === A[0] && (!g || A[1] > g[0] && A[1] < g[3])) {
  6939. r.label = A[1];
  6940. break
  6941. }
  6942. if (6 === A[0] && r.label < g[1]) {
  6943. r.label = g[1],
  6944. g = A;
  6945. break
  6946. }
  6947. if (g && r.label < g[2]) {
  6948. r.label = g[2],
  6949. r.ops.push(A);
  6950. break
  6951. }
  6952. g[2] && r.ops.pop(),
  6953. r.trys.pop();
  6954. continue
  6955. }
  6956. A = e.call(t, r)
  6957. } catch (t) {
  6958. A = [6, t],
  6959. n = 0
  6960. } finally {
  6961. i = g = 0
  6962. }
  6963. if (5 & A[0])
  6964. throw A[1];
  6965. return {
  6966. value: A[0] ? A[1] : void 0,
  6967. done: !0
  6968. }
  6969. }([A, o])
  6970. }
  6971. }
  6972. }
  6973. , r = this && this.__spreadArrays || function() {
  6974. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  6975. t += arguments[e].length;
  6976. var n = Array(t)
  6977. , g = 0;
  6978. for (e = 0; e < i; e++)
  6979. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  6980. g++)
  6981. n[g] = A[r];
  6982. return n
  6983. }
  6984. ;
  6985. Object.defineProperty(e, "__esModule", {
  6986. value: !0
  6987. });
  6988. var o = i(3)
  6989. , C = function() {
  6990. function t(t, e) {
  6991. var i = this
  6992. , n = e.notice
  6993. , C = e.intercept
  6994. , I = e.childAttr
  6995. , s = e.afferent;
  6996. return this.updateNotices = [],
  6997. this.changeNotices = [],
  6998. this.getSubAll = function() {
  6999. var t = [];
  7000. return i.subscribe.forEach((function(e) {
  7001. t.push.apply(t, e.getSubAll())
  7002. }
  7003. )),
  7004. r(i.subscribe, t)
  7005. }
  7006. ,
  7007. this.data = t,
  7008. this.subscribe = [],
  7009. this.updateKeys = new Set,
  7010. this.attrs = [],
  7011. this.intercept = C,
  7012. this.afferent = s,
  7013. this.notice = n,
  7014. this.direct = !1,
  7015. this.childAttr = I,
  7016. this.deleteUpdateKey = this.deleteUpdateKey.bind(this),
  7017. this.addUpdateKey = this.addUpdateKey.bind(this),
  7018. this.changeNotices = [],
  7019. this.setHandle = o.debounce((function(t) {
  7020. return g(i, void 0, void 0, (function() {
  7021. var e;
  7022. return A(this, (function(i) {
  7023. switch (i.label) {
  7024. case 0:
  7025. return [4, this.setVal.apply(this, t)];
  7026. case 1:
  7027. return e = i.sent(),
  7028. Object.keys(t[4]).forEach(this.deleteUpdateKey),
  7029. this.noticeTick(),
  7030. this.noticeAll(e || {
  7031. args: {}
  7032. }),
  7033. e && this.noticeChange(),
  7034. [2]
  7035. }
  7036. }
  7037. ))
  7038. }
  7039. ))
  7040. }
  7041. ), 0, (function(t) {
  7042. var e = t[0][0]
  7043. , i = e.sub
  7044. , n = e.current
  7045. , g = e.state
  7046. , A = e.childAttr
  7047. , r = {};
  7048. return t.forEach((function(t) {
  7049. var e = t[0]
  7050. , i = e.key
  7051. , n = e.val;
  7052. return r[i] = n
  7053. }
  7054. )),
  7055. [i, n, g, A, r]
  7056. }
  7057. ), (function() {
  7058. i.changeNotices = []
  7059. }
  7060. )),
  7061. this
  7062. }
  7063. return t.prototype.addUpdateKey = function(t) {
  7064. var e = this;
  7065. this.updateKeys.add(t),
  7066. this.subscribe.forEach((function(t) {
  7067. t.updateKeys.has(e) || t.addUpdateKey(e)
  7068. }
  7069. ))
  7070. }
  7071. ,
  7072. t.prototype.deleteUpdateKey = function(t) {
  7073. var e = this;
  7074. this.updateKeys.delete(t),
  7075. 0 === this.updateKeys.size && (this.subscribe.forEach((function(t) {
  7076. t.deleteUpdateKey(e)
  7077. }
  7078. )),
  7079. this.test && this.test())
  7080. }
  7081. ,
  7082. t.prototype.noticeTick = function() {
  7083. if (0 === this.updateKeys.size)
  7084. for (; this.updateNotices.length; )
  7085. this.updateNotices.shift()();
  7086. this.subscribe.forEach((function(t) {
  7087. return t.noticeTick()
  7088. }
  7089. ))
  7090. }
  7091. ,
  7092. t.prototype.noticeChange = function() {
  7093. for (; this.changeNotices.length; )
  7094. this.changeNotices.shift()();
  7095. this.subscribe.forEach((function(t) {
  7096. return t.noticeChange()
  7097. }
  7098. ))
  7099. }
  7100. ,
  7101. t.prototype.nextTick = function(t) {
  7102. var e = this;
  7103. setTimeout((function() {
  7104. 0 === e.updateKeys.size ? t() : (e.updateNotices.push(t),
  7105. setTimeout((function() {
  7106. if (~e.updateNotices.indexOf(t)) {
  7107. e.updateNotices.slice(e.updateNotices.indexOf(t), 1);
  7108. t()
  7109. }
  7110. }
  7111. ), 200))
  7112. }
  7113. ))
  7114. }
  7115. ,
  7116. t.prototype.nextChange = function(t) {
  7117. this.changeNotices.push(t)
  7118. }
  7119. ,
  7120. t.prototype.interceptAll = function(t) {
  7121. return g(this, void 0, void 0, (function() {
  7122. var e, i, n, g, C, I;
  7123. return A(this, (function(A) {
  7124. for (e = [],
  7125. i = [],
  7126. g = r([this], this.getSubAll()),
  7127. C = void 0,
  7128. I = 0; C = g[I]; I++)
  7129. if (i.push(C.afferent),
  7130. C.intercept) {
  7131. if (n = C.intercept(i, t, e),
  7132. e.push(n),
  7133. o.type.isBoolean(n) && !n)
  7134. return [2, !1]
  7135. } else
  7136. e.push(void 0);
  7137. return [2, e]
  7138. }
  7139. ))
  7140. }
  7141. ))
  7142. }
  7143. ,
  7144. t.prototype.noticeAll = function(t) {
  7145. t = n(n({}, t), {
  7146. state: {
  7147. data: this.afferent || this,
  7148. trigger: t.state,
  7149. ret: void 0
  7150. }
  7151. });
  7152. var e = this.notice(t);
  7153. t.state.ret = e;
  7154. for (var i = 0; i < this.subscribe.length; i++)
  7155. this.subscribe[i].noticeAll(t);
  7156. return t
  7157. }
  7158. ,
  7159. t.prototype.bindDataChange = function() {
  7160. var t = this;
  7161. this.__firstBind = !0,
  7162. Object.keys(this.data).forEach((function(e) {
  7163. t.attrs.push(e),
  7164. t.bindItem(t, t, t.data, e, t.childAttr)
  7165. }
  7166. )),
  7167. this.__firstBind = !1
  7168. }
  7169. ,
  7170. t.prototype.getSeftSub = function() {
  7171. return [this, this.subscribe.flatMap((function(t) {
  7172. return t.getSeftSub()
  7173. }
  7174. ))]
  7175. }
  7176. ,
  7177. t.prototype.setVal = function(t, e, i, r, C) {
  7178. return g(this, void 0, void 0, (function() {
  7179. var g, I, s, a = this;
  7180. return A(this, (function(A) {
  7181. switch (A.label) {
  7182. case 0:
  7183. return g = {
  7184. args: C
  7185. },
  7186. !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),
  7187. [4, t.interceptAll(C)];
  7188. case 1:
  7189. return (I = A.sent()) ? (s = n({}, C),
  7190. I.forEach((function(t) {
  7191. return s = n(n({}, s), t)
  7192. }
  7193. )),
  7194. Object.keys(i).forEach((function(n) {
  7195. s.hasOwnProperty(n) && i[n] !== s[n] && (a.relieveOldSubs(i[n], r),
  7196. i[n] = s[n],
  7197. a.continueListen(t, e, i, n, r, s[n]))
  7198. }
  7199. )),
  7200. [2, g]) : [2, null]
  7201. }
  7202. }
  7203. ))
  7204. }
  7205. ))
  7206. }
  7207. ,
  7208. t.prototype.relieveOldSubs = function(e, i) {
  7209. var n = this;
  7210. 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) {
  7211. n.relieveOldSub(t, i)
  7212. }
  7213. )) : o.type.isObject(e) && Object.values(e).forEach((function(t) {
  7214. n.relieveOldSub(t, i)
  7215. }
  7216. )))
  7217. }
  7218. ,
  7219. t.prototype.relieveOldSub = function(e, i) {
  7220. 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)
  7221. }
  7222. ,
  7223. t.prototype.continueListen = function(e, i, n, g, A, r) {
  7224. var C = this;
  7225. 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) {
  7226. C.bindItem(e, i[g], r, n, A, !0)
  7227. }
  7228. )) : o.type.isObject(r) && Object.keys(n[g]).forEach((function(t) {
  7229. C.bindItem(e, i[g], r, t, A, !0)
  7230. }
  7231. )))
  7232. }
  7233. ,
  7234. t.prototype.bindItem = function(e, i, n, g, A, r) {
  7235. void 0 === r && (r = !1),
  7236. n instanceof t ? n.subscribe.push(e) : A && n[g] && n[g][A]instanceof t && n[g][A].subscribe.push(e),
  7237. r || (Object.defineProperty(i, g, {
  7238. get: function() {
  7239. return n[g]
  7240. },
  7241. set: function(t) {
  7242. this.__firstBind || this.direct ? (n[g] = t,
  7243. this.continueListen(e, i, n, g, A, t)) : (this.addUpdateKey(g),
  7244. this.setHandle({
  7245. sub: e,
  7246. current: i,
  7247. state: n,
  7248. key: g,
  7249. childAttr: A,
  7250. val: t
  7251. }))
  7252. }
  7253. }),
  7254. this.continueListen(e, i, n, g, A, n[g]))
  7255. }
  7256. ,
  7257. t
  7258. }();
  7259. e._State = C,
  7260. e.getter = function(t, e) {
  7261. e.attrs.forEach((function(i) {
  7262. Object.defineProperty(t, i, {
  7263. configurable: !0,
  7264. get: function() {
  7265. return e[i]
  7266. }
  7267. })
  7268. }
  7269. ))
  7270. }
  7271. ,
  7272. e.setter = function(t, e) {
  7273. e.attrs.forEach((function(i) {
  7274. Object.defineProperty(t, i, {
  7275. configurable: !0,
  7276. set: function(t) {
  7277. e[i] = t
  7278. }
  7279. })
  7280. }
  7281. ))
  7282. }
  7283. ,
  7284. e.State = C
  7285. }
  7286. , function(t, e, i) {
  7287. "use strict";
  7288. Object.defineProperty(e, "__esModule", {
  7289. value: !0
  7290. }),
  7291. e.default = {
  7292. menu: {
  7293. __name: "菜单",
  7294. music: "背景音乐",
  7295. base: "基础设置",
  7296. information: "场景信息",
  7297. screen: "初始画面",
  7298. hotspot: "添加热点",
  7299. guide: "自动导览",
  7300. sign: "地面Logo",
  7301. walk: "漫游可行",
  7302. model: "3D模型",
  7303. cad: "户型图",
  7304. data: "数据对接",
  7305. custom: "上传下载",
  7306. videos: "添加视频",
  7307. vrhouse: "看房 4Dkankan",
  7308. business: "看店 4Dkankan",
  7309. scene: "场景跳转",
  7310. video: "添加视频",
  7311. decor: "一键换装",
  7312. link: "场景关联"
  7313. },
  7314. modules: {
  7315. __name: "模块",
  7316. base: {
  7317. __name: "基础设置",
  7318. qrcode: "场景二维码",
  7319. qrcode_download: "下载二维码",
  7320. qrcode_tips: "自定义logo",
  7321. scene_link: "场景地址",
  7322. scene_link_copy: "复制链接",
  7323. scene_link_copy_tips: "场景链接复制成功",
  7324. bgm: "背景音乐",
  7325. pano_text: "漫游视角可视",
  7326. mode_2d_text: "平面图可视",
  7327. mode_3d_text: "三维模型可视",
  7328. map_text: "小地图预览可视",
  7329. vr_text: "VR模式可视",
  7330. vr_tips: "请在手机展示页面观看VR效果",
  7331. guide_text: "自动导览可视",
  7332. rule_text: "标尺可视",
  7333. cad_text: "俯视图户型可视",
  7334. measure_text: "测量工具可视",
  7335. measure_tips: "编辑模式下无法使用测距功能,请在展示页面操作",
  7336. turned_vr: "VR功能已{status}",
  7337. turned_map: "小地图功能已{status}",
  7338. turned_cad: "俯视图户型功能已{status}",
  7339. turned_m2d: "平面视角功能已{status}",
  7340. turned_m3d: "三维视角功能已{status}",
  7341. turned_pano: "漫游视角功能已{status}",
  7342. turned_rule: "标尺功能已{status}",
  7343. turned_guide: "自动导览功能已{status}",
  7344. turned_measure: "测距功能已{status}",
  7345. shortcut_copy: "一键复制",
  7346. share_link: "分享链接给好友",
  7347. measure_show_tips: "请在展示页面使用测距功能",
  7348. delete_measure_line: "删除测量线",
  7349. please_click_tips: "'请点击“允许”'",
  7350. vr_fail_app_tips: "浏览器未能检测到转动。请在手机或浏览器设置中开启了运动和方向访问等设置,然后刷新此页面。",
  7351. vr_fail_safari_tips: "浏览器未能检测到转动。为完整体验VR效果,请打开 “设置” > “Safari” > “隐私和安全” 下的 “运动和方向访问” 开关,然后刷新此页面。",
  7352. loading_bottom_text: "四维时代提供技术支持",
  7353. vr_fail_reopen_tips: "运动和方向访问失败。您需要完全关闭此应用,然后再次打开,并允许访问运动与方向",
  7354. add_music_title: "添加背景音乐",
  7355. add_music_tips: "支持MP3、WAV等音频格式,不超过5MB",
  7356. re_add_music: "重新添加",
  7357. re_add_title: "重新添加背景音乐",
  7358. re_add_tips: "新添加的音乐会替换已添加的音乐,<br>确定继续添加吗?",
  7359. re_add_mobile_tips: "重新添加将会覆盖已添加音乐",
  7360. delete_tips: "您确定删除当前音乐吗?",
  7361. delete_title: "删除背景音乐",
  7362. bgm_empty_tips: "请选择背景音乐",
  7363. wechat: "微信",
  7364. friend_circle: "朋友圈"
  7365. },
  7366. information: {
  7367. __name: "场景信息",
  7368. title: "标题",
  7369. title_tips: "请填写标题",
  7370. title_require: "请添加标题({limit}字以内)",
  7371. description: "简介",
  7372. description_tips: "请填写简介",
  7373. link: "添加链接",
  7374. link_text_tips: "请填写链接文本",
  7375. link_href_tips: "请填写链接地址",
  7376. link_text_require: "请填写链接文本",
  7377. link_href_require: "请填写链接地址",
  7378. classify: "分类",
  7379. upload_time: "上传时间",
  7380. record: "未记录",
  7381. shoot_count: "拍摄数量",
  7382. password: "访问密码",
  7383. password_tips: "访问密码",
  7384. password_desc: "设置完密码后,当其他人访问您的场景时,需要输入您设置的密码才能访问。如无需设置点击“公开”即可。",
  7385. password_require: "请输入{limit}位数的密码",
  7386. logo_edit: "编辑页面Logo",
  7387. logo_exit: "退出页面Logo编辑",
  7388. logo_show_bottom: "显示初始Logo",
  7389. logo_style1: "顶部Logo-方",
  7390. logo_style2: "顶部Logo-长",
  7391. logo_delete: "是否删除已上传Logo?"
  7392. },
  7393. screen: {
  7394. __name: "初始画面",
  7395. current: "当前初始视角",
  7396. current_set: "设置为初始画面",
  7397. tips: "移动屏幕,点击保存您的初始画面。"
  7398. },
  7399. hotspot: {
  7400. __name: "添加热点",
  7401. add: "添加热点",
  7402. edit: "编辑热点",
  7403. count: "已添加热点",
  7404. location: "热点定位",
  7405. location_tips: "将热点标记并拖动到合适的位置。",
  7406. location_modify: "修改热点位置",
  7407. location_confirm: "确定热点位置",
  7408. location_desc: "请于左方两个场景区域拖动热点并对准所需标记的位置。",
  7409. style: "选择热点样式",
  7410. style_desc: "选择默认样式,或者手动上传图片自定义样式,上传图片格式PNG/JPG",
  7411. style_name: "样式",
  7412. style_dele: "是否删除该样式?",
  7413. style_manage: "管理",
  7414. style_exit: "退出",
  7415. media_photo: "可添加图片以丰富热点内容",
  7416. media_video: "可上传本地视频,进行更多的展示",
  7417. media_voice: "可上传本地音频内容进行热点讲解",
  7418. media_link: "可添加视频的超链接,视频将在热点里播放",
  7419. title: "标题",
  7420. title_tips: "请填写标题",
  7421. title_require: "请添加标题({limit}字以内)",
  7422. description: "简介",
  7423. description_tips: "请填写简介",
  7424. text_link: "添加链接",
  7425. text_link_text_tips: "请填写链接文本",
  7426. text_link_href_tips: "请填写链接地址",
  7427. text_link_text_require: "链接文本不能为空",
  7428. text_link_href_require: "链接地址不能为空",
  7429. link: "嵌入式链接",
  7430. link_require: "请添加外链",
  7431. photo: "图片",
  7432. voice: "音频",
  7433. video: "视频",
  7434. photo_tips: "支持JPG、PNG等图片格式,不超过{size}MB",
  7435. voice_tips: "支持MP3、WAV等音频格式,不超过{size}MB",
  7436. video_tips: "支持MP4、MOV等视频格式,不超过{size}MB",
  7437. photo_require: "请添加图片",
  7438. voice_require: "请添加音频",
  7439. video_require: "请添加视频",
  7440. m_location_tips1: "将上下分屏热点对准同一个所标记目标",
  7441. m_location_tips2: "确定热点位置,点击下一步编辑内容",
  7442. m_location_up: "上方",
  7443. m_location_left: "左侧",
  7444. m_location_move_tips: "辅助校准位置可能不准确,<br>请检查并拖动到{direction}相同位置",
  7445. set_visible_btn: "设置热点可视",
  7446. save_visible_btn: "保存当前设置",
  7447. save_hotspot_done: "保存热点成功",
  7448. save_hotspot_fail: "保存热点失败",
  7449. delete_hotspot_tips: "是否删除当前热点?",
  7450. delete_hotspot_done: "热点删除成功",
  7451. delete_hotspot_fail: "热点删除失败",
  7452. cant_add_hotspot_tips: "无法添加热点",
  7453. cant_add_hotspot_content: "热点数目已达最大:{limit}",
  7454. link_text_tips: "链接标题",
  7455. link_href_tips: "链接",
  7456. link_text_require: "请填写链接文本",
  7457. link_href_require: "请填写链接地址",
  7458. add_media: "添加多媒体"
  7459. },
  7460. guide: {
  7461. __name: "自动导览",
  7462. route: "导航路线",
  7463. view: "切换视角",
  7464. record: "开始录制",
  7465. record_audio: "录音",
  7466. pause: "暂停",
  7467. stop: "停止",
  7468. end: "结束",
  7469. delete: "删除",
  7470. continue: "继续录制",
  7471. preview: "预览",
  7472. clear: "清空",
  7473. sync: "声画同步",
  7474. sound: "录制音频",
  7475. file: "上传音频",
  7476. file_add: "添加音频",
  7477. tips: "点击开始录制导览",
  7478. start: "开始",
  7479. finish: "完成录制",
  7480. less: "小于",
  7481. replace_tips: "是否重新录制导览?",
  7482. replace_content: "重新录制将覆盖之前的数据",
  7483. sound_open_fail_tips: "麦克风开启失败",
  7484. sound_tips: "麦克风开启失败,是否继续录制?",
  7485. sound_content: "您需要在浏览器的设置中允许此网站使用麦克风,并且添加麦克风设备,然后刷新该页面。",
  7486. upload_sound_done: "上传语音讲解成功",
  7487. upload_sound_fail: "上传语音讲解失败",
  7488. delete_sound_done: "删除语音讲解成功",
  7489. delete_sound_fail: "删除语音讲解失败",
  7490. room_title: "标题",
  7491. room_title_tips: "请输入导览标题",
  7492. room_title_require: "请输入标题",
  7493. room_panel_title: "导览信息",
  7494. room_sound_title: "录制音频",
  7495. delete_video_content: "您当前录制的画面将会被删除",
  7496. delete_file_content: "您当前上传的语音讲解将会被删除",
  7497. delete_sound_content: "已录制配音将会被删除",
  7498. camera_save_success: "镜头保存成功",
  7499. clear_video_tip: "您当前录制的内容将会被清空",
  7500. saving_sound: "正在保存录音",
  7501. save_sound_done: "录音保存成功",
  7502. save_sound_fail: "录音保存失败",
  7503. no_sound_tips: "当前不支持录音<br>可在微信或电脑端录音",
  7504. sound_success_tips: "麦克风开启成功",
  7505. sound_fail_tips: "当前不支持录音<br>公众号信息配置错误",
  7506. wechat_sound_fail_tips: "微信麦克风开启失败",
  7507. open_sound_guide_tips: "可能您若要开启录音,请于微信的设置—隐私—授权管理中开启。且保证录音设备正常",
  7508. sound_cant_open_tips: "此浏览器不支持录音。<br>建议更换其他主流浏览器,体验更佳",
  7509. replace_sound_tips: "是否重新录制?",
  7510. replace_sound_content: "已有语音讲解将会被替换",
  7511. merge_sound_fail: "合并语音讲解失败",
  7512. sound_limit: "录制时长为{time}分钟,当前已经达到上限",
  7513. select_to_record: "请选择对应点位进行本区域的导览录制"
  7514. },
  7515. sign: {
  7516. title: "Logo样式",
  7517. size: "Logo大小",
  7518. style0: "样式一",
  7519. style1: "样式二",
  7520. style2: "样式三",
  7521. style3: "手动上传"
  7522. },
  7523. walk: {
  7524. title: "漫游可行",
  7525. tips1: "通过设置漫游可行,进一步优化在漫游时出现的体验;例如,您在漫游时,出现穿透房间的情况。",
  7526. tips2: "通过点选各个漫游点的连线即可设置漫游点的可行性。",
  7527. save: "保存当前设置",
  7528. hide: "隐藏该点位置",
  7529. show: "显示该点位置",
  7530. pano_tips: "提示:您隐藏了初始画面点位,此操作将使进入场景后无法漫游。"
  7531. },
  7532. model: {
  7533. __name: "3D模型",
  7534. cad: "CAD视角",
  7535. cad_download: "平面图下载",
  7536. view: "切换视角",
  7537. title: "增添结构",
  7538. title_door: "门窗类",
  7539. title_component: "构建类",
  7540. title_other: "其他",
  7541. attribute: "属性",
  7542. door: "门",
  7543. double_door: "门",
  7544. slideDoor: "移门",
  7545. casement: "窗",
  7546. bayCase: "飘窗",
  7547. groundCase: "落地窗",
  7548. column: "柱子",
  7549. furnColumn: "框架柱",
  7550. furnFlue: "烟道",
  7551. point: "点",
  7552. line: "墙",
  7553. tagging: "标注",
  7554. tagging_name_tips: "请输入名称",
  7555. tagging_area_tips: "输入面积,支持小数点后面两位",
  7556. direction: "指南针",
  7557. wallLine: "墙属性",
  7558. widget_delete: "{widget}将被删除",
  7559. panel_btn_default: "恢复默认",
  7560. panel_btn_delete: "删除部件",
  7561. attr_angle: "旋转角度",
  7562. attr_within: "翻转方向",
  7563. attr_ewidth: "宽度",
  7564. attr_eheight: "高度",
  7565. attr_tick: "厚度",
  7566. attr_showTitle: "标注名称",
  7567. attr_showContent: "标注面积",
  7568. attr_top: "顶部",
  7569. attr_bottom: "底部",
  7570. attr_estart: "入户门",
  7571. success: "成功添加{widget}",
  7572. error_location: "当前位置无法添加{widget}",
  7573. error_outdoor: "户外无法添加{widget}",
  7574. error_something: "当前位置点有建筑,无法添加{widget}",
  7575. error_widget: "当前位置不可添加{widget}",
  7576. enter_adjust_floor: "进入地面高度调节模式",
  7577. exit_adjust_floor: "退出地面高度调节模式",
  7578. color_title: "量角器颜色:"
  7579. },
  7580. cad: {
  7581. __name: "户型图",
  7582. name: "户型图",
  7583. no_tip: "不再提示",
  7584. reset: "重置",
  7585. cad_download: "户型图下载",
  7586. cad_download_ing: "下载中…",
  7587. label_tip: "点击右键或Esc键可以退出添加标注。",
  7588. wall_tip: "点击右键或Esc键可以退出画墙。",
  7589. save_undf_tip: "无法保存空户型图。",
  7590. reload_tip: "即将导入由模型生成的户型图,此操作会清空现有户型,是否继续?",
  7591. reset_tip: "此操作会清空现有户型,是否继续?",
  7592. title_door: "门窗",
  7593. title_component: "构建",
  7594. title_wall: "画墙",
  7595. title_other: "标注",
  7596. border_wall: "外墙",
  7597. wall: "内墙",
  7598. attribute: "属性",
  7599. door: "门",
  7600. slideDoor: "移门",
  7601. doubleDoor: "双开门",
  7602. casement: "窗",
  7603. bayCase: "飘窗",
  7604. groundCase: "落地窗",
  7605. column: "柱子",
  7606. furnColumn: "框架柱",
  7607. furnFlue: "烟道",
  7608. point: "点",
  7609. line: "墙",
  7610. tagging: "单个",
  7611. un_data_tip: "无法下载空户型图,请先绘制。",
  7612. taggings: "多个",
  7613. tagging_name_tips: "请输入名称",
  7614. tagging_custom_name_tips: "自定义房间名称",
  7615. tagging_area_tips: "输入面积,支持小数点后面两位",
  7616. direction: "指南针",
  7617. wallLine: "墙属性",
  7618. widget_delete: "{widget}将被删除",
  7619. panel_btn_default: "恢复默认",
  7620. panel_btn_delete: "删除部件",
  7621. attr_angle: "旋转角度",
  7622. attr_within: "翻转方向",
  7623. attr_ewidth: "宽度",
  7624. attr_eheight: "高度",
  7625. attr_tick: "厚度",
  7626. attr_showTitle: "标注名称",
  7627. attr_showContent: "标注面积",
  7628. attr_top: "顶部",
  7629. attr_bottom: "底部",
  7630. attr_estart: "入户门",
  7631. success: "成功添加{widget}",
  7632. error_location: "当前位置无法添加{widget}",
  7633. error_outdoor: "户外无法添加{widget}",
  7634. error_something: "当前位置点有建筑,无法添加{widget}",
  7635. error_widget: "当前位置不可添加{widget}",
  7636. enter_adjust_floor: "进入地面高度调节模式",
  7637. exit_adjust_floor: "退出地面高度调节模式",
  7638. color_title: "量角器颜色:",
  7639. hall_tests: "整套,客厅,走廊,餐厅,起居室,客餐厅,玄关,门厅",
  7640. room_tests: "主卧,儿童房,次卧,客卧,老人房,卧室",
  7641. other_tests: "书房,厨房,卫生间,多功能室,阳台,储物间,步入式衣柜,外景,露台(无顶),影视间,入房花园",
  7642. rotate: "旋转"
  7643. },
  7644. videos: {
  7645. __name: "添加视频",
  7646. tips: "请先点击场景的基准面,确定视频位置",
  7647. panel_title: "视频属性",
  7648. panel_preview: "预览",
  7649. panel_upload: "上传视频",
  7650. panel_upload_tips: "支持MP4视频格式",
  7651. panel_move: "位移",
  7652. panel_zoom: "缩放",
  7653. panel_thickness: "厚度",
  7654. recoverRatio: "恢复原始比例",
  7655. recoverRatioTip: "恢复视频文件原始长宽比"
  7656. },
  7657. custom: {
  7658. model_title: "模型下载",
  7659. uploading: "文件上传中...",
  7660. download: "原始模型下载",
  7661. download_panos: "下载点位图",
  7662. upload: "修改模型上传",
  7663. title1: "模型下载/上传功能教程",
  7664. tips11: "1.下载场景模型的压缩包后,使用三维软件打开解压后文件“mesh.obj”,即可开展编辑;",
  7665. tips12: "2.编辑完成后,建议将模型贴图进行烘焙,烘焙贴图需控制在1.5M以内,同时,保存的obj文件需要控制在3M以内;",
  7666. tips13: "3.完成1、2步骤后,将obj,mtl,贴图打包为zip压缩包上传即可。",
  7667. title2: "注:",
  7668. tips21: "1.请尽量控制文件大小,以免浏览的时候卡顿,影响体验。",
  7669. tips22: "2.请将obj及压缩包的名称保持一致,否则会替换失败。",
  7670. get_image_fail: "获取贴图失败,可能网络状态不佳,请检查您的网络设置并重新尝试。",
  7671. download_model_fail: "模型下载失败",
  7672. reupload_tips: "上传后点击保存并发布生效",
  7673. panoramic_upload: "全景照片上传",
  7674. panoramic_upload_tips: "上传后点击“保存并发布”即生效",
  7675. panoramic_upload_box_tips: "请上传对应点位名称的JPG图片",
  7676. panoramic_download: "全景照片下载",
  7677. panoramic_download_tips: "请勿修改照片名称和格式",
  7678. panoramic: "全景图片",
  7679. ball_video: "球幕视频",
  7680. ball_video_upload_tips: "上传后点击“保存并发布”即生效",
  7681. ball_video_download_tips: "请勿修改视频名称和格式",
  7682. ball_video_upload_box_tips: "球幕视频支持MP4格式,不超过1024M",
  7683. upload_title: "上传文件",
  7684. upload_format_error: "文件格式错误,请重新上传",
  7685. upload_name_error: "文件名称错误,请重新上传",
  7686. upload_success: "上传成功,保存并发布后才能生效",
  7687. upload_code_5017: "上传模型失败,请参照右侧教程",
  7688. upload_code_5018: "zip文件只能有一层目录或无目录",
  7689. upload_code_5019: "必须有且仅有一个obj和mtl文件",
  7690. upload_code_5020: "贴图需控制在1.5M以内,obj文件需要控制在20M以内。",
  7691. upload_code_5012: "数据不正常",
  7692. upload_code_5023: "上传文件格式不正确,只能是jpg或mp4格式",
  7693. download_tips: "下载后名称与格式请勿修改",
  7694. download_fail: "下载失败"
  7695. },
  7696. vrhouse: {
  7697. __name: "VR看房",
  7698. linkto_management: "前往看房管理后台",
  7699. refer: "刷新",
  7700. scene_link: "场景链接"
  7701. },
  7702. business: {
  7703. __name: "商圈模块",
  7704. list_title: "场景热点列表",
  7705. list_unf: "当前场景没有热点",
  7706. add_tip_info: "请在场景中添加热点后,再绑定热点",
  7707. linkto_management: "前往看店管理后台",
  7708. refer: "刷新",
  7709. scene_link: "场景链接",
  7710. explain: "说明",
  7711. shopexplain: {
  7712. 1: "当前商品数据来源于场景绑定的4DKanKan店铺商品数据,如需增加请点击",
  7713. 2: "此处跳转"
  7714. },
  7715. select_style: "选择热点样式",
  7716. join_info: "关联商品信息",
  7717. add_com: "添加商品",
  7718. join_info_show: "关联商品会在热点中展示",
  7719. select_com: "选择商品"
  7720. },
  7721. link: {
  7722. __name: "跳转关联",
  7723. title1: "锁定关联点",
  7724. title2: "编辑关联点",
  7725. title3: "全景图关联",
  7726. list_text: " 已关联场景({l_count}), 全景图({p_count})",
  7727. btn_new_text: "添加关联点",
  7728. btn_add_title: "关联点定位",
  7729. btn_add_text: "确定关联点位置",
  7730. btn_add_desc: "将关联点标记并拖动到合适的位置。",
  7731. btn_edit_text: "修改关联点位置",
  7732. style: "关联点样式",
  7733. style_name: "样式",
  7734. style_desc: "支持自定义图标,建议尺寸为128x128 像素,格式为jpg/png。",
  7735. style_dele: "是否删除该样式?<br />如该样式在其它关联点使用,也将被删除",
  7736. desc_title: "描述",
  7737. desc_tips: "请输入描述内容",
  7738. desc_require: "请输入描述内容",
  7739. type: "选择关联类型",
  7740. type_photo: "支持上传宽高比为2:1的单张全景图片,建议像素不小于6000x3000像素,文件不超过120M。",
  7741. type_photo_require: "请上传全景图",
  7742. type_link: "请输入目标场景链接",
  7743. type_link_tips: "http(s)://",
  7744. type_link_require: "请输入需要跳转的场景链接",
  7745. enter_title: "进入画面",
  7746. enter_require: "请设置进入画面",
  7747. enter_btn_text: "设置进入画面",
  7748. outer_title: "跳出点位置",
  7749. outer_style: "跳出点样式",
  7750. outer_desc: "支持自定义图标,建议尺寸为128x128像素,格式为jpg/png。",
  7751. outer_require: "请设置跳出点位置",
  7752. outer_btn_text: "设置跳出点位置",
  7753. links_title: "选择全景图",
  7754. links_tips: "选择全景图,拖动到左侧画面相应位置,进行跳转设置。",
  7755. links_cancel_tips: "取消关联设置"
  7756. }
  7757. },
  7758. login: {
  7759. __name: "登录",
  7760. title: "提示",
  7761. login: "去登录",
  7762. logon: "登录完毕,继续",
  7763. login_tips: "您没有登录,请于主页登录后再编辑"
  7764. },
  7765. common: {
  7766. __name: "公用",
  7767. on: "打开",
  7768. off: "关闭",
  7769. add: "添加",
  7770. set: "确定",
  7771. ok: "确定",
  7772. save: "保存",
  7773. cancel: "取消",
  7774. complete: "完成",
  7775. edit: "修改",
  7776. giveup: "放弃",
  7777. commit: "提交",
  7778. photo: "图片",
  7779. voice: "音频",
  7780. video: "视频",
  7781. bgm: "音乐",
  7782. crop: "裁剪",
  7783. upload: "上传",
  7784. download: "下载",
  7785. change: "更改",
  7786. unnamed: "未命名",
  7787. publish: "保存并发布",
  7788. publish_text: "保存并发布成功!",
  7789. publish_tips: "是否立刻前往观看您的场景?",
  7790. publish_btn_ok: "立刻前往",
  7791. publish_btn_no: "暂时不去",
  7792. public: "公开",
  7793. private: "加密",
  7794. waiting: "请稍等...",
  7795. audio: "音频",
  7796. second: "秒",
  7797. delete: "删除",
  7798. prev: "上一步",
  7799. next: "下一步",
  7800. meter: "约{meter}米",
  7801. guide: "导览",
  7802. rule: "测量工具",
  7803. roaming: "漫游",
  7804. continue: "继续",
  7805. ensure_delete: "确定删除",
  7806. text_limit: "限制{limit}字内",
  7807. default: "默认",
  7808. custom: "自定义",
  7809. back: "返回",
  7810. will_delete: "将被删除",
  7811. setup: "设置",
  7812. exit: "退出",
  7813. size: "大小",
  7814. music: {
  7815. __name: "背景音乐",
  7816. none: "无",
  7817. cheerfu: "欢快",
  7818. ethereal: "空灵",
  7819. rhythmic: "节奏",
  7820. nostalgic: "怀旧",
  7821. missing: "想念",
  7822. retro: "复古",
  7823. strings: "琴弦",
  7824. happy: "愉快"
  7825. },
  7826. category: {
  7827. __name: "分类",
  7828. museum: "文博",
  7829. estate: "地产",
  7830. eshop: "电商",
  7831. catering: "餐饮",
  7832. home: "家居",
  7833. other: "其他"
  7834. },
  7835. uploads: {
  7836. __name: "文件上传",
  7837. uploading: "上传中",
  7838. uploaded: "已上传",
  7839. wait: "等待上传...",
  7840. error: "上传出错",
  7841. add: "添加文件",
  7842. start: "开始上传",
  7843. file_require: "请添加文件",
  7844. cant_upload: "您的浏览器不支持上传文件",
  7845. not_support: "您选择的不是浏览器支持的{fileType}文件,请重新选择",
  7846. too_large: "文件过大,不能大于{size}MB",
  7847. too_large_reupload_tips: "上传视频过大,请重新上传"
  7848. },
  7849. tips: {
  7850. __name: "提示",
  7851. wait: "请等待..."
  7852. }
  7853. },
  7854. tips: {
  7855. __name: "弹窗、提示",
  7856. title: "提示",
  7857. set_done: "设置成功",
  7858. set_fail: "设置失败",
  7859. save_done: "保存成功",
  7860. save_fail: "保存失败",
  7861. delete: "是否删除?",
  7862. delete_done: "删除成功",
  7863. delete_fail: "删除失败",
  7864. upload_done: "上传成功",
  7865. upload_fail: "上传失败",
  7866. exception: "异常错误",
  7867. network_error: "网络连接失败,请稍后再试",
  7868. file_notfound: "文件不存在",
  7869. scene_notfound: "场景不存在",
  7870. params_notfound: "缺少必要参数",
  7871. camera_notfound: "找不到该场景对应的相机",
  7872. password_error: "密码错误",
  7873. data_error: "数据不正常",
  7874. auth_deny: "无权操作该场景",
  7875. clear: "是否清空?",
  7876. upload_pic_fail: "上传图片失败",
  7877. wait: "请稍后...",
  7878. house_type_save_fail: "户型保存失败"
  7879. },
  7880. show: {
  7881. __name: "展示页面",
  7882. on: "开启",
  7883. off: "关闭",
  7884. measure: "测距工具",
  7885. measure_start: "起点",
  7886. measure_end: "终点",
  7887. measure_button: "确定{status}",
  7888. location_up: "上方",
  7889. location_left: "左侧",
  7890. location_start_tips: "请先在{direction}点击",
  7891. location_end_tips: "起点确定完毕,请定位终点",
  7892. vr: "VR模式",
  7893. share: "分享",
  7894. music: "{status}音乐",
  7895. password_tips: "密码",
  7896. password_require: "请输入密码"
  7897. },
  7898. components: {
  7899. user_guid: {
  7900. __name: "用户引导",
  7901. title: "操作提示",
  7902. pano: "行走<br />点击任意方向移动",
  7903. rotate: "旋转视角<br />左右滑动屏幕,旋转视觉",
  7904. zoom: "缩放<br />双指滑动放大或缩小视图",
  7905. set: "我知道了"
  7906. }
  7907. }
  7908. }
  7909. }
  7910. , function(t, e, i) {
  7911. "use strict";
  7912. var n = this && this.__assign || function() {
  7913. return (n = Object.assign || function(t) {
  7914. for (var e, i = 1, n = arguments.length; i < n; i++)
  7915. for (var g in e = arguments[i])
  7916. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  7917. return t
  7918. }
  7919. ).apply(this, arguments)
  7920. }
  7921. , g = this && this.__spreadArrays || function() {
  7922. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  7923. t += arguments[e].length;
  7924. var n = Array(t)
  7925. , g = 0;
  7926. for (e = 0; e < i; e++)
  7927. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  7928. g++)
  7929. n[g] = A[r];
  7930. return n
  7931. }
  7932. , A = this && this.__importDefault || function(t) {
  7933. return t && t.__esModule ? t : {
  7934. default: t
  7935. }
  7936. }
  7937. ;
  7938. Object.defineProperty(e, "__esModule", {
  7939. value: !0
  7940. });
  7941. var r = A(i(5))
  7942. , o = A(i(14))
  7943. , C = A(i(11))
  7944. , I = A(i(8))
  7945. , s = A(i(15))
  7946. , a = A(i(7))
  7947. , l = A(i(16))
  7948. , u = A(i(17))
  7949. , c = A(i(18))
  7950. , h = A(i(19))
  7951. , p = A(i(20))
  7952. , d = A(i(21));
  7953. e.methods = {
  7954. addPoint: function(t) {
  7955. var e = t.id
  7956. , i = t.x
  7957. , n = t.y
  7958. , g = {
  7959. id: e,
  7960. ele: new r.default({
  7961. x: i,
  7962. y: n,
  7963. renderer: this.render
  7964. })
  7965. };
  7966. return this.points.push(g),
  7967. this.generateElement(g.ele),
  7968. g
  7969. },
  7970. addLine: function(t) {
  7971. var e = t.id
  7972. , i = t.p1
  7973. , n = t.p2
  7974. , g = t.border
  7975. , A = t.exterior
  7976. , r = t.isOut
  7977. , C = {
  7978. id: e,
  7979. ele: new o.default({
  7980. border: g,
  7981. exterior: A,
  7982. points: [this.points.find((function(t) {
  7983. return t.id === i
  7984. }
  7985. )).ele, this.points.find((function(t) {
  7986. return t.id === n
  7987. }
  7988. )).ele],
  7989. renderer: this.render,
  7990. isOut: r
  7991. }),
  7992. border: g,
  7993. isOut: r,
  7994. exterior: A
  7995. };
  7996. return this.lines.push(C),
  7997. this.generateElement(C.ele),
  7998. A && (C.ele.points.forEach((function(t) {
  7999. return t.real.setAttribute("pointer-events", "none")
  8000. }
  8001. )),
  8002. C.ele.zIndex = -1),
  8003. C
  8004. },
  8005. addCase: function(t) {
  8006. var e = t.pos
  8007. , i = t.line
  8008. , n = t.top
  8009. , g = void 0 === n ? null : n
  8010. , A = t.bottom
  8011. , r = void 0 === A ? null : A
  8012. , o = {
  8013. ele: new C.default({
  8014. renderer: this.render,
  8015. attachment: this.lines.find((function(t) {
  8016. return t.id === i
  8017. }
  8018. )).ele,
  8019. points: [{
  8020. x: e[0],
  8021. y: e[1]
  8022. }, {
  8023. x: e[2],
  8024. y: e[3]
  8025. }],
  8026. top: g,
  8027. bottom: r
  8028. })
  8029. };
  8030. return this.cases.push(o),
  8031. this.generateElement(o.ele),
  8032. o
  8033. },
  8034. addDoor: function(t) {
  8035. var e = t.pos
  8036. , i = t.line
  8037. , n = t.top
  8038. , g = void 0 === n ? null : n
  8039. , A = t.bottom
  8040. , r = void 0 === A ? null : A
  8041. , o = t.within
  8042. , C = t.show
  8043. , s = t.start
  8044. , a = {
  8045. ele: new I.default({
  8046. show: C,
  8047. renderer: this.render,
  8048. attachment: this.lines.find((function(t) {
  8049. return t.id === i
  8050. }
  8051. )).ele,
  8052. points: [{
  8053. x: e[0],
  8054. y: e[1]
  8055. }, {
  8056. x: e[2],
  8057. y: e[3]
  8058. }],
  8059. top: g,
  8060. bottom: r,
  8061. within: o,
  8062. start: s
  8063. })
  8064. };
  8065. return this.doors.push(a),
  8066. this.generateElement(a.ele),
  8067. a
  8068. },
  8069. adddDoubleDoor: function(t) {
  8070. var e = t.pos
  8071. , i = t.line
  8072. , n = t.top
  8073. , g = void 0 === n ? null : n
  8074. , A = t.bottom
  8075. , r = void 0 === A ? null : A
  8076. , o = t.within
  8077. , C = t.show
  8078. , I = t.start
  8079. , s = {
  8080. ele: new l.default({
  8081. show: C,
  8082. renderer: this.render,
  8083. attachment: this.lines.find((function(t) {
  8084. return t.id === i
  8085. }
  8086. )).ele,
  8087. points: [{
  8088. x: e[0],
  8089. y: e[1]
  8090. }, {
  8091. x: e[2],
  8092. y: e[3]
  8093. }],
  8094. top: g,
  8095. bottom: r,
  8096. within: o,
  8097. start: I
  8098. })
  8099. };
  8100. return this.doubleDoors.push(s),
  8101. this.generateElement(s.ele),
  8102. s
  8103. },
  8104. addSlideDoor: function(t) {
  8105. var e = t.pos
  8106. , i = t.line
  8107. , n = t.top
  8108. , g = void 0 === n ? null : n
  8109. , A = t.bottom
  8110. , r = void 0 === A ? null : A
  8111. , o = t.within
  8112. , C = void 0 === o ? 0 : o
  8113. , I = {
  8114. ele: new s.default({
  8115. within: C,
  8116. bwithin: 1.5,
  8117. renderer: this.render,
  8118. attachment: this.lines.find((function(t) {
  8119. return t.id === i
  8120. }
  8121. )).ele,
  8122. points: [{
  8123. x: e[0],
  8124. y: e[1]
  8125. }, {
  8126. x: e[2],
  8127. y: e[3]
  8128. }],
  8129. top: g,
  8130. bottom: r
  8131. })
  8132. };
  8133. return this.slideDoors.push(I),
  8134. this.generateElement(I.ele),
  8135. I
  8136. },
  8137. addBayCase: function(t) {
  8138. var e = t.pos
  8139. , i = t.line
  8140. , n = t.top
  8141. , g = void 0 === n ? null : n
  8142. , A = t.bottom
  8143. , r = void 0 === A ? null : A
  8144. , o = t.within
  8145. , C = {
  8146. ele: new d.default({
  8147. renderer: this.render,
  8148. attachment: this.lines.find((function(t) {
  8149. return t.id === i
  8150. }
  8151. )).ele,
  8152. points: [{
  8153. x: e[0],
  8154. y: e[1]
  8155. }, {
  8156. x: e[2],
  8157. y: e[3]
  8158. }],
  8159. top: g,
  8160. bottom: r,
  8161. within: o
  8162. })
  8163. };
  8164. return this.bayCases.push(C),
  8165. this.generateElement(C.ele),
  8166. C
  8167. },
  8168. addGroundCase: function(t) {
  8169. var e = t.pos
  8170. , i = t.line
  8171. , n = t.top
  8172. , g = void 0 === n ? null : n
  8173. , A = t.bottom
  8174. , r = void 0 === A ? null : A
  8175. , o = {
  8176. ele: new p.default({
  8177. renderer: this.render,
  8178. attachment: this.lines.find((function(t) {
  8179. return t.id === i
  8180. }
  8181. )).ele,
  8182. points: [{
  8183. x: e[0],
  8184. y: e[1]
  8185. }, {
  8186. x: e[2],
  8187. y: e[3]
  8188. }],
  8189. top: g,
  8190. bottom: r
  8191. })
  8192. };
  8193. return this.groundCases.push(o),
  8194. this.generateElement(o.ele),
  8195. o
  8196. },
  8197. addColumn: function(t) {
  8198. var e = t.pos
  8199. , i = t.line
  8200. , n = {
  8201. ele: new a.default({
  8202. renderer: this.render,
  8203. attachment: this.lines.find((function(t) {
  8204. return t.id === i
  8205. }
  8206. )).ele,
  8207. points: [{
  8208. x: e[0],
  8209. y: e[1]
  8210. }, {
  8211. x: e[2],
  8212. y: e[3]
  8213. }, {
  8214. x: e[6],
  8215. y: e[7]
  8216. }, {
  8217. x: e[4],
  8218. y: e[5]
  8219. }]
  8220. })
  8221. };
  8222. return this.columns.push(n),
  8223. this.generateElement(n.ele),
  8224. n
  8225. },
  8226. addFurnColumn: function(t) {
  8227. var e = t.pos
  8228. , i = t.angle
  8229. , n = {
  8230. ele: new u.default({
  8231. points: [{
  8232. x: e[0],
  8233. y: e[1]
  8234. }, {
  8235. x: e[2],
  8236. y: e[3]
  8237. }, {
  8238. x: e[4],
  8239. y: e[5]
  8240. }, {
  8241. x: e[6],
  8242. y: e[7]
  8243. }],
  8244. renderer: this.render,
  8245. angle: i
  8246. })
  8247. };
  8248. return this.furnColumns.push(n),
  8249. this.generateElement(n.ele),
  8250. n
  8251. },
  8252. addRoom: function(t) {
  8253. for (var e, i, g = this, A = t.points.map((function(t) {
  8254. return g.addPoint(n(n({}, t), {
  8255. id: g.getNewPointId()
  8256. }))
  8257. }
  8258. )), r = [], o = 0; o < A.length - 1; o++)
  8259. r.push(this.addLine({
  8260. id: this.getNewLineId(),
  8261. p1: A[o].id,
  8262. p2: A[o + 1].id,
  8263. isOut: !1,
  8264. border: !1
  8265. }));
  8266. return r.forEach((function(t) {
  8267. return t.ele.update()
  8268. }
  8269. )),
  8270. (e = this.data.vertex).push.apply(e, A.map((function(t) {
  8271. return {
  8272. id: t.id,
  8273. x: t.ele.x,
  8274. y: t.ele.y
  8275. }
  8276. }
  8277. ))),
  8278. (i = this.data.wall).push.apply(i, r.map((function(t) {
  8279. return t.id
  8280. }
  8281. ))),
  8282. r
  8283. },
  8284. addFurnFlue: function(t) {
  8285. var e = t.pos
  8286. , i = t.angle
  8287. , n = {
  8288. ele: new c.default({
  8289. points: [{
  8290. x: e[0],
  8291. y: e[1]
  8292. }, {
  8293. x: e[2],
  8294. y: e[3]
  8295. }, {
  8296. x: e[4],
  8297. y: e[5]
  8298. }, {
  8299. x: e[6],
  8300. y: e[7]
  8301. }],
  8302. renderer: this.render,
  8303. angle: i
  8304. })
  8305. };
  8306. return this.furnFlues.push(n),
  8307. this.generateElement(n.ele),
  8308. n
  8309. },
  8310. addTagging: function(t) {
  8311. var e = t.pos
  8312. , i = t.title
  8313. , n = t.content
  8314. , g = t.show
  8315. , A = void 0 === g || g
  8316. , r = t.showTitle
  8317. , o = t.showContent
  8318. , C = {
  8319. ele: new h.default({
  8320. show: A,
  8321. pos: {
  8322. x: e[0],
  8323. y: e[1]
  8324. },
  8325. title: i,
  8326. content: n,
  8327. renderer: this.render,
  8328. showTitle: r,
  8329. showContent: o
  8330. })
  8331. };
  8332. return this.taggings.push(C),
  8333. this.generateElement(C.ele),
  8334. C
  8335. },
  8336. generateElement: function(t) {
  8337. this.render.push(t),
  8338. this.retrofitElementDestroy(t),
  8339. t instanceof o.default && this.retrofitElementIntercept(t)
  8340. },
  8341. generateElements: function() {
  8342. var t = this;
  8343. g(this.lines.map((function(t) {
  8344. return t.ele
  8345. }
  8346. )), this.points.map((function(t) {
  8347. return t.ele
  8348. }
  8349. )), this.cases.map((function(t) {
  8350. return t.ele
  8351. }
  8352. )), this.doors.map((function(t) {
  8353. return t.ele
  8354. }
  8355. )), this.columns.map((function(t) {
  8356. return t.ele
  8357. }
  8358. ))).forEach((function(e) {
  8359. return t.generateElement(e)
  8360. }
  8361. ))
  8362. },
  8363. toEles: function(t) {
  8364. 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;
  8365. this.data = t,
  8366. n.forEach((function(t) {
  8367. return i.addPoint(t)
  8368. }
  8369. )),
  8370. g.forEach((function(t) {
  8371. var e = t.p1
  8372. , n = t.p2
  8373. , g = t.id
  8374. , A = t.border
  8375. , r = t.exterior;
  8376. i.addLine({
  8377. p1: e,
  8378. p2: n,
  8379. id: g,
  8380. border: A,
  8381. exterior: r,
  8382. isOut: !1
  8383. })
  8384. }
  8385. )),
  8386. e = [A, r, o, C, s, a, c].map((function(t) {
  8387. return t.forEach((function(t) {
  8388. var e = g.find((function(e) {
  8389. var i = e.id;
  8390. return t.line === i
  8391. }
  8392. ));
  8393. if (e) {
  8394. var n = e.p1
  8395. , A = e.p2
  8396. , r = i.lines.find((function(t) {
  8397. t.id;
  8398. var e = t.ele.points.map((function(t) {
  8399. return i.points.find((function(e) {
  8400. return e.ele === t
  8401. }
  8402. )).id
  8403. }
  8404. ));
  8405. return ~e.indexOf(n) && ~e.indexOf(A)
  8406. }
  8407. ));
  8408. t.line = r.id
  8409. } else
  8410. t.line = 0
  8411. }
  8412. )),
  8413. t = t.filter((function(t) {
  8414. return !t.pos.some((function(t) {
  8415. return null === t
  8416. }
  8417. ))
  8418. }
  8419. ))
  8420. }
  8421. )),
  8422. A = e[0],
  8423. r = e[1],
  8424. o = e[2],
  8425. C = e[3],
  8426. s = e[4],
  8427. a = e[5],
  8428. c = e[6],
  8429. A.forEach((function(t) {
  8430. return 0 !== t.line && i.addCase(t)
  8431. }
  8432. )),
  8433. r.forEach((function(t) {
  8434. return 0 !== t.line && i.addDoor(t)
  8435. }
  8436. )),
  8437. o.forEach((function(t) {
  8438. return 0 !== t.line && i.addColumn(t)
  8439. }
  8440. )),
  8441. C.forEach((function(t) {
  8442. return 0 !== t.line && i.addSlideDoor(t)
  8443. }
  8444. )),
  8445. s.forEach((function(t) {
  8446. return 0 !== t.line && i.addGroundCase(t)
  8447. }
  8448. )),
  8449. a.forEach((function(t) {
  8450. return 0 !== t.line && i.addBayCase(t)
  8451. }
  8452. )),
  8453. I.forEach((function(t) {
  8454. return i.addTagging(t)
  8455. }
  8456. )),
  8457. c.forEach((function(t) {
  8458. return i.adddDoubleDoor(t)
  8459. }
  8460. )),
  8461. l.forEach((function(t) {
  8462. i.addFurnColumn(t)
  8463. }
  8464. )),
  8465. u.forEach((function(t) {
  8466. i.addFurnFlue(t)
  8467. }
  8468. )),
  8469. this.referElements(),
  8470. this.id = t.id,
  8471. this.show = t.show
  8472. },
  8473. referElements: function() {
  8474. var t = this;
  8475. g(this.lines, this.points, this.cases, this.doors, this.columns).forEach((function(e) {
  8476. var i = e.ele;
  8477. t.render.g.removeChild(i.real),
  8478. t.render.elements.splice(t.render.elements.indexOf(i), 1)
  8479. }
  8480. )),
  8481. this.generateElements()
  8482. }
  8483. },
  8484. e.methods.attrs = ["cases", "doors", "slideDoors", "doubleDoors", "columns", "lines", "points", "groundCases", "taggings", "bayCases", "furnColumns", "furnFlues"]
  8485. }
  8486. , function(t, e, i) {
  8487. "use strict";
  8488. var n, g = this && this.__extends || (n = function(t, e) {
  8489. return (n = Object.setPrototypeOf || {
  8490. __proto__: []
  8491. }instanceof Array && function(t, e) {
  8492. t.__proto__ = e
  8493. }
  8494. || function(t, e) {
  8495. for (var i in e)
  8496. e.hasOwnProperty(i) && (t[i] = e[i])
  8497. }
  8498. )(t, e)
  8499. }
  8500. ,
  8501. function(t, e) {
  8502. function i() {
  8503. this.constructor = t
  8504. }
  8505. n(t, e),
  8506. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  8507. new i)
  8508. }
  8509. ), A = this && this.__importDefault || function(t) {
  8510. return t && t.__esModule ? t : {
  8511. default: t
  8512. }
  8513. }
  8514. ;
  8515. Object.defineProperty(e, "__esModule", {
  8516. value: !0
  8517. });
  8518. var r = A(i(5))
  8519. , o = i(3)
  8520. , C = i(0)
  8521. , I = function(t) {
  8522. function e(e, i) {
  8523. var n = t.call(this, e) || this;
  8524. return n.line = i,
  8525. n
  8526. }
  8527. return g(e, t),
  8528. e.prototype.getLineInsertPoint = function(t) {
  8529. void 0 === t && (t = this);
  8530. var e = C.getLinePoint(this.line, t);
  8531. return e
  8532. }
  8533. ,
  8534. e.prototype.intercept = function(t, e) {
  8535. var i = e.x
  8536. , n = e.y;
  8537. return !(!o.type.isUndefined(i) && !o.type.isUndefined(n)) || this.getLineInsertPoint({
  8538. x: i,
  8539. y: n
  8540. })
  8541. }
  8542. ,
  8543. e
  8544. }(r.default);
  8545. e.default = I
  8546. }
  8547. , function(t, e, i) {
  8548. "use strict";
  8549. var n, g = this && this.__extends || (n = function(t, e) {
  8550. return (n = Object.setPrototypeOf || {
  8551. __proto__: []
  8552. }instanceof Array && function(t, e) {
  8553. t.__proto__ = e
  8554. }
  8555. || function(t, e) {
  8556. for (var i in e)
  8557. e.hasOwnProperty(i) && (t[i] = e[i])
  8558. }
  8559. )(t, e)
  8560. }
  8561. ,
  8562. function(t, e) {
  8563. function i() {
  8564. this.constructor = t
  8565. }
  8566. n(t, e),
  8567. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  8568. new i)
  8569. }
  8570. ), A = this && this.__assign || function() {
  8571. return (A = Object.assign || function(t) {
  8572. for (var e, i = 1, n = arguments.length; i < n; i++)
  8573. for (var g in e = arguments[i])
  8574. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  8575. return t
  8576. }
  8577. ).apply(this, arguments)
  8578. }
  8579. , r = this && this.__awaiter || function(t, e, i, n) {
  8580. return new (i || (i = Promise))((function(g, A) {
  8581. function r(t) {
  8582. try {
  8583. C(n.next(t))
  8584. } catch (t) {
  8585. A(t)
  8586. }
  8587. }
  8588. function o(t) {
  8589. try {
  8590. C(n.throw(t))
  8591. } catch (t) {
  8592. A(t)
  8593. }
  8594. }
  8595. function C(t) {
  8596. var e;
  8597. t.done ? g(t.value) : (e = t.value,
  8598. e instanceof i ? e : new i((function(t) {
  8599. t(e)
  8600. }
  8601. ))).then(r, o)
  8602. }
  8603. C((n = n.apply(t, e || [])).next())
  8604. }
  8605. ))
  8606. }
  8607. , o = this && this.__generator || function(t, e) {
  8608. var i, n, g, A, r = {
  8609. label: 0,
  8610. sent: function() {
  8611. if (1 & g[0])
  8612. throw g[1];
  8613. return g[1]
  8614. },
  8615. trys: [],
  8616. ops: []
  8617. };
  8618. return A = {
  8619. next: o(0),
  8620. throw: o(1),
  8621. return: o(2)
  8622. },
  8623. "function" == typeof Symbol && (A[Symbol.iterator] = function() {
  8624. return this
  8625. }
  8626. ),
  8627. A;
  8628. function o(A) {
  8629. return function(o) {
  8630. return function(A) {
  8631. if (i)
  8632. throw new TypeError("Generator is already executing.");
  8633. for (; r; )
  8634. try {
  8635. if (i = 1,
  8636. n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n),
  8637. 0) : n.next) && !(g = g.call(n, A[1])).done)
  8638. return g;
  8639. switch (n = 0,
  8640. g && (A = [2 & A[0], g.value]),
  8641. A[0]) {
  8642. case 0:
  8643. case 1:
  8644. g = A;
  8645. break;
  8646. case 4:
  8647. return r.label++,
  8648. {
  8649. value: A[1],
  8650. done: !1
  8651. };
  8652. case 5:
  8653. r.label++,
  8654. n = A[1],
  8655. A = [0];
  8656. continue;
  8657. case 7:
  8658. A = r.ops.pop(),
  8659. r.trys.pop();
  8660. continue;
  8661. default:
  8662. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  8663. r = 0;
  8664. continue
  8665. }
  8666. if (3 === A[0] && (!g || A[1] > g[0] && A[1] < g[3])) {
  8667. r.label = A[1];
  8668. break
  8669. }
  8670. if (6 === A[0] && r.label < g[1]) {
  8671. r.label = g[1],
  8672. g = A;
  8673. break
  8674. }
  8675. if (g && r.label < g[2]) {
  8676. r.label = g[2],
  8677. r.ops.push(A);
  8678. break
  8679. }
  8680. g[2] && r.ops.pop(),
  8681. r.trys.pop();
  8682. continue
  8683. }
  8684. A = e.call(t, r)
  8685. } catch (t) {
  8686. A = [6, t],
  8687. n = 0
  8688. } finally {
  8689. i = g = 0
  8690. }
  8691. if (5 & A[0])
  8692. throw A[1];
  8693. return {
  8694. value: A[0] ? A[1] : void 0,
  8695. done: !0
  8696. }
  8697. }([A, o])
  8698. }
  8699. }
  8700. }
  8701. , C = this && this.__rest || function(t, e) {
  8702. var i = {};
  8703. for (var n in t)
  8704. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  8705. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  8706. var g = 0;
  8707. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  8708. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  8709. }
  8710. return i
  8711. }
  8712. , I = this && this.__spreadArrays || function() {
  8713. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  8714. t += arguments[e].length;
  8715. var n = Array(t)
  8716. , g = 0;
  8717. for (e = 0; e < i; e++)
  8718. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  8719. g++)
  8720. n[g] = A[r];
  8721. return n
  8722. }
  8723. , s = this && this.__importDefault || function(t) {
  8724. return t && t.__esModule ? t : {
  8725. default: t
  8726. }
  8727. }
  8728. ;
  8729. Object.defineProperty(e, "__esModule", {
  8730. value: !0
  8731. });
  8732. var a = s(i(10))
  8733. , l = i(0)
  8734. , u = (i(3),
  8735. s(i(4)))
  8736. , c = i(1)
  8737. , h = function(t) {
  8738. function e(e) {
  8739. var i = e.isOut
  8740. , n = e.hover
  8741. , g = e.width
  8742. , r = void 0 === g ? 3 : g
  8743. , o = e.border
  8744. , I = void 0 !== o && o
  8745. , s = e.exterior
  8746. , a = C(e, ["isOut", "hover", "width", "border", "exterior"])
  8747. , l = t.call(this, A(A({}, a), {
  8748. width: r
  8749. })) || this;
  8750. return l.hover = n || A(A({}, l.init), {
  8751. color: "rgba(243, 255, 0, 0.8)"
  8752. }),
  8753. l.isOut = i,
  8754. l.adopt = !1,
  8755. l.border = I,
  8756. l.exterior = s,
  8757. l.listenPointDrag(),
  8758. Object.defineProperty(l, "wallLines", {
  8759. get: function() {
  8760. return a.renderer.processing.lines.map((function(t) {
  8761. return t.ele
  8762. }
  8763. ))
  8764. }
  8765. }),
  8766. l
  8767. }
  8768. return g(e, t),
  8769. e.prototype.setHoverStyle = function() {
  8770. this.color = this.hover.color,
  8771. this.width = this.hover.width,
  8772. this.linecap = this.hover.linecap
  8773. }
  8774. ,
  8775. e.prototype.setUnHoverStyle = function() {
  8776. this.color = this.init.color,
  8777. this.width = this.init.width,
  8778. this.linecap = this.init.linecap
  8779. }
  8780. ,
  8781. e.prototype.destoryPoint = function(t) {
  8782. return r(this, void 0, void 0, (function() {
  8783. return o(this, (function(e) {
  8784. return t.destroy(),
  8785. [2]
  8786. }
  8787. ))
  8788. }
  8789. ))
  8790. }
  8791. ,
  8792. e.prototype.listenPointDrag = function(t) {
  8793. var e = this;
  8794. void 0 === t && (t = this.points),
  8795. t.forEach((function(t) {
  8796. t.__join_lines ? ~t.__join_lines.indexOf(e) || t.__join_lines.push(e) : t.__join_lines = [e]
  8797. }
  8798. ))
  8799. }
  8800. ,
  8801. e.prototype.getDelRetain = function() {
  8802. return {
  8803. delIndex: 0,
  8804. retainIndex: 1
  8805. }
  8806. }
  8807. ,
  8808. e.prototype.judgeMerge = function() {
  8809. return r(this, void 0, void 0, (function() {
  8810. var t, i, n, g, A, r = this;
  8811. return o(this, (function(o) {
  8812. switch (o.label) {
  8813. case 0:
  8814. if (this.points[0] === this.points[1] || l.lineDis({
  8815. points: this.points
  8816. }) > e.minWidth || u.default.attaArch.get(this) && u.default.attaArch.get(this).length)
  8817. return [2];
  8818. t = this.wallLines;
  8819. try {
  8820. g = this.getDelRetain(),
  8821. i = g.delIndex,
  8822. n = g.retainIndex
  8823. } catch (t) {
  8824. return [2]
  8825. }
  8826. return A = this.points[n],
  8827. [4, Promise.all(t.map((function(t) {
  8828. var e;
  8829. if (t !== r && ~(e = t.points.indexOf(r.points[i])))
  8830. return new Promise((function(g) {
  8831. t.nextTick((function() {
  8832. var A = I(t.points);
  8833. A[e] = r.points[n],
  8834. A[i] === A[n] ? t.destroy() : (t.renderer.processing.updateWallPoints(t, t.points, A),
  8835. t.points = A,
  8836. t.listenPointDrag(A),
  8837. t.update(),
  8838. t.nextTick((function() {
  8839. return t.updateJoin()
  8840. }
  8841. ))),
  8842. g()
  8843. }
  8844. ))
  8845. }
  8846. ))
  8847. }
  8848. )))];
  8849. case 1:
  8850. return o.sent(),
  8851. this.points[i].x = this.points[n].x,
  8852. this.points[i].y = this.points[n].y,
  8853. this.points[i].adopt = !0,
  8854. setTimeout((function() {
  8855. r.wallLines.some((function(t) {
  8856. return ~t.points.indexOf(A)
  8857. }
  8858. )) || r.points[n].destroy()
  8859. }
  8860. ), 500),
  8861. [2, this.points[i]]
  8862. }
  8863. }
  8864. ))
  8865. }
  8866. ))
  8867. }
  8868. ,
  8869. e.prototype.judgePoint = function() {
  8870. return r(this, void 0, void 0, (function() {
  8871. var t, e, i, n = this;
  8872. return o(this, (function(g) {
  8873. switch (g.label) {
  8874. case 0:
  8875. t = function(t) {
  8876. var i, g, A, r, C;
  8877. return o(this, (function(s) {
  8878. switch (s.label) {
  8879. case 0:
  8880. if (i = e.points[t],
  8881. !e.renderer.processing.points.some((function(t) {
  8882. return t.ele === i
  8883. }
  8884. )))
  8885. return [2, "continue"];
  8886. g = e.renderer.processing,
  8887. A = I(e.wallLines).filter((function(t) {
  8888. return t !== n && !t.exterior
  8889. }
  8890. )),
  8891. .1,
  8892. A = A.filter((function(t) {
  8893. return l.pointLineDis(t, i) <= .1
  8894. }
  8895. )),
  8896. r = function(t) {
  8897. var e, r, C, I;
  8898. return o(this, (function(o) {
  8899. switch (o.label) {
  8900. case 0:
  8901. return e = A[t],
  8902. r = g.lines.filter((function(t) {
  8903. var i = t.ele;
  8904. return ~i.points.indexOf(e.points[0]) && i.points.indexOf(e.points[1])
  8905. }
  8906. )).map((function(t) {
  8907. return t.ele
  8908. }
  8909. )),
  8910. C = [],
  8911. r.forEach((function(t) {
  8912. return C = C.concat(u.default.attaArch.get(t) || [])
  8913. }
  8914. )),
  8915. I = l.getLinePoint(e, i),
  8916. C.find((function(t) {
  8917. return l.pointLineDis({
  8918. points: t.linePoints
  8919. }, I) < .001
  8920. }
  8921. )) ? [3, 5] : [3, 1];
  8922. case 1:
  8923. if (!(l.pointLineDis(e, I) < .1))
  8924. return [3, 5];
  8925. i.x = I.x,
  8926. i.y = I.y,
  8927. o.label = 2;
  8928. case 2:
  8929. return o.trys.push([2, 4, , 5]),
  8930. [4, new Promise((function(t, A) {
  8931. i.nextTick((function() {
  8932. n.renderer.processing.points.some((function(t) {
  8933. return t.ele === i
  8934. }
  8935. )) || A();
  8936. var r = g.lineInsertPoint(e, i)
  8937. , o = r.promis;
  8938. if (!r.ret)
  8939. return t();
  8940. o.then((function() {
  8941. i.x = I.x,
  8942. i.y = I.y,
  8943. i.wallPos && i.wallPos(),
  8944. t()
  8945. }
  8946. )),
  8947. e.wallPos && e.wallPos()
  8948. }
  8949. ))
  8950. }
  8951. ))];
  8952. case 3:
  8953. return o.sent(),
  8954. [3, 5];
  8955. case 4:
  8956. return o.sent(),
  8957. [2, "break"];
  8958. case 5:
  8959. return [2]
  8960. }
  8961. }
  8962. ))
  8963. }
  8964. ,
  8965. C = 0,
  8966. s.label = 1;
  8967. case 1:
  8968. return C < A.length ? [5, r(C)] : [3, 4];
  8969. case 2:
  8970. if ("break" === s.sent())
  8971. return [3, 4];
  8972. s.label = 3;
  8973. case 3:
  8974. return C++,
  8975. [3, 1];
  8976. case 4:
  8977. return [2]
  8978. }
  8979. }
  8980. ))
  8981. }
  8982. ,
  8983. e = this,
  8984. i = 0,
  8985. g.label = 1;
  8986. case 1:
  8987. return i < this.points.length ? [5, t(i)] : [3, 4];
  8988. case 2:
  8989. g.sent(),
  8990. g.label = 3;
  8991. case 3:
  8992. return i++,
  8993. [3, 1];
  8994. case 4:
  8995. return [2]
  8996. }
  8997. }
  8998. ))
  8999. }
  9000. ))
  9001. }
  9002. ,
  9003. e.prototype.updateJoin = function() {
  9004. var t = this
  9005. , e = this.wallLines;
  9006. this.points[0].__join_lines = e.filter((function(e) {
  9007. return ~e.points.indexOf(t.points[0])
  9008. }
  9009. )),
  9010. this.points[1].__join_lines = e.filter((function(e) {
  9011. return ~e.points.indexOf(t.points[1])
  9012. }
  9013. ))
  9014. }
  9015. ,
  9016. e.prototype.removeJoin = function(t) {
  9017. void 0 === t && (t = this);
  9018. var e = t.points[0].__join_lines
  9019. , i = t.points[1].__join_lines;
  9020. e.splice(e.indexOf(t), 1),
  9021. i.splice(i.indexOf(t), 1)
  9022. }
  9023. ,
  9024. e.prototype.checkCross = function(t) {
  9025. var e = this;
  9026. void 0 === t && (t = this.points);
  9027. var i = this.renderer.processing;
  9028. return this.wallLines.filter((function(t) {
  9029. return ~t.points.indexOf(e.points[0]) || ~t.points.indexOf(e.points[1])
  9030. }
  9031. )).some((function(n) {
  9032. var g = n.points.indexOf(e.points[0])
  9033. , A = n.points.indexOf(e.points[1])
  9034. , r = I(n.points);
  9035. return ~g && (r[g] = t[0]),
  9036. ~A && (r[A] = t[1]),
  9037. e.wallLines.some((function(g) {
  9038. if (!~g.points.indexOf(n.points[0]) && !~g.points.indexOf(n.points[1])) {
  9039. var A = l.segmentsIntr(g, {
  9040. points: r
  9041. });
  9042. if (!A)
  9043. return !1;
  9044. if (0 !== l.lineDis({
  9045. points: [r[0], A]
  9046. }) && 0 !== l.lineDis({
  9047. points: [r[1], A]
  9048. }) && 0 !== l.lineDis({
  9049. points: [g.points[0], A]
  9050. }) && 0 !== l.lineDis({
  9051. points: [g.points[1], A]
  9052. }))
  9053. return !0;
  9054. var o = i.getRoomsByLine(n);
  9055. o = (o = o.length ? o : i.getHolesByLine(n))[0].ground || o[0].pos;
  9056. var C = i.getRoomsByLine(g);
  9057. return o !== (C = (C = C.length ? C : i.getHolesByLine(g))[0].ground || C[0].pos) && (o = o.map((function(n) {
  9058. var g = i.points.find((function(t) {
  9059. var e = t.id;
  9060. return n === e
  9061. }
  9062. )).ele;
  9063. return g === e.points[0] ? t[0] : g === e.points[1] ? t[1] : g
  9064. }
  9065. )),
  9066. C = C.map((function(n) {
  9067. var g = i.points.find((function(t) {
  9068. var e = t.id;
  9069. return n === e
  9070. }
  9071. )).ele;
  9072. return g === e.points[0] ? t[0] : g === e.points[1] ? t[1] : g
  9073. }
  9074. )),
  9075. l.isFaceIntersect(o, C))
  9076. }
  9077. }
  9078. ))
  9079. }
  9080. ))
  9081. }
  9082. ,
  9083. e.prototype.intercept = function(t, e, i) {
  9084. e.x,
  9085. e.y,
  9086. e.points;
  9087. return !0
  9088. }
  9089. ,
  9090. e.prototype.grentNode = function() {
  9091. var e = document.createElementNS(c.SVGURI, "g");
  9092. return this.origin = t.prototype.grentNode.call(this),
  9093. this.ground = document.createElementNS(c.SVGURI, "g"),
  9094. this.temp = document.createElementNS(c.SVGURI, "g"),
  9095. e.appendChild(this.ground),
  9096. e.appendChild(this.origin),
  9097. e.appendChild(this.temp),
  9098. this.temp.setAttribute("pointer-events", "none"),
  9099. e
  9100. }
  9101. ,
  9102. e.prototype.update = function() {
  9103. var t = this
  9104. , e = u.default.attaArch.get(this)
  9105. , i = this.multiple * this.width * (this.border ? 2 : 1.333);
  9106. this.origin.setAttribute("stroke-width", i.toString()),
  9107. this.origin.setAttribute("stroke-linecap", this.linecap);
  9108. try {
  9109. this.origin.setAttribute("d", "M " + this.points[0].x + " " + this.points[0].y + " L " + this.points[1].x + " " + this.points[1].y)
  9110. } catch (t) {}
  9111. if (this.exterior ? (this.origin.setAttribute("stroke", this.color === this.hover.color ? this.color : "#5e5e5e"),
  9112. this.origin.setAttribute("stroke-dasharray", 10 * this.multiple + ", " + 10 * this.multiple)) : this.origin.setAttribute("stroke", this.color),
  9113. !this.exterior && e && e.length > 0) {
  9114. this.origin.setAttribute("stroke", "rgba(0,0,0,0)");
  9115. for (var n = [], g = function(t) {
  9116. if (n.some((function(e) {
  9117. return e.some((function(i) {
  9118. return i === e[t]
  9119. }
  9120. ))
  9121. }
  9122. )))
  9123. return "continue";
  9124. var i = e.filter((function(i) {
  9125. return i.linePoints && i.linePoints.length && (l.pointLineDis({
  9126. points: e[t].linePoints
  9127. }, i.linePoints[0]) < .1 || l.pointLineDis({
  9128. points: e[t].linePoints
  9129. }, i.linePoints[1]) < .1)
  9130. }
  9131. ));
  9132. i.length && n.push(i)
  9133. }, A = 0; A < e.length; A++)
  9134. g(A);
  9135. var r = [];
  9136. n.forEach((function(e) {
  9137. var i = e.reduce((function(t, e) {
  9138. return t.concat(e.linePoints)
  9139. }
  9140. ), []).sort((function(e, i) {
  9141. return l.lineDis({
  9142. points: [e, t.points[0]]
  9143. }) - l.lineDis({
  9144. points: [i, t.points[0]]
  9145. })
  9146. }
  9147. ))
  9148. , n = [];
  9149. l.pointLineDis(t, i[0]) < .1 && n.push(i[0]),
  9150. l.pointLineDis(t, i[i.length - 1]) < .1 && n.push(i[i.length - 1]),
  9151. n.length && r.push(n)
  9152. }
  9153. )),
  9154. r = r.sort((function(e, i) {
  9155. return l.lineDis({
  9156. points: [e[0], t.points[0]]
  9157. }) - l.lineDis({
  9158. points: [i[0], t.points[0]]
  9159. })
  9160. }
  9161. )),
  9162. this.ground.innerHTML = "";
  9163. var o = "";
  9164. for (A = 1; A < r.length; A++) {
  9165. var C = r[A - 1][r[A - 1].length - 1]
  9166. , I = r[A][0];
  9167. 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>'
  9168. }
  9169. 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),
  9170. 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>'),
  9171. 1 === r.length && 1 === r[0].length) {
  9172. var s = e.find((function(t) {
  9173. return ~t.linePoints.indexOf(r[0][0])
  9174. }
  9175. ))
  9176. , a = s.linePoints[Number(!s.linePoints.indexOf(r[0][0]))];
  9177. C = l.lineDis({
  9178. points: [a, this.points[0]]
  9179. }) > l.lineDis({
  9180. points: [a, this.points[1]]
  9181. }) ? this.points[0] : this.points[1];
  9182. 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>'
  9183. }
  9184. 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>'),
  9185. this.ground.innerHTML = o
  9186. } else
  9187. this.ground.innerHTML = "";
  9188. if (this.temp.innerHTML = "",
  9189. this.showAngle || this.color === this.hover.color) {
  9190. var h = this.renderer.processing.lines.filter((function(e) {
  9191. return e.ele !== t && (~e.ele.points.indexOf(t.points[0]) || ~e.ele.points.indexOf(t.points[1]))
  9192. }
  9193. )).map((function(t) {
  9194. return t.ele
  9195. }
  9196. ));
  9197. if (0 !== h.length) {
  9198. var p = this.renderer.screenToRealPoint({
  9199. x: 20,
  9200. y: 0
  9201. }).x - this.renderer.screenToRealPoint({
  9202. x: 0,
  9203. y: 0
  9204. }).x;
  9205. h.forEach((function(e) {
  9206. var i = l.getAngle(e, t)
  9207. , n = ~e.points.indexOf(t.points[0]) ? t.points[0] : t.points[1]
  9208. , g = l.getLineDisSelectPoint(e, n, p)
  9209. , A = l.getLineDisSelectPoint(t, n, p)
  9210. , r = l.lineCenter({
  9211. points: [g, A]
  9212. });
  9213. if (!isNaN(r.x) && !isNaN(i) && i > 10 && i < 170) {
  9214. i = (i = Math.round(i)) >= 89 && i <= 91 ? 90 : i;
  9215. var o = document.createElementNS(c.SVGURI, "text");
  9216. o.setAttribute("fill", "#fff"),
  9217. o.setAttribute("text-anchor", "middle"),
  9218. o.setAttribute("dominant-baseline", "middle"),
  9219. o.setAttribute("x", r.x.toString()),
  9220. o.setAttribute("y", r.y.toString()),
  9221. o.setAttribute("font-size", (9 * t.multiple).toString()),
  9222. o.textContent = parseInt(i + "").toString() + "°",
  9223. t.temp.appendChild(o)
  9224. }
  9225. }
  9226. ))
  9227. }
  9228. }
  9229. }
  9230. ,
  9231. e.prototype.destroy = function() {
  9232. var e = this
  9233. , i = this.wallLines;
  9234. i.splice(i.indexOf(this), 1);
  9235. var n = u.default.attaArch.get(this);
  9236. if (n) {
  9237. n = I(n);
  9238. var g = i.find((function(t) {
  9239. 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]
  9240. }
  9241. ));
  9242. n.forEach((function(t) {
  9243. g ? t.setAttachment(g) : t.destroy()
  9244. }
  9245. ))
  9246. }
  9247. this.nextTick((function() {
  9248. i.filter((function(t) {
  9249. return ~t.points.indexOf(e.points[0]) || ~t.points.indexOf(e.points[1])
  9250. }
  9251. )).forEach((function(t) {
  9252. return t.updateJoin()
  9253. }
  9254. ))
  9255. }
  9256. )),
  9257. t.prototype.destroy.call(this),
  9258. this.removeJoin(),
  9259. i.some((function(t) {
  9260. return ~t.points.indexOf(e.points[0])
  9261. }
  9262. )) || this.points[0].destroy(),
  9263. i.some((function(t) {
  9264. return ~t.points.indexOf(e.points[1])
  9265. }
  9266. )) || this.points[1].destroy()
  9267. }
  9268. ,
  9269. e.minWidth = .1,
  9270. e
  9271. }(a.default);
  9272. e.default = h
  9273. }
  9274. , function(t, e) {
  9275. 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=="
  9276. }
  9277. , function(t, e) {
  9278. 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"
  9279. }
  9280. , function(t, e, i) {
  9281. "use strict";
  9282. Object.defineProperty(e, "__esModule", {
  9283. value: !0
  9284. }),
  9285. e.methods = {
  9286. getRoomEles: function(t) {
  9287. var e = this;
  9288. return {
  9289. ground: t.ground.map((function(t) {
  9290. return e.points.find((function(e) {
  9291. return e.id === t
  9292. }
  9293. )).ele
  9294. }
  9295. )),
  9296. hole: t.hole.map((function(t) {
  9297. return t.pos.map((function(t) {
  9298. return e.points.find((function(e) {
  9299. return e.id === t
  9300. }
  9301. )).ele
  9302. }
  9303. ))
  9304. }
  9305. ))
  9306. }
  9307. }
  9308. }
  9309. }
  9310. , function(t, e, i) {
  9311. "use strict";
  9312. var n = this && this.__assign || function() {
  9313. return (n = Object.assign || function(t) {
  9314. for (var e, i = 1, n = arguments.length; i < n; i++)
  9315. for (var g in e = arguments[i])
  9316. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  9317. return t
  9318. }
  9319. ).apply(this, arguments)
  9320. }
  9321. , g = this && this.__spreadArrays || function() {
  9322. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  9323. t += arguments[e].length;
  9324. var n = Array(t)
  9325. , g = 0;
  9326. for (e = 0; e < i; e++)
  9327. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  9328. g++)
  9329. n[g] = A[r];
  9330. return n
  9331. }
  9332. ;
  9333. Object.defineProperty(e, "__esModule", {
  9334. value: !0
  9335. });
  9336. var A = function(t, e) {
  9337. return void 0 === e && (e = 2),
  9338. Number(t.toFixed(e))
  9339. };
  9340. e.methods = {
  9341. baseArchToData: function(t) {
  9342. return {
  9343. line: this.getLineId(t.attachment),
  9344. pos: [A(t.linePoints[0].x), A(t.linePoints[0].y), A(t.linePoints[1].x), A(t.linePoints[1].y)],
  9345. top: t.top,
  9346. bottom: t.bottom
  9347. }
  9348. },
  9349. roomArchToData: function(t) {
  9350. return {
  9351. 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)],
  9352. top: t.top,
  9353. bottom: t.bottom,
  9354. angle: t.angle
  9355. }
  9356. },
  9357. pointToData: function(t) {
  9358. var e = t.ele;
  9359. return {
  9360. id: t.id,
  9361. x: A(e.x),
  9362. y: A(e.y)
  9363. }
  9364. },
  9365. lineToData: function(t) {
  9366. var e = t.ele
  9367. , i = t.id
  9368. , n = t.border;
  9369. return {
  9370. id: i,
  9371. p1: this.getPointId(e.points[0]),
  9372. p2: this.getPointId(e.points[1]),
  9373. border: n,
  9374. exterior: e.exterior
  9375. }
  9376. },
  9377. doorToData: function(t) {
  9378. var e = t.ele
  9379. , i = this.baseArchToData(e);
  9380. return i.within = e.within,
  9381. i.show = e.show,
  9382. i.ctl = [e.ctl[0].x, -e.ctl[0].y],
  9383. i.start = e.start,
  9384. i
  9385. },
  9386. DoubleDoorToData: function(t) {
  9387. var e = t.ele
  9388. , i = this.baseArchToData(e);
  9389. return i.within = e.within,
  9390. i.show = e.show,
  9391. i
  9392. },
  9393. slideDoorToData: function(t) {
  9394. var e = t.ele
  9395. , i = this.baseArchToData(e);
  9396. return i.within = e.within,
  9397. i.show = e.show,
  9398. i
  9399. },
  9400. caseToData: function(t) {
  9401. var e = t.ele;
  9402. return this.baseArchToData(e)
  9403. },
  9404. groundCaseToData: function(t) {
  9405. var e = t.ele;
  9406. return this.baseArchToData(e)
  9407. },
  9408. BayCaseToData: function(t) {
  9409. var e = t.ele
  9410. , i = this.baseArchToData(e);
  9411. return i.within = e.within,
  9412. i.ctl = [e.ctl[0].x, -e.ctl[0].y, e.ctl[1].x, -e.ctl[1].y],
  9413. i
  9414. },
  9415. columnToData: function(t) {
  9416. var e = t.ele
  9417. , i = this.baseArchToData(e);
  9418. return n(n({}, i), {
  9419. pos: g(i.pos, [A(e.points[3].x), A(e.points[3].y), A(e.points[2].x), A(e.points[2].y)])
  9420. })
  9421. },
  9422. taggingToData: function(t) {
  9423. var e = t.ele;
  9424. return {
  9425. pos: [e.x, e.y],
  9426. title: e.title,
  9427. content: e.content,
  9428. showTitle: e.showTitle,
  9429. showContent: e.showContent
  9430. }
  9431. },
  9432. furnColumnToData: function(t) {
  9433. var e = t.ele;
  9434. return this.roomArchToData(e)
  9435. },
  9436. furnFlueToData: function(t) {
  9437. var e = t.ele;
  9438. return this.roomArchToData(e)
  9439. },
  9440. getNewPointId: function() {
  9441. return 0 === this.points.length ? 1 : Math.max.apply(Math, this.points.map((function(t) {
  9442. return t.id
  9443. }
  9444. ))) + 1
  9445. },
  9446. getNewLineId: function() {
  9447. return 0 === this.lines.length ? 1 : Math.max.apply(Math, this.lines.map((function(t) {
  9448. return t.id
  9449. }
  9450. ))) + 1
  9451. },
  9452. getLineId: function(t) {
  9453. var e = this.lines.find((function(e) {
  9454. return e.ele === t
  9455. }
  9456. ));
  9457. return e ? e.id : 0
  9458. },
  9459. getPointId: function(t) {
  9460. return this.points.find((function(e) {
  9461. return e.ele === t
  9462. }
  9463. )).id
  9464. },
  9465. toData: function() {
  9466. var t = this
  9467. , e = this.points.map((function(e) {
  9468. return t.pointToData(e)
  9469. }
  9470. ))
  9471. , i = this.columns.map((function(e) {
  9472. return t.columnToData(e)
  9473. }
  9474. ))
  9475. , n = this.cases.map((function(e) {
  9476. return t.caseToData(e)
  9477. }
  9478. ))
  9479. , g = this.doors.map((function(e) {
  9480. return t.doorToData(e)
  9481. }
  9482. ))
  9483. , A = this.slideDoors.map((function(e) {
  9484. return t.slideDoorToData(e)
  9485. }
  9486. ))
  9487. , r = this.groundCases.map((function(e) {
  9488. return t.groundCaseToData(e)
  9489. }
  9490. ))
  9491. , o = this.taggings.map((function(e) {
  9492. return t.taggingToData(e)
  9493. }
  9494. ))
  9495. , C = this.bayCases.map((function(e) {
  9496. return t.BayCaseToData(e)
  9497. }
  9498. ))
  9499. , I = this.doubleDoors.map((function(e) {
  9500. return t.DoubleDoorToData(e)
  9501. }
  9502. ))
  9503. , s = this.furnColumns.map((function(e) {
  9504. return t.furnColumnToData(e)
  9505. }
  9506. ))
  9507. , a = this.furnFlues.map((function(e) {
  9508. return t.furnFlueToData(e)
  9509. }
  9510. ))
  9511. , l = [];
  9512. return this.lines.forEach((function(e) {
  9513. try {
  9514. l.push(t.lineToData(e))
  9515. } catch (t) {}
  9516. }
  9517. )),
  9518. {
  9519. id: this.id,
  9520. show: this.show,
  9521. vertex: e,
  9522. wall: l,
  9523. window: n,
  9524. door: g,
  9525. column: i,
  9526. surplus: this.data.surplus,
  9527. slideDoor: A,
  9528. groundCase: r,
  9529. tagging: o,
  9530. doubleDoor: I,
  9531. bayCase: C,
  9532. furnColumn: s,
  9533. furnFlue: a,
  9534. dire: this.data.dire
  9535. }
  9536. }
  9537. }
  9538. }
  9539. , function(t, e, i) {
  9540. "use strict";
  9541. var n = this && this.__spreadArrays || function() {
  9542. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  9543. t += arguments[e].length;
  9544. var n = Array(t)
  9545. , g = 0;
  9546. for (e = 0; e < i; e++)
  9547. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  9548. g++)
  9549. n[g] = A[r];
  9550. return n
  9551. }
  9552. , g = this && this.__importDefault || function(t) {
  9553. return t && t.__esModule ? t : {
  9554. default: t
  9555. }
  9556. }
  9557. ;
  9558. Object.defineProperty(e, "__esModule", {
  9559. value: !0
  9560. });
  9561. var A = g(i(4))
  9562. , r = i(0)
  9563. , o = i(1);
  9564. e.methods = {
  9565. lineInsertPoint: function(t, e) {
  9566. var i = this
  9567. , g = []
  9568. , C = []
  9569. , I = this
  9570. , s = I.points.find((function(t) {
  9571. return t.ele === e
  9572. }
  9573. ));
  9574. return s ? (I.lines.forEach((function(a) {
  9575. var l = a.ele;
  9576. a.border;
  9577. if (~l.points.indexOf(t.points[0]) && ~l.points.indexOf(t.points[1]) && !I.lines.some((function(t) {
  9578. var i = t.ele;
  9579. return ~i.points.indexOf(e) && ~i.points.indexOf(l.points[0])
  9580. }
  9581. ))) {
  9582. var u = A.default.attaArch.get(l);
  9583. i.cad.increase;
  9584. var c = {
  9585. ele: i.cad.increase(o.SEFTLINE, {
  9586. id: i.getNewLineId(),
  9587. p1: I.getPointId(l.points[0]),
  9588. p2: s.id,
  9589. border: l.border,
  9590. exterior: l.exterior,
  9591. isOut: l.isOut
  9592. }).obj
  9593. };
  9594. C.push(c),
  9595. c.ele.update();
  9596. var h = [s.ele, l.points[1]];
  9597. l.points = h,
  9598. l.listenPointDrag([s.ele, l.points[1]]),
  9599. g.push(new Promise((function(t) {
  9600. l.nextTick((function() {
  9601. l.updateJoin(),
  9602. c.ele.updateJoin(),
  9603. u && n(u).forEach((function(t) {
  9604. r.pointLineDis(c.ele, t.linePoints[0]) < .1 && r.pointLineDis(c.ele, t.linePoints[1]) < .1 && t.setAttachment(c.ele)
  9605. }
  9606. )),
  9607. setTimeout(t, 200)
  9608. }
  9609. ))
  9610. }
  9611. )))
  9612. }
  9613. }
  9614. )),
  9615. {
  9616. lines: C,
  9617. promis: Promise.all(g),
  9618. ret: !0
  9619. }) : {
  9620. ret: !1
  9621. }
  9622. }
  9623. }
  9624. }
  9625. , function(t, e, i) {
  9626. "use strict";
  9627. var n = this && this.__assign || function() {
  9628. return (n = Object.assign || function(t) {
  9629. for (var e, i = 1, n = arguments.length; i < n; i++)
  9630. for (var g in e = arguments[i])
  9631. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  9632. return t
  9633. }
  9634. ).apply(this, arguments)
  9635. }
  9636. , g = this && this.__spreadArrays || function() {
  9637. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  9638. t += arguments[e].length;
  9639. var n = Array(t)
  9640. , g = 0;
  9641. for (e = 0; e < i; e++)
  9642. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  9643. g++)
  9644. n[g] = A[r];
  9645. return n
  9646. }
  9647. , A = this && this.__importDefault || function(t) {
  9648. return t && t.__esModule ? t : {
  9649. default: t
  9650. }
  9651. }
  9652. ;
  9653. Object.defineProperty(e, "__esModule", {
  9654. value: !0
  9655. });
  9656. var r = A(i(4))
  9657. , o = A(i(13))
  9658. , C = i(3)
  9659. , I = i(0)
  9660. , s = i(1)
  9661. , a = i(9)
  9662. , l = [s.TAGGING, s.LINE, s.SEFTLINE]
  9663. , u = [s.POINT, s.DOOR, s.COLUMN, s.CASEMENT, s.ARCH, s.SLIDEDOOR, s.GROUNDCASE, s.BAYCASE, s.DOUBLEDOOR]
  9664. , c = [s.FURNCOLUMN, s.FURNFLUE];
  9665. e.attachInsert = function(t) {
  9666. var e, i = function(e, i) {
  9667. var n = t.processing
  9668. , g = n.lines.map((function(t) {
  9669. return t.ele
  9670. }
  9671. )).filter((function(t) {
  9672. return !t.exterior
  9673. }
  9674. )).map((function(t) {
  9675. return {
  9676. dis: I.pointLineDis(t, e),
  9677. line: t
  9678. }
  9679. }
  9680. )).sort((function(t, e) {
  9681. return t.dis - e.dis
  9682. }
  9683. )).find((function(t) {
  9684. return I.pointLineDis(t.line, I.getLinePoint(t.line, {
  9685. x: e.x
  9686. })) < .1 || I.pointLineDis(t.line, I.getLinePoint(t.line, {
  9687. y: e.y
  9688. })) < .1
  9689. }
  9690. ));
  9691. if (!g)
  9692. return {
  9693. error: !0,
  9694. msg: a.i18n.t("modules.model.error_location", {
  9695. widget: s.ARCH[i]
  9696. }),
  9697. obj: null
  9698. };
  9699. var A = g.line
  9700. , o = (n.lines.find((function(t) {
  9701. return t.ele === A
  9702. }
  9703. )),
  9704. r.default.attaArch.get(A),
  9705. I.getLinePoint(A, e));
  9706. if (i === s.POINT)
  9707. return I.pointLineDis(g.line, o) > .1 ? {
  9708. error: !0,
  9709. msg: a.i18n.t("modules.model.error_location", {
  9710. widget: ""
  9711. }),
  9712. obj: null
  9713. } : [A, o];
  9714. var l = function(t, e, i) {
  9715. var n = I.getDisPointLinePoints(t, e, i / 2);
  9716. return [n[0], n[1]]
  9717. }(A, o, s.DEFAULT[i].width);
  9718. return C.type.isArray(l) ? [A, l, e] : {
  9719. error: !0,
  9720. msg: l
  9721. }
  9722. }, A = ((e = {})[s.POINT] = function(e, i) {
  9723. var g = t.processing;
  9724. g.insertModel = !0;
  9725. var A = g.addPoint(n({
  9726. id: g.getNewPointId()
  9727. }, i));
  9728. g.data.vertex.push({
  9729. id: A.id,
  9730. x: A.ele.x,
  9731. y: A.ele.y
  9732. });
  9733. var r = g.lineInsertPoint(e, A.ele)
  9734. , o = r.lines
  9735. , C = r.promis;
  9736. if (r.ret)
  9737. return C.then((function() {
  9738. return g.insertModel = !1
  9739. }
  9740. )),
  9741. o.map((function(t) {
  9742. return t.ele
  9743. }
  9744. ))
  9745. }
  9746. ,
  9747. e[s.DOOR] = function(e, i, n, g, A) {
  9748. var r = t.processing;
  9749. return r.addDoor({
  9750. pos: [i[0].x, i[0].y, i[1].x, i[1].y],
  9751. line: r.getLineId(e),
  9752. start: !1,
  9753. within: 0
  9754. }).ele
  9755. }
  9756. ,
  9757. e[s.DOUBLEDOOR] = function(e, i, n, g, A) {
  9758. var r = t.processing;
  9759. return r.adddDoubleDoor({
  9760. pos: [i[0].x, i[0].y, i[1].x, i[1].y],
  9761. line: r.getLineId(e),
  9762. start: !1,
  9763. within: 0
  9764. }).ele
  9765. }
  9766. ,
  9767. e[s.SLIDEDOOR] = function(e, i, n, g, A) {
  9768. var r = t.processing;
  9769. return r.addSlideDoor({
  9770. within: 0,
  9771. pos: [i[0].x, i[0].y, i[1].x, i[1].y],
  9772. line: r.getLineId(e)
  9773. }).ele
  9774. }
  9775. ,
  9776. e[s.GROUNDCASE] = function(e, i, n, g, A) {
  9777. var r = t.processing;
  9778. return r.addGroundCase({
  9779. pos: [i[0].x, i[0].y, i[1].x, i[1].y],
  9780. line: r.getLineId(e)
  9781. }).ele
  9782. }
  9783. ,
  9784. e[s.BAYCASE] = function(e, i, n, g, A) {
  9785. var r = t.processing;
  9786. return r.addBayCase({
  9787. pos: [i[0].x, i[0].y, i[1].x, i[1].y],
  9788. line: r.getLineId(e),
  9789. within: 0
  9790. }).ele
  9791. }
  9792. ,
  9793. e[s.CASEMENT] = function(e, i, n, g, A) {
  9794. var r = t.processing;
  9795. return r.addCase({
  9796. pos: [i[0].x, i[0].y, i[1].x, i[1].y],
  9797. line: r.getLineId(e)
  9798. }).ele
  9799. }
  9800. ,
  9801. e[s.COLUMN] = function(e, i, n) {
  9802. var g = t.processing
  9803. , A = I.getDisVerticalLinePoints(e, i[0], s.DEFAULT[s.COLUMN].width)
  9804. , r = (A[0],
  9805. A[1]);
  9806. if (!r)
  9807. return a.i18n.t("modules.model.error_widget", {
  9808. widget: a.i18n.t("modules.model.column")
  9809. });
  9810. var o = I.getDisVerticalLinePoints(e, i[1], s.DEFAULT[s.COLUMN].tick)
  9811. , C = o[0]
  9812. , l = o[1]
  9813. , u = I.lineDis({
  9814. points: [C, r]
  9815. }) > I.lineDis({
  9816. points: [l, r]
  9817. }) ? l : C;
  9818. return g.addColumn({
  9819. pos: [i[0].x, i[0].y, i[1].x, i[1].y, r.x, r.y, u.x, u.y],
  9820. line: g.getLineId(e)
  9821. }).ele
  9822. }
  9823. ,
  9824. e[s.TAGGING] = function(e) {
  9825. return t.processing.addTagging({
  9826. pos: [e.x, e.y],
  9827. title: "",
  9828. content: "",
  9829. showTitle: !0,
  9830. showContent: !0
  9831. }).ele
  9832. }
  9833. ,
  9834. e[s.FURNCOLUMN] = function(e, i, n, g) {
  9835. return t.processing.addFurnColumn({
  9836. pos: e,
  9837. angle: 0
  9838. }).ele
  9839. }
  9840. ,
  9841. e[s.FURNFLUE] = function(e, i, n, g) {
  9842. return t.processing.addFurnFlue({
  9843. pos: e,
  9844. angle: 0
  9845. }).ele
  9846. }
  9847. ,
  9848. e[s.LINE] = function(e) {
  9849. t.processing;
  9850. var i = s.DEFAULT[s.LINE].width
  9851. , n = {
  9852. points: [{
  9853. x: e.x - i / 2,
  9854. y: e.y
  9855. }, {
  9856. x: e.x + i / 2,
  9857. y: e.y
  9858. }]
  9859. }
  9860. , g = t.processing.lines.some((function(t) {
  9861. var e = t.ele;
  9862. return I.segmentsIntr(e, n)
  9863. }
  9864. ));
  9865. return g && (n = {
  9866. points: [{
  9867. x: e.x - i / 2,
  9868. y: e.y
  9869. }, {
  9870. x: e.x + i / 2,
  9871. y: e.y
  9872. }]
  9873. },
  9874. g = t.processing.lines.some((function(t) {
  9875. var e = t.ele;
  9876. return I.segmentsIntr(e, n)
  9877. }
  9878. ))) ? a.i18n.t("modules.model.error_widget", {
  9879. widget: a.i18n.t("modules.model.line")
  9880. }) : t.processing.furnColumns.concat(t.processing.furnFlues).map((function(t) {
  9881. return t.ele
  9882. }
  9883. )).every((function(t) {
  9884. return !I.isFaceIntersect(n.points, t.points) && !I.isFaceContain(n.points, t.points) && !I.isFaceContain(t.points, n.points)
  9885. }
  9886. )) ? t.processing.addRoom(n)[0].ele : a.i18n.t("modules.model.error_widget", {
  9887. widget: a.i18n.t("modules.model.line")
  9888. })
  9889. }
  9890. ,
  9891. e[s.SEFTLINE] = function(e) {
  9892. return t.processing.addLine(e).ele
  9893. }
  9894. ,
  9895. e);
  9896. t.increase = function(e, r, I, h, p) {
  9897. void 0 === I && (I = null),
  9898. void 0 === h && (h = null),
  9899. void 0 === p && (p = !1);
  9900. var d = t.processing.render;
  9901. if (A[e]) {
  9902. var f, y = p ? d.screenToRealPoint(r) : r;
  9903. if (~u.indexOf(e) || ~c.indexOf(e)) {
  9904. var v = ~c.indexOf(e) ? function(e, i) {
  9905. var g = t.processing
  9906. , A = s.DEFAULT[i].width / 2
  9907. , r = s.DEFAULT[i].tick / 2
  9908. , C = [{
  9909. x: e.x - A,
  9910. y: e.y + r
  9911. }, {
  9912. x: e.x + A,
  9913. y: e.y + r
  9914. }, {
  9915. x: e.x + A,
  9916. y: e.y - r
  9917. }, {
  9918. x: e.x - A,
  9919. y: e.y - r
  9920. }]
  9921. , I = (n(n({}, o.default.prototype), {
  9922. renderer: g.render,
  9923. minWidth: .1
  9924. }),
  9925. []);
  9926. return C.forEach((function(t) {
  9927. I.push(t.x),
  9928. I.push(t.y)
  9929. }
  9930. )),
  9931. [I]
  9932. }(y, e) : i(y, e);
  9933. if (!C.type.isArray(v))
  9934. return v;
  9935. var m = A[e].apply(A, g(v, [I, h]));
  9936. if ("string" == typeof m)
  9937. return {
  9938. error: !0,
  9939. msg: m,
  9940. obj: null
  9941. };
  9942. f = m
  9943. } else if (~l.indexOf(e) && "string" == typeof (f = A[e](y)))
  9944. return {
  9945. error: !0,
  9946. msg: f,
  9947. obj: null
  9948. };
  9949. return t.preservation && t.preservation(),
  9950. {
  9951. error: !1,
  9952. msg: a.i18n.t("modules.model.success", {
  9953. widget: s.ARCH[e]
  9954. }),
  9955. obj: f
  9956. }
  9957. }
  9958. }
  9959. ;
  9960. var h = t.destroy;
  9961. t.destroy = function() {
  9962. for (var e = [], i = 0; i < arguments.length; i++)
  9963. e[i] = arguments[i];
  9964. var n = t.processing;
  9965. n.render;
  9966. n = null,
  9967. h.apply(this, e)
  9968. }
  9969. }
  9970. }
  9971. , function(t, e, i) {
  9972. "use strict";
  9973. var n = this && this.__spreadArrays || function() {
  9974. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  9975. t += arguments[e].length;
  9976. var n = Array(t)
  9977. , g = 0;
  9978. for (e = 0; e < i; e++)
  9979. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  9980. g++)
  9981. n[g] = A[r];
  9982. return n
  9983. }
  9984. , g = this && this.__importDefault || function(t) {
  9985. return t && t.__esModule ? t : {
  9986. default: t
  9987. }
  9988. }
  9989. ;
  9990. Object.defineProperty(e, "__esModule", {
  9991. value: !0
  9992. });
  9993. var A = g(i(41))
  9994. , r = g(i(42));
  9995. e.attachGauge = function(t) {
  9996. var e = {
  9997. processings: [],
  9998. setGaugeAttrs: [],
  9999. showGauge: [],
  10000. setGaugeModel: [],
  10001. hideGauge: [],
  10002. showDire: [],
  10003. hideDire: [],
  10004. setDireAttrs: [],
  10005. setAngle: []
  10006. }
  10007. , i = t.delProcessing;
  10008. t.delProcessing = function(g) {
  10009. for (var A = [], r = 1; r < arguments.length; r++)
  10010. A[r - 1] = arguments[r];
  10011. var o = e.processings.indexOf(g);
  10012. return console.error("-------", o),
  10013. ~o && Object.keys(e).forEach((function(t) {
  10014. e[t].splice(o, 1)
  10015. }
  10016. )),
  10017. i.call.apply(i, n([t, g], A))
  10018. }
  10019. ;
  10020. var g = t.addProcessing;
  10021. t.addProcessing = function() {
  10022. for (var i = [], C = 0; C < arguments.length; C++)
  10023. i[C] = arguments[C];
  10024. var I, s = g.call.apply(g, n([t], i));
  10025. e.processings.push(s);
  10026. var a = s.lines
  10027. , l = a.push
  10028. , u = s.points
  10029. , c = u.push
  10030. , h = function(t) {
  10031. t.__label_intercept = t.intercept,
  10032. t.intercept = function() {
  10033. for (var e = [], i = 0; i < arguments.length; i++)
  10034. e[i] = arguments[i];
  10035. return I.update(),
  10036. t.__label_intercept.apply(t, e)
  10037. }
  10038. }
  10039. , p = function(t) {
  10040. t.__label_intercept = t.drag,
  10041. t.drag = function() {
  10042. for (var e = [], i = 0; i < arguments.length; i++)
  10043. e[i] = arguments[i];
  10044. return I.update(),
  10045. t.__label_intercept.apply(t, e)
  10046. }
  10047. };
  10048. e.setGaugeAttrs.push((function(t) {
  10049. I.__state.direct = !0,
  10050. Object.keys(t).forEach((function(e) {
  10051. I[e] = t[e]
  10052. }
  10053. )),
  10054. I.__state.direct = !1,
  10055. I.update()
  10056. }
  10057. ));
  10058. var d = function() {
  10059. I || (I = new A.default({
  10060. processing: s
  10061. }),
  10062. t.gauge = I),
  10063. a.push = function() {
  10064. for (var t = [], e = 0; e < arguments.length; e++)
  10065. t[e] = arguments[e];
  10066. var i = l.apply(a, t);
  10067. return I.update(),
  10068. t.forEach((function(t) {
  10069. var e = t.ele;
  10070. return p(e)
  10071. }
  10072. )),
  10073. i
  10074. }
  10075. ,
  10076. u.forEach((function(t) {
  10077. var e = t.ele;
  10078. return h(e)
  10079. }
  10080. )),
  10081. a.forEach((function(t) {
  10082. var e = t.ele;
  10083. return p(e)
  10084. }
  10085. )),
  10086. u.push = function() {
  10087. for (var t = [], e = 0; e < arguments.length; e++)
  10088. t[e] = arguments[e];
  10089. return t.forEach((function(t) {
  10090. var e = t.ele;
  10091. return h(e)
  10092. }
  10093. )),
  10094. c.apply(u, t)
  10095. }
  10096. ,
  10097. s.render.push(I)
  10098. };
  10099. e.showGauge.push(d),
  10100. o && d(),
  10101. e.setGaugeModel.push((function(t) {
  10102. return I ? (I.surround = 1 === t,
  10103. new Promise((function(t) {
  10104. return I.nextTick(t)
  10105. }
  10106. ))) : new Promise((function(t) {
  10107. return t(void 0)
  10108. }
  10109. ))
  10110. }
  10111. )),
  10112. e.hideGauge.push((function() {
  10113. a.push = l,
  10114. u.push = c,
  10115. u.forEach((function(t) {
  10116. var e = t.ele;
  10117. return e.intercept = e.__label_intercept
  10118. }
  10119. )),
  10120. s.render.remove(I)
  10121. }
  10122. ));
  10123. var f = new r.default({
  10124. angle: 0,
  10125. renderer: s.render
  10126. });
  10127. return s.direction = f,
  10128. e.showDire.push((function() {
  10129. f.show = !0,
  10130. s.render.push(f)
  10131. }
  10132. )),
  10133. e.hideDire.push((function() {
  10134. f.show = !1,
  10135. s.render.remove(f)
  10136. }
  10137. )),
  10138. e.setDireAttrs.push((function(t) {
  10139. return Object.keys(t).forEach((function(e) {
  10140. f[e] = t[e]
  10141. }
  10142. )),
  10143. new Promise((function(t) {
  10144. return f.nextTick(t)
  10145. }
  10146. ))
  10147. }
  10148. )),
  10149. s
  10150. }
  10151. ,
  10152. t.setGaugeAttrs = function(t) {
  10153. return console.error(e.setGaugeAttrs),
  10154. Promise.all(e.setGaugeAttrs.map((function(e) {
  10155. return e(t)
  10156. }
  10157. )))
  10158. }
  10159. ;
  10160. var o = !1;
  10161. t.showGauge = function() {
  10162. o || (o = !0,
  10163. e.showGauge.forEach((function(t) {
  10164. return t()
  10165. }
  10166. )))
  10167. }
  10168. ,
  10169. t.setGaugeModel = function(t) {
  10170. return Promise.all(e.setGaugeModel.map((function(e) {
  10171. return e(t)
  10172. }
  10173. )))
  10174. }
  10175. ,
  10176. t.hideGauge = function() {
  10177. o && (o = !0,
  10178. e.hideGauge.forEach((function(t) {
  10179. return t()
  10180. }
  10181. )))
  10182. }
  10183. ;
  10184. var C = t.destroy;
  10185. t.destroy = function() {
  10186. for (var e = [], i = 0; i < arguments.length; i++)
  10187. e[i] = arguments[i];
  10188. t.hideGauge(),
  10189. o = !1,
  10190. C.apply(this, e)
  10191. }
  10192. ,
  10193. t.showDire = function() {
  10194. e.showDire.forEach((function(t) {
  10195. return t()
  10196. }
  10197. ))
  10198. }
  10199. ,
  10200. t.hideDire = function() {
  10201. e.hideDire.forEach((function(t) {
  10202. return t()
  10203. }
  10204. ))
  10205. }
  10206. ,
  10207. t.setDireAttrs = function(t) {
  10208. return Promise.all(e.setDireAttrs.map((function(e) {
  10209. return e(t)
  10210. }
  10211. )))
  10212. }
  10213. ,
  10214. t.setAngle = function(e) {
  10215. t.processing.data.dire = e,
  10216. t.processing.direction.angle = e
  10217. }
  10218. }
  10219. }
  10220. , function(t, e, i) {
  10221. "use strict";
  10222. var n, g = this && this.__extends || (n = function(t, e) {
  10223. return (n = Object.setPrototypeOf || {
  10224. __proto__: []
  10225. }instanceof Array && function(t, e) {
  10226. t.__proto__ = e
  10227. }
  10228. || function(t, e) {
  10229. for (var i in e)
  10230. e.hasOwnProperty(i) && (t[i] = e[i])
  10231. }
  10232. )(t, e)
  10233. }
  10234. ,
  10235. function(t, e) {
  10236. function i() {
  10237. this.constructor = t
  10238. }
  10239. n(t, e),
  10240. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  10241. new i)
  10242. }
  10243. ), A = this && this.__assign || function() {
  10244. return (A = Object.assign || function(t) {
  10245. for (var e, i = 1, n = arguments.length; i < n; i++)
  10246. for (var g in e = arguments[i])
  10247. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  10248. return t
  10249. }
  10250. ).apply(this, arguments)
  10251. }
  10252. , r = this && this.__rest || function(t, e) {
  10253. var i = {};
  10254. for (var n in t)
  10255. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  10256. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  10257. var g = 0;
  10258. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  10259. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  10260. }
  10261. return i
  10262. }
  10263. ;
  10264. Object.defineProperty(e, "__esModule", {
  10265. value: !0
  10266. });
  10267. var o = i(2)
  10268. , C = i(1)
  10269. , I = i(0)
  10270. , s = 0
  10271. , a = function(t, e, i, n, g, A, r, o, a) {
  10272. var l = document.createElementNS(C.SVGURI, "g")
  10273. , u = {
  10274. points: [t, e]
  10275. }
  10276. , c = "lineBoth" + s++
  10277. , h = I.getDisVerticalLinePoints(u, t, n)
  10278. , p = h[0]
  10279. , d = h[1]
  10280. , f = I.getDisVerticalLinePoints(u, e, n)
  10281. , y = f[0]
  10282. , v = f[1]
  10283. , m = document.createElementNS(C.SVGURI, "path");
  10284. l.appendChild(m),
  10285. m.setAttribute("stroke", a),
  10286. m.setAttribute("stroke-width", i.toString()),
  10287. "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),
  10288. m.setAttribute("id", c);
  10289. var b = m.cloneNode(!0);
  10290. b.setAttribute("d", "M " + p.x + " " + p.y + " L " + d.x + " " + d.y),
  10291. l.appendChild(b),
  10292. (b = m.cloneNode(!0)).setAttribute("d", "M " + y.x + " " + y.y + " L " + v.x + " " + v.y),
  10293. l.appendChild(b);
  10294. var x = A.toString().length / 2.5 * g
  10295. , _ = A / 2 - x
  10296. , w = document.createElementNS(C.SVGURI, "text");
  10297. w.setAttribute("x", _.toString()),
  10298. w.setAttribute("y", "0"),
  10299. w.setAttribute("style", "fill: " + a + "; font-size: " + g + "px");
  10300. var P = document.createElementNS(C.SVGURI, "textPath");
  10301. P.setAttributeNS(C.SVGPATH, "xlink:href", "#" + c),
  10302. P.appendChild(document.createTextNode(A + "m")),
  10303. w.appendChild(P);
  10304. var O = I.lineVector({
  10305. points: [t, e]
  10306. })
  10307. , S = document.createElementNS(C.SVGURI, "path");
  10308. S.setAttribute("stroke", a),
  10309. S.setAttribute("stroke-width", i.toString()),
  10310. 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));
  10311. var E = S.cloneNode(!0);
  10312. 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),
  10313. l.appendChild(E),
  10314. l.appendChild(S),
  10315. m.style.display = "none",
  10316. l.appendChild(w),
  10317. l
  10318. }
  10319. , l = function(t) {
  10320. function e(e) {
  10321. var i = e.processing
  10322. , n = e.padding
  10323. , g = void 0 === n ? 10 : n
  10324. , o = e.spacing
  10325. , C = void 0 === o ? 4 : o
  10326. , I = e.minPX
  10327. , s = void 0 === I ? 50 : I
  10328. , a = e.width
  10329. , l = void 0 === a ? 1 : a
  10330. , u = e.showBottom
  10331. , c = void 0 === u || u
  10332. , h = e.showTop
  10333. , p = void 0 === h || h
  10334. , d = e.showLeft
  10335. , f = void 0 === d || d
  10336. , y = e.showRight
  10337. , v = void 0 === y || y
  10338. , m = e.surround
  10339. , b = void 0 !== m && m
  10340. , x = e.stroke
  10341. , _ = void 0 === x ? "#fff" : x
  10342. , w = r(e, ["processing", "padding", "spacing", "minPX", "width", "showBottom", "showTop", "showLeft", "showRight", "surround", "stroke"])
  10343. , P = t.call(this, A({
  10344. renderer: i.render,
  10345. minPX: s,
  10346. width: l,
  10347. showBottom: c,
  10348. showTop: p,
  10349. showLeft: f,
  10350. showRight: v,
  10351. surround: b,
  10352. stroke: _
  10353. }, w)) || this;
  10354. return P.padding = g,
  10355. P.spacing = C,
  10356. P.processing = i,
  10357. Object.defineProperty(P, "points", {
  10358. get: function() {
  10359. return this.processing.points
  10360. }
  10361. }),
  10362. P.update(),
  10363. P
  10364. }
  10365. return g(e, t),
  10366. e.prototype.grentNode = function() {
  10367. this.top = document.createElementNS(C.SVGURI, "g"),
  10368. this.left = document.createElementNS(C.SVGURI, "g"),
  10369. this.right = document.createElementNS(C.SVGURI, "g"),
  10370. this.bottom = document.createElementNS(C.SVGURI, "g");
  10371. var t = document.createElementNS(C.SVGURI, "g");
  10372. return t.appendChild(this.top),
  10373. t.appendChild(this.left),
  10374. t.appendChild(this.right),
  10375. t.appendChild(this.bottom),
  10376. t
  10377. }
  10378. ,
  10379. e.prototype.calcSplit = function() {
  10380. var t = this.processing.render
  10381. , e = this.minPX
  10382. , i = I.lineDis({
  10383. points: [t.screenToRealPoint({
  10384. x: 0,
  10385. y: 0
  10386. }), t.screenToRealPoint({
  10387. x: e,
  10388. y: 0
  10389. })]
  10390. })
  10391. , n = I.lineDis({
  10392. points: [t.screenToRealPoint({
  10393. x: 0,
  10394. y: 0
  10395. }), t.screenToRealPoint({
  10396. x: 0,
  10397. y: e
  10398. })]
  10399. })
  10400. , g = this.points.map((function(t) {
  10401. return t.ele
  10402. }
  10403. ))
  10404. , r = []
  10405. , o = []
  10406. , C = []
  10407. , s = []
  10408. , a = function(t, e, r) {
  10409. var o, C;
  10410. g.sort(e),
  10411. g.forEach((function(e) {
  10412. return 0 === t.length || e[r] > t[t.length - 1] ? t.push(e[r]) : e[r] < t[0] && t.unshift(e[r])
  10413. }
  10414. ));
  10415. for (var s = "x" === r ? i : n, a = {
  10416. x: 0,
  10417. y: 0
  10418. }, l = 0; l < t.length - 2; l++) {
  10419. var u = A(A({}, a), ((o = {})[r] = t[l],
  10420. o))
  10421. , c = A(A({}, a), ((C = {})[r] = t[l + 1],
  10422. C));
  10423. I.lineDis({
  10424. points: [u, c]
  10425. }) < s && (t.splice(l + 1, 1),
  10426. l--)
  10427. }
  10428. t.length > 2 && t.splice(t.length - 2, 2, t[t.length - 1])
  10429. };
  10430. return a(r, (function(t, e) {
  10431. return t.x - e.x ? t.x - e.x : e.y - t.y
  10432. }
  10433. ), "y"),
  10434. a(C, (function(t, e) {
  10435. return e.x - t.x ? e.x - t.x : e.y - t.y
  10436. }
  10437. ), "y"),
  10438. a(o, (function(t, e) {
  10439. return t.y - e.y ? t.y - e.y : e.x - t.x
  10440. }
  10441. ), "x"),
  10442. a(s, (function(t, e) {
  10443. return e.y - t.y ? e.y - t.y : e.x - t.x
  10444. }
  10445. ), "x"),
  10446. {
  10447. left: r,
  10448. top: o,
  10449. right: C,
  10450. bottom: s
  10451. }
  10452. }
  10453. ,
  10454. e.prototype.update = function() {
  10455. var t = this;
  10456. if (0 !== this.points.length && 0 !== this.processing.render.props.width) {
  10457. var e = this.processing.render
  10458. , i = 10 * this.width * this.multiple
  10459. , n = this.calcSplit()
  10460. , g = n.left
  10461. , A = n.right
  10462. , r = n.top
  10463. , o = n.bottom
  10464. , C = e.screenToRealPoint({
  10465. x: this.padding,
  10466. y: this.padding
  10467. })
  10468. , I = e.screenToRealPoint({
  10469. x: e.props.width / e.props.multiple - this.padding,
  10470. y: e.props.height / e.props.multiple - this.padding
  10471. });
  10472. if (this.surround) {
  10473. var s = this.points.map((function(t) {
  10474. return t.ele.x
  10475. }
  10476. ))
  10477. , l = this.points.map((function(t) {
  10478. return t.ele.y
  10479. }
  10480. ))
  10481. , u = Math.max.apply(Math, s)
  10482. , c = Math.min.apply(Math, s)
  10483. , h = Math.max.apply(Math, l)
  10484. , p = Math.min.apply(Math, l);
  10485. Math.abs(C.x - c) < Math.abs(C.y - p) && Math.abs(I.x - u) - Math.abs(I.y - h) ? (I = {
  10486. x: I.x,
  10487. y: h + Math.abs(C.x - c)
  10488. },
  10489. C = {
  10490. x: C.x,
  10491. y: p - Math.abs(C.x - c)
  10492. }) : (I = {
  10493. x: u + Math.abs(C.y - h),
  10494. y: I.y
  10495. },
  10496. C = {
  10497. x: c - Math.abs(C.y - p),
  10498. y: I.y
  10499. })
  10500. }
  10501. var d = function(e, n, g, A) {
  10502. for (var r = 0; r < e.length - 1; r++) {
  10503. var o = 0 === r ? e[r] : e[r] + t.spacing / 2 * t.multiple
  10504. , C = r + 1 === e.length ? e[r + 1] : e[r + 1] - t.spacing / 2 * t.multiple;
  10505. 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))
  10506. }
  10507. };
  10508. [this.left, this.top, this.right, this.bottom].forEach((function(t) {
  10509. for (; t.childNodes.length; )
  10510. t.removeChild(t.childNodes[0])
  10511. }
  10512. )),
  10513. this.showLeft && d(g, (function(t) {
  10514. return {
  10515. x: C.x,
  10516. y: t
  10517. }
  10518. }
  10519. ), (function(e) {
  10520. return t.left.appendChild(e)
  10521. }
  10522. ), "left"),
  10523. this.showBottom && d(o, (function(t) {
  10524. return {
  10525. x: t,
  10526. y: I.y
  10527. }
  10528. }
  10529. ), (function(e) {
  10530. return t.bottom.appendChild(e)
  10531. }
  10532. ), "bottom"),
  10533. this.showTop && d(r, (function(t) {
  10534. return {
  10535. x: t,
  10536. y: C.y
  10537. }
  10538. }
  10539. ), (function(e) {
  10540. e.querySelector("text").setAttribute("transform", "translate(0, " + i / 1.2 + ")"),
  10541. t.top.appendChild(e)
  10542. }
  10543. ), "top"),
  10544. this.showRight && d(A, (function(t) {
  10545. return {
  10546. x: I.x,
  10547. y: t
  10548. }
  10549. }
  10550. ), (function(e) {
  10551. e.querySelector("text").setAttribute("transform", "translate(-" + i / 1.2 + ", 0)"),
  10552. t.right.appendChild(e)
  10553. }
  10554. ), "right")
  10555. }
  10556. }
  10557. ,
  10558. e
  10559. }(o.CADElement);
  10560. e.default = l
  10561. }
  10562. , function(t, e, i) {
  10563. "use strict";
  10564. var n, g = this && this.__extends || (n = function(t, e) {
  10565. return (n = Object.setPrototypeOf || {
  10566. __proto__: []
  10567. }instanceof Array && function(t, e) {
  10568. t.__proto__ = e
  10569. }
  10570. || function(t, e) {
  10571. for (var i in e)
  10572. e.hasOwnProperty(i) && (t[i] = e[i])
  10573. }
  10574. )(t, e)
  10575. }
  10576. ,
  10577. function(t, e) {
  10578. function i() {
  10579. this.constructor = t
  10580. }
  10581. n(t, e),
  10582. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  10583. new i)
  10584. }
  10585. ), A = this && this.__assign || function() {
  10586. return (A = Object.assign || function(t) {
  10587. for (var e, i = 1, n = arguments.length; i < n; i++)
  10588. for (var g in e = arguments[i])
  10589. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  10590. return t
  10591. }
  10592. ).apply(this, arguments)
  10593. }
  10594. , r = this && this.__rest || function(t, e) {
  10595. var i = {};
  10596. for (var n in t)
  10597. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  10598. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  10599. var g = 0;
  10600. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  10601. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  10602. }
  10603. return i
  10604. }
  10605. , o = this && this.__importDefault || function(t) {
  10606. return t && t.__esModule ? t : {
  10607. default: t
  10608. }
  10609. }
  10610. ;
  10611. Object.defineProperty(e, "__esModule", {
  10612. value: !0
  10613. });
  10614. var C = i(2)
  10615. , I = i(1)
  10616. , s = i(0)
  10617. , a = o(i(43))
  10618. , l = o(i(44))
  10619. , u = o(i(45))
  10620. , c = {
  10621. defaultIcon: l.default,
  10622. darkIcon: u.default
  10623. }
  10624. , h = function(t) {
  10625. function e(e) {
  10626. var i = e.fontSize
  10627. , n = void 0 === i ? 8 : i
  10628. , g = e.r
  10629. , o = void 0 === g ? 50 : g
  10630. , C = e.icon
  10631. , I = void 0 === C ? "defaultIcon" : C
  10632. , s = e.border
  10633. , a = void 0 === s ? 3 : s
  10634. , l = e.right
  10635. , u = void 0 === l ? 20 : l
  10636. , c = e.top
  10637. , h = void 0 === c ? 20 : c
  10638. , p = e.ArgDire
  10639. , d = void 0 === p ? 15 : p
  10640. , f = e.simple
  10641. , y = void 0 !== f && f
  10642. , v = e.angle
  10643. , m = void 0 === v ? 0 : v
  10644. , b = r(e, ["fontSize", "r", "icon", "border", "right", "top", "ArgDire", "simple", "angle"]);
  10645. return t.call(this, A({
  10646. fontSize: n,
  10647. r: o,
  10648. border: a,
  10649. right: u,
  10650. top: h,
  10651. ArgDire: d,
  10652. simple: y,
  10653. icon: I,
  10654. angle: m
  10655. }, b)) || this
  10656. }
  10657. return g(e, t),
  10658. e.prototype.grentNode = function() {
  10659. var t = document.createElementNS(I.SVGURI, "g");
  10660. this.dire = document.createElementNS(I.SVGURI, "image"),
  10661. this.bg = document.createElementNS(I.SVGURI, "image"),
  10662. this.bg.href.baseVal = a.default,
  10663. this.inner = document.createElementNS(I.SVGURI, "circle"),
  10664. this.inner.setAttribute("fill", "rgba(41,41,41,1)");
  10665. var e = document.createElementNS(I.SVGURI, "text");
  10666. return e.setAttribute("fill", "#fff"),
  10667. e.setAttribute("text-anchor", "middle"),
  10668. this.topText = e.cloneNode(!0),
  10669. this.rightText = e.cloneNode(!0),
  10670. this.leftText = e.cloneNode(!0),
  10671. this.bottomText = e.cloneNode(!0),
  10672. this.topText.textContent = "N",
  10673. this.topText.setAttribute("fill", "#00A0E9"),
  10674. this.rightText.textContent = "E",
  10675. this.leftText.textContent = "W",
  10676. this.bottomText.textContent = "S",
  10677. this.bottomText.setAttribute("fill", "#D84141"),
  10678. this.arc = document.createElementNS(I.SVGURI, "path"),
  10679. this.arc.setAttribute("fill", "rgba(255,255,255,0.3)"),
  10680. t.appendChild(this.inner),
  10681. t.appendChild(this.arc),
  10682. t.appendChild(this.bg),
  10683. t.appendChild(this.dire),
  10684. t.appendChild(this.topText),
  10685. t.appendChild(this.rightText),
  10686. t.appendChild(this.bottomText),
  10687. t.appendChild(this.leftText),
  10688. t
  10689. }
  10690. ,
  10691. e.prototype.intercept = function() {
  10692. return !0
  10693. }
  10694. ,
  10695. e.prototype.update = function() {
  10696. var t = this.r / 2 + this.border + this.right
  10697. , e = this.r / 2 + this.border + this.top
  10698. , i = this.renderer
  10699. , n = this.fontSize * this.multiple
  10700. , g = this.border * this.multiple
  10701. , A = i.screenToRealPoint({
  10702. x: i.props.width / i.props.multiple - e,
  10703. y: t
  10704. });
  10705. if (!isNaN(A.x) && !isNaN(A.y)) {
  10706. var r = this.r * this.multiple
  10707. , o = (n + 3 * g + r) / 2;
  10708. this.inner.setAttribute("r", o.toString()),
  10709. this.inner.setAttribute("cx", A.x.toString()),
  10710. this.inner.setAttribute("cy", A.y.toString()),
  10711. this.icon !== this.firstIcon && (this.dire.href.baseVal = c[this.icon],
  10712. this.firstIcon = this.icon),
  10713. this.dire.setAttribute("x", (A.x - r / 2).toString()),
  10714. this.dire.setAttribute("y", (A.y - r / 2).toString()),
  10715. this.dire.setAttribute("width", r.toString()),
  10716. this.dire.setAttribute("height", r.toString()),
  10717. this.bg.setAttribute("x", (A.x - r / 2).toString()),
  10718. this.bg.setAttribute("y", (A.y - r / 2).toString()),
  10719. this.bg.setAttribute("width", r.toString()),
  10720. this.bg.setAttribute("height", r.toString()),
  10721. this.topText.setAttribute("x", A.x.toString()),
  10722. this.topText.setAttribute("y", (A.y - r / 2 - n / 2 + g).toString()),
  10723. this.topText.setAttribute("font-size", n.toString()),
  10724. this.rightText.setAttribute("x", (A.x + r / 2 + g).toString()),
  10725. this.rightText.setAttribute("y", (A.y + n / 2).toString()),
  10726. this.rightText.setAttribute("font-size", n.toString()),
  10727. this.bottomText.setAttribute("x", A.x.toString()),
  10728. this.bottomText.setAttribute("y", (A.y + r / 2 + n).toString()),
  10729. this.bottomText.setAttribute("font-size", n.toString()),
  10730. this.leftText.setAttribute("x", (A.x - r / 2 - n + g).toString()),
  10731. this.leftText.setAttribute("y", (A.y + g).toString()),
  10732. this.leftText.setAttribute("font-size", n.toString());
  10733. var C = this.ArgDire * this.multiple
  10734. , I = {
  10735. points: [A, {
  10736. x: A.x - C,
  10737. y: A.y - r / 2 - n - g
  10738. }]
  10739. }
  10740. , a = {
  10741. points: [A, {
  10742. x: A.x + C,
  10743. y: A.y - r / 2 - n - g
  10744. }]
  10745. }
  10746. , l = s.getDisPointLinePoints(I, I.points[0], o)
  10747. , u = l[0]
  10748. , h = l[1]
  10749. , p = s.getDisPointLinePoints(a, a.points[0], o)
  10750. , d = p[0]
  10751. , f = p[1]
  10752. , y = s.lineDis({
  10753. points: [I.points[1], u]
  10754. }) > s.lineDis({
  10755. points: [I.points[1], h]
  10756. }) ? h : u
  10757. , v = s.lineDis({
  10758. points: [a.points[1], d]
  10759. }) > s.lineDis({
  10760. points: [a.points[1], f]
  10761. }) ? f : d;
  10762. 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"),
  10763. this.real.setAttribute("transform", "rotate(" + (this.angle || 0) + " " + A.x + " " + A.y + ")"),
  10764. this.simple ? (this.leftText.style.display = "none",
  10765. this.rightText.style.display = "none",
  10766. this.bg.style.display = "none",
  10767. this.inner.style.display = "none",
  10768. this.arc.style.display = "none") : (this.leftText.style.display = "inherit",
  10769. this.rightText.style.display = "inherit",
  10770. this.bg.style.display = "inherit",
  10771. this.inner.style.display = "inherit",
  10772. this.arc.style.display = "inherit")
  10773. }
  10774. }
  10775. ,
  10776. e
  10777. }(C.CADElement);
  10778. e.default = h
  10779. }
  10780. , function(t, e, i) {
  10781. "use strict";
  10782. Object.defineProperty(e, "__esModule", {
  10783. value: !0
  10784. }),
  10785. 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"
  10786. }
  10787. , function(t, e, i) {
  10788. "use strict";
  10789. Object.defineProperty(e, "__esModule", {
  10790. value: !0
  10791. }),
  10792. 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="
  10793. }
  10794. , function(t, e, i) {
  10795. "use strict";
  10796. Object.defineProperty(e, "__esModule", {
  10797. value: !0
  10798. }),
  10799. 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="
  10800. }
  10801. , function(t, e, i) {
  10802. "use strict";
  10803. var n = this && this.__spreadArrays || function() {
  10804. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  10805. t += arguments[e].length;
  10806. var n = Array(t)
  10807. , g = 0;
  10808. for (e = 0; e < i; e++)
  10809. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  10810. g++)
  10811. n[g] = A[r];
  10812. return n
  10813. }
  10814. , g = this && this.__importDefault || function(t) {
  10815. return t && t.__esModule ? t : {
  10816. default: t
  10817. }
  10818. }
  10819. ;
  10820. Object.defineProperty(e, "__esModule", {
  10821. value: !0
  10822. });
  10823. var A = g(i(47))
  10824. , r = i(3);
  10825. e.attachSign = function(t) {
  10826. var e = {
  10827. border: 2,
  10828. r: 5
  10829. }
  10830. , i = t.addProcessing;
  10831. t.addProcessing = function() {
  10832. for (var g = [], r = 0; r < arguments.length; r++)
  10833. g[r] = arguments[r];
  10834. var o = i.call.apply(i, n([t], g));
  10835. A.default.Setting.set(o.render, e);
  10836. var C = new A.default({
  10837. pos: {
  10838. x: 0,
  10839. y: 0
  10840. },
  10841. dire: 0,
  10842. renderer: o.render
  10843. });
  10844. return C.zIndex = 1,
  10845. o.render.push(C),
  10846. o.sign = C,
  10847. o
  10848. }
  10849. ,
  10850. t.setSign = function(e, i) {
  10851. var n = t.processing.sign;
  10852. r.type.isNumber(i) && (n.dire = i),
  10853. n.pos = e
  10854. }
  10855. ,
  10856. t.hideSign = function() {
  10857. var e = t.processing.sign;
  10858. return e.show = !1,
  10859. new Promise((function(t) {
  10860. return e.nextTick(t)
  10861. }
  10862. ))
  10863. }
  10864. ,
  10865. t.showSign = function() {
  10866. var e = t.processing.sign;
  10867. return e.show = !0,
  10868. new Promise((function(t) {
  10869. return e.nextTick(t)
  10870. }
  10871. ))
  10872. }
  10873. ,
  10874. t.setDefaultSignStyle = function(i) {
  10875. var n = t.processing.sign;
  10876. i.border && (e.border = i.border,
  10877. n.border = i.border),
  10878. i.r && (e.r = i.r,
  10879. n.r = i.r),
  10880. i.color && (n.color = i.color)
  10881. }
  10882. }
  10883. }
  10884. , function(t, e, i) {
  10885. "use strict";
  10886. var n, g = this && this.__extends || (n = function(t, e) {
  10887. return (n = Object.setPrototypeOf || {
  10888. __proto__: []
  10889. }instanceof Array && function(t, e) {
  10890. t.__proto__ = e
  10891. }
  10892. || function(t, e) {
  10893. for (var i in e)
  10894. e.hasOwnProperty(i) && (t[i] = e[i])
  10895. }
  10896. )(t, e)
  10897. }
  10898. ,
  10899. function(t, e) {
  10900. function i() {
  10901. this.constructor = t
  10902. }
  10903. n(t, e),
  10904. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  10905. new i)
  10906. }
  10907. ), A = this && this.__assign || function() {
  10908. return (A = Object.assign || function(t) {
  10909. for (var e, i = 1, n = arguments.length; i < n; i++)
  10910. for (var g in e = arguments[i])
  10911. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  10912. return t
  10913. }
  10914. ).apply(this, arguments)
  10915. }
  10916. , r = this && this.__rest || function(t, e) {
  10917. var i = {};
  10918. for (var n in t)
  10919. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n]);
  10920. if (null != t && "function" == typeof Object.getOwnPropertySymbols) {
  10921. var g = 0;
  10922. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  10923. e.indexOf(n[g]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[g]) && (i[n[g]] = t[n[g]])
  10924. }
  10925. return i
  10926. }
  10927. ;
  10928. Object.defineProperty(e, "__esModule", {
  10929. value: !0
  10930. });
  10931. var o = i(2)
  10932. , C = i(1)
  10933. , I = 0
  10934. , s = function(t) {
  10935. function e(i) {
  10936. var n = i.border
  10937. , g = i.r
  10938. , o = i.show
  10939. , C = void 0 === o || o
  10940. , s = i.color
  10941. , a = void 0 === s ? "rgb(183, 18, 15)" : s
  10942. , l = r(i, ["border", "r", "show", "color"]);
  10943. return n = n || e.Setting.get(l.renderer).border,
  10944. g = g || e.Setting.get(l.renderer).r,
  10945. I++,
  10946. t.call(this, A({
  10947. border: n,
  10948. r: g,
  10949. show: C,
  10950. color: a
  10951. }, l)) || this
  10952. }
  10953. return g(e, t),
  10954. e.prototype.grentNode = function() {
  10955. var t = document.createElementNS(C.SVGURI, "g");
  10956. this.inner = document.createElementNS(C.SVGURI, "circle"),
  10957. this.inner.setAttribute("stroke", "#fff"),
  10958. this.arc = document.createElementNS(C.SVGURI, "path"),
  10959. this.arc.setAttribute("fill", "url(#orange_red" + I + ")");
  10960. var e = document.createElementNS(C.SVGURI, "defs")
  10961. , i = document.createElementNS(C.SVGURI, "linearGradient");
  10962. i.setAttribute("id", "orange_red" + I),
  10963. i.setAttribute("x1", "0%"),
  10964. i.setAttribute("y1", "0%"),
  10965. i.setAttribute("x2", "100%"),
  10966. i.setAttribute("y2", "100%");
  10967. var n = document.createElementNS(C.SVGURI, "stop");
  10968. n.setAttribute("offset", "0%");
  10969. var g = document.createElementNS(C.SVGURI, "stop");
  10970. return g.setAttribute("offset", "100%"),
  10971. i.appendChild(n),
  10972. i.appendChild(g),
  10973. e.appendChild(i),
  10974. t.appendChild(this.arc),
  10975. t.appendChild(this.inner),
  10976. t.appendChild(e),
  10977. t.setAttribute("class", "sign"),
  10978. this.$stop1 = n,
  10979. this.$stop2 = g,
  10980. t
  10981. }
  10982. ,
  10983. e.prototype.update = function() {
  10984. this.inner.setAttribute("fill", this.color),
  10985. this.$stop1.setAttribute("style", "stop-color:" + this.color + "; stop-opacity:1"),
  10986. this.$stop2.setAttribute("style", "stop-color:" + this.color + "; stop-opacity:0.4"),
  10987. this.inner.setAttribute("r", (this.r * this.multiple).toString()),
  10988. this.inner.setAttribute("stroke-width", (this.border * this.multiple).toString()),
  10989. this.inner.setAttribute("cx", this.pos.x.toString()),
  10990. this.inner.setAttribute("cy", this.pos.y.toString());
  10991. var t = .4 * this.r * this.multiple
  10992. , e = 1.6 * this.r * this.multiple
  10993. , i = 2.8 * this.r * this.multiple;
  10994. 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 "),
  10995. this.real.setAttribute("transform", "rotate(" + this.dire + " " + this.pos.x + " " + this.pos.y + ")"),
  10996. this.real.style.display = this.show ? "inherit" : "none"
  10997. }
  10998. ,
  10999. e.Setting = new Map,
  11000. e
  11001. }(o.CADElement);
  11002. e.default = s
  11003. }
  11004. , function(t, e, i) {
  11005. "use strict";
  11006. var n = this && this.__assign || function() {
  11007. return (n = Object.assign || function(t) {
  11008. for (var e, i = 1, n = arguments.length; i < n; i++)
  11009. for (var g in e = arguments[i])
  11010. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  11011. return t
  11012. }
  11013. ).apply(this, arguments)
  11014. }
  11015. , g = this && this.__awaiter || function(t, e, i, n) {
  11016. return new (i || (i = Promise))((function(g, A) {
  11017. function r(t) {
  11018. try {
  11019. C(n.next(t))
  11020. } catch (t) {
  11021. A(t)
  11022. }
  11023. }
  11024. function o(t) {
  11025. try {
  11026. C(n.throw(t))
  11027. } catch (t) {
  11028. A(t)
  11029. }
  11030. }
  11031. function C(t) {
  11032. var e;
  11033. t.done ? g(t.value) : (e = t.value,
  11034. e instanceof i ? e : new i((function(t) {
  11035. t(e)
  11036. }
  11037. ))).then(r, o)
  11038. }
  11039. C((n = n.apply(t, e || [])).next())
  11040. }
  11041. ))
  11042. }
  11043. , A = this && this.__generator || function(t, e) {
  11044. var i, n, g, A, r = {
  11045. label: 0,
  11046. sent: function() {
  11047. if (1 & g[0])
  11048. throw g[1];
  11049. return g[1]
  11050. },
  11051. trys: [],
  11052. ops: []
  11053. };
  11054. return A = {
  11055. next: o(0),
  11056. throw: o(1),
  11057. return: o(2)
  11058. },
  11059. "function" == typeof Symbol && (A[Symbol.iterator] = function() {
  11060. return this
  11061. }
  11062. ),
  11063. A;
  11064. function o(A) {
  11065. return function(o) {
  11066. return function(A) {
  11067. if (i)
  11068. throw new TypeError("Generator is already executing.");
  11069. for (; r; )
  11070. try {
  11071. if (i = 1,
  11072. n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n),
  11073. 0) : n.next) && !(g = g.call(n, A[1])).done)
  11074. return g;
  11075. switch (n = 0,
  11076. g && (A = [2 & A[0], g.value]),
  11077. A[0]) {
  11078. case 0:
  11079. case 1:
  11080. g = A;
  11081. break;
  11082. case 4:
  11083. return r.label++,
  11084. {
  11085. value: A[1],
  11086. done: !1
  11087. };
  11088. case 5:
  11089. r.label++,
  11090. n = A[1],
  11091. A = [0];
  11092. continue;
  11093. case 7:
  11094. A = r.ops.pop(),
  11095. r.trys.pop();
  11096. continue;
  11097. default:
  11098. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  11099. r = 0;
  11100. continue
  11101. }
  11102. if (3 === A[0] && (!g || A[1] > g[0] && A[1] < g[3])) {
  11103. r.label = A[1];
  11104. break
  11105. }
  11106. if (6 === A[0] && r.label < g[1]) {
  11107. r.label = g[1],
  11108. g = A;
  11109. break
  11110. }
  11111. if (g && r.label < g[2]) {
  11112. r.label = g[2],
  11113. r.ops.push(A);
  11114. break
  11115. }
  11116. g[2] && r.ops.pop(),
  11117. r.trys.pop();
  11118. continue
  11119. }
  11120. A = e.call(t, r)
  11121. } catch (t) {
  11122. A = [6, t],
  11123. n = 0
  11124. } finally {
  11125. i = g = 0
  11126. }
  11127. if (5 & A[0])
  11128. throw A[1];
  11129. return {
  11130. value: A[0] ? A[1] : void 0,
  11131. done: !0
  11132. }
  11133. }([A, o])
  11134. }
  11135. }
  11136. }
  11137. ;
  11138. Object.defineProperty(e, "__esModule", {
  11139. value: !0
  11140. });
  11141. var r = i(3);
  11142. e.attachScreenshot = function(t) {
  11143. t.screenshot = function(e) {
  11144. var i = e.width
  11145. , o = void 0 === i ? 2048 : i
  11146. , C = e.height
  11147. , I = void 0 === C ? 2048 : C
  11148. , s = e.bgColor
  11149. , a = void 0 === s ? "rgba(0,0,0,0)" : s
  11150. , l = e.data
  11151. , u = e.spadding
  11152. , c = e.format
  11153. , h = void 0 === c ? "image/png" : c;
  11154. return g(void 0, void 0, void 0, (function() {
  11155. var e, i, C, s, c, p, d, f;
  11156. return A(this, (function(y) {
  11157. return e = t.processing.render,
  11158. i = n({}, e.props),
  11159. C = new Image,
  11160. s = document.createElement("canvas"),
  11161. c = s.getContext("2d"),
  11162. p = t.processing.points.map((function(t) {
  11163. return t.ele.x
  11164. }
  11165. )),
  11166. d = t.processing.points.map((function(t) {
  11167. return t.ele.y
  11168. }
  11169. )),
  11170. f = t.padding,
  11171. t.padding = u,
  11172. t.adapt(l, o, I),
  11173. s.width = o,
  11174. s.height = I,
  11175. c.fillStyle = a,
  11176. c.fillRect(0, 0, s.width, s.height),
  11177. [2, new Promise((function(n, a) {
  11178. return g(void 0, void 0, void 0, (function() {
  11179. return A(this, (function(l) {
  11180. return C.onload = function() {
  11181. return g(void 0, void 0, void 0, (function() {
  11182. var g;
  11183. return A(this, (function(A) {
  11184. return c.drawImage(C, 0, 0),
  11185. g = {
  11186. file: r.convertBase64UrlToBlob(s.toDataURL(h)),
  11187. width: o,
  11188. height: I,
  11189. left: t.processing.render.realPointToScreen({
  11190. x: Math.min.apply(Math, p),
  11191. y: 0
  11192. }).x,
  11193. top: t.processing.render.realPointToScreen({
  11194. x: 0,
  11195. y: Math.min.apply(Math, d)
  11196. }).y,
  11197. bottom: I - t.processing.render.realPointToScreen({
  11198. x: 0,
  11199. y: Math.max.apply(Math, d)
  11200. }).y,
  11201. right: o - t.processing.render.realPointToScreen({
  11202. x: Math.max.apply(Math, p),
  11203. y: 0
  11204. }).x,
  11205. bound: {
  11206. left: Math.min.apply(Math, p),
  11207. top: Math.min.apply(Math, d),
  11208. bottom: Math.max.apply(Math, d),
  11209. right: Math.max.apply(Math, p)
  11210. }
  11211. },
  11212. e.props = i,
  11213. t.padding = f,
  11214. e.adaptLayer(),
  11215. n(g),
  11216. [2]
  11217. }
  11218. ))
  11219. }
  11220. ))
  11221. }
  11222. ,
  11223. C.onerror = function(n) {
  11224. e.props = i,
  11225. t.padding = f,
  11226. e.adaptLayer(),
  11227. a(n)
  11228. }
  11229. ,
  11230. C.src = "data:image/svg+xml;base64," + window.btoa(unescape(encodeURIComponent(e.svg.outerHTML))),
  11231. [2]
  11232. }
  11233. ))
  11234. }
  11235. ))
  11236. }
  11237. ))]
  11238. }
  11239. ))
  11240. }
  11241. ))
  11242. }
  11243. }
  11244. }
  11245. , function(t, e, i) {
  11246. "use strict";
  11247. Object.defineProperty(e, "__esModule", {
  11248. value: !0
  11249. });
  11250. var n = function() {
  11251. function t(t) {
  11252. this.length = t + "__length",
  11253. this.index = t + "__index",
  11254. this.name = t,
  11255. this.keys = [],
  11256. this.init()
  11257. }
  11258. return t.prototype.init = function() {
  11259. sessionStorage.setItem(this.length, "0")
  11260. }
  11261. ,
  11262. t.prototype.getKey = function(t) {
  11263. return this.name + "__" + t
  11264. }
  11265. ,
  11266. t.prototype.getData = function() {
  11267. return sessionStorage.getItem(this.index)
  11268. }
  11269. ,
  11270. t.prototype.getLength = function() {
  11271. return Number(sessionStorage.getItem(this.length))
  11272. }
  11273. ,
  11274. t.prototype.setLength = function(t) {
  11275. sessionStorage.setItem(this.length, t)
  11276. }
  11277. ,
  11278. t.prototype.push = function(t) {
  11279. var e = this.getLength()
  11280. , i = this.getKey(this.getLength());
  11281. return sessionStorage.setItem(i, JSON.stringify(t)),
  11282. this.keys.push(i),
  11283. this.setLength(e + 1),
  11284. t
  11285. }
  11286. ,
  11287. t.prototype.pop = function() {
  11288. var t = this.getLength()
  11289. , e = this.get(t - 1);
  11290. return this.setLength(t - 1),
  11291. e
  11292. }
  11293. ,
  11294. t.prototype.get = function(t) {
  11295. var e = this.getKey(t);
  11296. return JSON.parse(sessionStorage.getItem(e))
  11297. }
  11298. ,
  11299. t.prototype.clear = function() {
  11300. this.setLength(0),
  11301. this.keys.forEach((function(t) {
  11302. return sessionStorage.removeItem(t)
  11303. }
  11304. )),
  11305. this.keys = [this.length]
  11306. }
  11307. ,
  11308. t
  11309. }();
  11310. e.default = n
  11311. }
  11312. , function(t, e, i) {
  11313. "use strict";
  11314. i.r(e),
  11315. i.d(e, "default", (function() {
  11316. return r
  11317. }
  11318. ));
  11319. var n = i(6)
  11320. , g = i.n(n)
  11321. , A = i(0);
  11322. function r(t, e) {
  11323. let i = Date.now()
  11324. , n = []
  11325. , r = []
  11326. , o = [];
  11327. function C(t, e, i, g, A, o, I) {
  11328. for (let s = 0; s < t.length; ++s) {
  11329. if (A.indexOf(s) > -1 || o.indexOf(I) > -1)
  11330. continue;
  11331. let a = t[s]
  11332. , l = a.p1.id
  11333. , u = a.p2.id;
  11334. if (I == l || I == u) {
  11335. let c = JSON.parse(JSON.stringify(i))
  11336. , h = JSON.parse(JSON.stringify(g))
  11337. , p = JSON.parse(JSON.stringify(A))
  11338. , d = JSON.parse(JSON.stringify(o))
  11339. , f = I;
  11340. h.push(a.id),
  11341. c.push(I),
  11342. p.push(s),
  11343. d.push(I),
  11344. f == l ? f = u : f == u && (f = l),
  11345. e == f ? (r.push(c),
  11346. n.push(h)) : C(t, e, c, h, p, d, f)
  11347. }
  11348. }
  11349. }
  11350. function I(t, e, i, n) {
  11351. let g = [];
  11352. for (let t = 0; t < n.length; ++t) {
  11353. let e = n[t];
  11354. g.push(e)
  11355. }
  11356. let A = !0;
  11357. for (var r = 0; r < i.length; ++r) {
  11358. if (e.indexOf(t[r]) > -1) {
  11359. A = !1;
  11360. continue
  11361. }
  11362. let i = t[r];
  11363. var C = i.p1
  11364. , I = i.p2
  11365. , a = {
  11366. x: (C.x + I.x) / 2,
  11367. y: (C.y + I.y) / 2
  11368. };
  11369. if (!(s(C, g) && s(I, g) && s(a, g)))
  11370. return !1
  11371. }
  11372. if (A) {
  11373. let i = [];
  11374. return i.push(e[0]),
  11375. i.push(e[e.length - 1]),
  11376. i.push(t[0]),
  11377. i.push(t[t.length - 1]),
  11378. o.push(i),
  11379. !1
  11380. }
  11381. return !0
  11382. }
  11383. function s(t, e) {
  11384. for (var i = 0; i < e.length; ++i) {
  11385. if (a(t, e[i]))
  11386. return !0
  11387. }
  11388. return !!function(t, e) {
  11389. for (var i = t.x, n = t.y, g = !1, A = 0, r = e.length - 1; A < e.length; r = A++) {
  11390. var o = e[A]
  11391. , C = e[r]
  11392. , I = o.x
  11393. , s = o.y
  11394. , a = C.x
  11395. , l = C.y;
  11396. s > n != l > n && i < (a - I) * (n - s) / (l - s) + I && (g = !g)
  11397. }
  11398. return g
  11399. }(t, e)
  11400. }
  11401. function a(t, e) {
  11402. return t.x == e.x && t.y == e.y
  11403. }
  11404. let l = t.wall.map(e=>({
  11405. p1: t.vertex.find(({id: t})=>e.p1 === t),
  11406. p2: t.vertex.find(({id: t})=>e.p2 === t),
  11407. id: e.id
  11408. }));
  11409. function u(t, e, i) {
  11410. 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
  11411. }
  11412. !function(t) {
  11413. for (let e = 0; e < t.length; ++e) {
  11414. let i = []
  11415. , n = []
  11416. , g = []
  11417. , A = t[e]
  11418. , r = A.p1.id
  11419. , o = A.p2.id;
  11420. n.push(o),
  11421. g.push(A.id);
  11422. let I = null;
  11423. t.splice(e, 1);
  11424. for (let e = 0; e < t.length; ++e) {
  11425. let A = t[e];
  11426. if (r == A.p1.id || r == A.p2.id) {
  11427. let s = JSON.parse(JSON.stringify(n))
  11428. , a = JSON.parse(JSON.stringify(g))
  11429. , l = []
  11430. , u = JSON.parse(JSON.stringify(i))
  11431. , c = r;
  11432. s.push(r),
  11433. a.push(A.id),
  11434. l.push(e),
  11435. I = c == A.p1.id ? A.p2.id : A.p1.id,
  11436. u.push(c),
  11437. C(t, o, s, a, l, u, I)
  11438. }
  11439. }
  11440. }
  11441. }(JSON.parse(JSON.stringify(l))),
  11442. r = r.map(e=>e.map(e=>t.vertex.find(({id: t})=>e === t))),
  11443. n = n.map(t=>t.map(t=>l.find(({id: e})=>t === e))),
  11444. function() {
  11445. for (var t = 0; t < r.length; ++t)
  11446. for (var e = t + 1; e < r.length; ++e)
  11447. if (I(n[t], n[e], r[t], r[e]))
  11448. r.splice(e, 1),
  11449. n.splice(e, 1),
  11450. --e;
  11451. else if (I(n[e], n[t], r[e], r[t])) {
  11452. r.splice(t, 1),
  11453. n.splice(t, 1),
  11454. --t,
  11455. --e;
  11456. break
  11457. }
  11458. }(),
  11459. function() {
  11460. let t = [];
  11461. for (let e = 0; e < o.length; ++e) {
  11462. let i = o[e]
  11463. , g = [];
  11464. g[0] = null,
  11465. g[1] = null;
  11466. 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),
  11467. null == g[0] || null == g[1]); ++t)
  11468. ;
  11469. null != g[0] && null != g[1] && t.push(g)
  11470. }
  11471. o = t
  11472. }(),
  11473. r = r.sort((t,e)=>Number(!Object(A.isFaceContain)(t, e))),
  11474. t.room = n.map((t,e)=>({
  11475. wall: t.map(({id: t})=>t),
  11476. ground: r[e]
  11477. })),
  11478. test_debugger && (window.testCenterPoints && e.processing.render.remove(...window.testCenterPoints),
  11479. window.testCenterPoints = r.map(t=>{
  11480. let i = function(t) {
  11481. for (var e = 0, i = 0, n = 0, g = t[1], A = 2; A < t.length; A++) {
  11482. var r = t[A]
  11483. , o = u(t[0], g, r);
  11484. n += o,
  11485. e += (t[0].x + g.x + r.x) * o,
  11486. i += (t[0].y + g.y + r.y) * o,
  11487. g = r
  11488. }
  11489. return {
  11490. x: e / n / 3,
  11491. y: i / n / 3
  11492. }
  11493. }(t.map(t=>({
  11494. ...t,
  11495. y: -t.y
  11496. })))
  11497. , n = "rgba(" + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + ",0.8)"
  11498. , A = new g.a({
  11499. fillColor: n,
  11500. storkeColor: n,
  11501. x: i.x,
  11502. y: i.y,
  11503. renderer: e.processing.render
  11504. });
  11505. return e.processing.render.push(A),
  11506. A
  11507. }
  11508. ),
  11509. window.testCenterPoints.forEach((i,g)=>{
  11510. let A = {
  11511. pointEles: t.room[g].ground.map(t=>e.processing.points.find(({id: e})=>e === t.id).ele.real),
  11512. lineEles: n[g].map(t=>e.processing.lines.find(({id: e})=>e === t.id).ele.real),
  11513. center: i.real,
  11514. pointData: r[g],
  11515. lineData: n[g]
  11516. };
  11517. console.log(A)
  11518. }
  11519. ));
  11520. let c = Date.now();
  11521. return console.warn("计算完毕,耗时" + (c - i)),
  11522. t
  11523. }
  11524. }
  11525. , function(t, e, i) {
  11526. "use strict";
  11527. Object.defineProperty(e, "__esModule", {
  11528. value: !0
  11529. }),
  11530. e.attchDOMTranform = function(t) {
  11531. var e = function(e) {
  11532. var i = t.processing.render;
  11533. if (e.target === i.svg) {
  11534. var n = i.props.left
  11535. , g = i.props.top
  11536. , A = function(A) {
  11537. i.props.left = n - (e.pageX - A.pageX) * i.props.multiple,
  11538. i.props.top = g - (e.pageY - A.pageY) * i.props.multiple,
  11539. i.adaptLayer(),
  11540. t.propsChange && t.propsChange(),
  11541. A.preventDefault()
  11542. }
  11543. , r = function() {
  11544. document.documentElement.removeEventListener("mousemove", A, !1),
  11545. document.documentElement.removeEventListener("mouseup", r, !1)
  11546. };
  11547. document.documentElement.addEventListener("mousemove", A, !1),
  11548. document.documentElement.addEventListener("mouseup", r, !1),
  11549. e.preventDefault()
  11550. }
  11551. }
  11552. , i = function(e) {
  11553. var i = t.processing.render
  11554. , n = e.wheelDelta ? window.opera ? -e.wheelDelta / 120 : e.wheelDelta / 120 : e.detail ? -e.detail / 3 : 0
  11555. , g = i.props.scale + (n > 0 ? .08 : -.08);
  11556. g > .1 && (i.props.scale = g,
  11557. i.adaptLayer(),
  11558. t.propsChange && t.propsChange())
  11559. };
  11560. t.openMouseHandle = function() {
  11561. var n = t.layer;
  11562. n.addEventListener("mousedown", e, !1),
  11563. n.addEventListener("mousewheel", i, !1)
  11564. }
  11565. ,
  11566. t.closeMouseHandle = function() {
  11567. var n = t.layer;
  11568. n.removeEventListener("mousedown", e, !1),
  11569. n.removeEventListener("mousewheel", i, !1)
  11570. }
  11571. ;
  11572. var n = t.destroy;
  11573. t.destroy = function() {
  11574. for (var e = [], i = 0; i < arguments.length; i++)
  11575. e[i] = arguments[i];
  11576. t.closeMouseHandle(),
  11577. n.apply(this, e)
  11578. }
  11579. }
  11580. }
  11581. , function(t, e, i) {
  11582. "use strict";
  11583. var n = this && this.__importDefault || function(t) {
  11584. return t && t.__esModule ? t : {
  11585. default: t
  11586. }
  11587. }
  11588. ;
  11589. Object.defineProperty(e, "__esModule", {
  11590. value: !0
  11591. });
  11592. var g = i(2)
  11593. , A = n(i(4))
  11594. , r = n(i(7));
  11595. e.attachDisabled = function(t) {
  11596. var e = ["increase", "getStackState", "preservation", "previous", "next", "closeMouseHandle", "showGauge", "hideGauge"]
  11597. , i = [];
  11598. t.forbidden = function() {
  11599. i.length !== e.length && (t.hideGauge(),
  11600. t.closeMouseHandle(),
  11601. g.CADElement.examples.get(t.processing.render).forEach((function(t) {
  11602. return t.unEvent()
  11603. }
  11604. )),
  11605. A.default.attaArch.forEach((function(t) {
  11606. t.forEach((function(t) {
  11607. t instanceof r.default && t.delEvent()
  11608. }
  11609. ))
  11610. }
  11611. )),
  11612. e.forEach((function(e) {
  11613. i.push(t[e]),
  11614. delete t[e]
  11615. }
  11616. )))
  11617. }
  11618. ,
  11619. t.available = function() {
  11620. i.length === e.length && (e.forEach((function(e, n) {
  11621. return t[e] = i[n]
  11622. }
  11623. )),
  11624. i = [],
  11625. g.CADElement.examples.get(t.processing.render).forEach((function(t) {
  11626. return t.listen()
  11627. }
  11628. )),
  11629. A.default.attaArch.forEach((function(t) {
  11630. t.forEach((function(t) {
  11631. return t instanceof r.default && t.addEvent()
  11632. }
  11633. ))
  11634. }
  11635. )),
  11636. t.showGauge(),
  11637. t.openMouseHandle())
  11638. }
  11639. }
  11640. }
  11641. , function(t, e, i) {
  11642. "use strict";
  11643. var n = this && this.__assign || function() {
  11644. return (n = Object.assign || function(t) {
  11645. for (var e, i = 1, n = arguments.length; i < n; i++)
  11646. for (var g in e = arguments[i])
  11647. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g]);
  11648. return t
  11649. }
  11650. ).apply(this, arguments)
  11651. }
  11652. , g = this && this.__spreadArrays || function() {
  11653. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  11654. t += arguments[e].length;
  11655. var n = Array(t)
  11656. , g = 0;
  11657. for (e = 0; e < i; e++)
  11658. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  11659. g++)
  11660. n[g] = A[r];
  11661. return n
  11662. }
  11663. , A = this && this.__importDefault || function(t) {
  11664. return t && t.__esModule ? t : {
  11665. default: t
  11666. }
  11667. }
  11668. ;
  11669. Object.defineProperty(e, "__esModule", {
  11670. value: !0
  11671. });
  11672. var r = A(i(23));
  11673. e.attachRote = function(t) {
  11674. var e = t.addProcessing;
  11675. t.addProcessing = function() {
  11676. for (var i = [], n = 0; n < arguments.length; n++)
  11677. i[n] = arguments[n];
  11678. var A = e.call.apply(e, g([t], i))
  11679. , o = new r.default({
  11680. renderer: A.render,
  11681. local: []
  11682. });
  11683. return o.zIndex = 2,
  11684. A.render.push(o),
  11685. o.setActive = function(e) {
  11686. t.activeRoute(o.local.indexOf(e))
  11687. }
  11688. ,
  11689. A
  11690. }
  11691. ,
  11692. t.showRotes = function() {
  11693. var e = t.processing.rote;
  11694. return e.show = !0,
  11695. new Promise((function(t) {
  11696. return e.nextTick(t)
  11697. }
  11698. ))
  11699. }
  11700. ,
  11701. t.hideRotes = function() {
  11702. var e = t.processing.rote;
  11703. return e.show = !1,
  11704. new Promise((function(t) {
  11705. return e.nextTick(t)
  11706. }
  11707. ))
  11708. }
  11709. ,
  11710. t.setRoutes = function(e) {
  11711. var i = t.processing.rote;
  11712. e = e.map((function(t, i) {
  11713. if (t.rangn) {
  11714. var g = function(t) {
  11715. var i = e.slice(0, t).reverse().find((function(t) {
  11716. return !t.rangn
  11717. }
  11718. ));
  11719. return i || e.slice(t).find((function(t) {
  11720. return !t.rangn
  11721. }
  11722. ))
  11723. }(i);
  11724. if (g)
  11725. return n(n({}, g), {
  11726. rangn: !0
  11727. })
  11728. }
  11729. return n({}, t)
  11730. }
  11731. )),
  11732. t.clearRoutes((function() {
  11733. i.local = g(e)
  11734. }
  11735. ))
  11736. }
  11737. ,
  11738. t.pushRoute = function(e) {
  11739. t.clearRoutes((function() {
  11740. setTimeout((function() {}
  11741. ), 100)
  11742. }
  11743. ))
  11744. }
  11745. ,
  11746. t.activeRoute = function(e) {
  11747. var i = t.processing.rote;
  11748. i.nextTick((function() {
  11749. i.active = i.local[e]
  11750. }
  11751. ))
  11752. }
  11753. ,
  11754. t.popRoute = function(e) {
  11755. var i = t.processing.rote;
  11756. i.local.splice(e, 1),
  11757. i.nextTick((function() {
  11758. return i.local = g(i.local)
  11759. }
  11760. ))
  11761. }
  11762. ,
  11763. t.clearRoutes = function(e) {
  11764. var i = t.processing.rote;
  11765. i.local = [],
  11766. i.dialog = 0,
  11767. i.nextTick((function() {
  11768. return e && e()
  11769. }
  11770. ))
  11771. }
  11772. }
  11773. }
  11774. , function(t, e) {
  11775. 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=="
  11776. }
  11777. , function(t, e, i) {
  11778. "use strict";
  11779. var n = this && this.__spreadArrays || function() {
  11780. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  11781. t += arguments[e].length;
  11782. var n = Array(t)
  11783. , g = 0;
  11784. for (e = 0; e < i; e++)
  11785. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  11786. g++)
  11787. n[g] = A[r];
  11788. return n
  11789. }
  11790. , g = this && this.__importDefault || function(t) {
  11791. return t && t.__esModule ? t : {
  11792. default: t
  11793. }
  11794. }
  11795. ;
  11796. Object.defineProperty(e, "__esModule", {
  11797. value: !0
  11798. });
  11799. var A = g(i(5))
  11800. , r = g(i(6))
  11801. , o = g(i(10));
  11802. e.attachStyle = function(t) {
  11803. var e = {
  11804. fillColor: "rgb(183, 18, 15)",
  11805. storkeColor: "green"
  11806. }
  11807. , i = {
  11808. fillColor: "rgba(245, 255, 0, 0.7)",
  11809. storkeColor: "rgba(245, 255, 255, 0.3)"
  11810. };
  11811. t.setDefaultPointStyle = function(n) {
  11812. n.storkeColor && (e.storkeColor = n.storkeColor),
  11813. n.fillColor && (e.fillColor = n.fillColor),
  11814. n.hoverStorkeColor && (i.storkeColor = n.hoverStorkeColor),
  11815. n.hoverFillColor && (i.fillColor = n.hoverFillColor),
  11816. setTimeout((function() {
  11817. t.loadData(t.getData())
  11818. }
  11819. ), 100)
  11820. }
  11821. ;
  11822. var g = {
  11823. width: 3,
  11824. color: "rgb(255,255,255)"
  11825. }
  11826. , C = t.addProcessing;
  11827. t.addProcessing = function() {
  11828. for (var I = [], s = 0; s < arguments.length; s++)
  11829. I[s] = arguments[s];
  11830. var a = C.call.apply(C, n([t], I));
  11831. return r.default.Setting.set(a.render, e),
  11832. A.default.Setting.set(a.render, i),
  11833. o.default.Setting.set(a.render, g),
  11834. a
  11835. }
  11836. ,
  11837. t.setDefaultLineStyle = function(e) {
  11838. e.width && (g.width = e.width),
  11839. e.color && (g.color = e.color),
  11840. setTimeout((function() {
  11841. t.loadData(t.getData())
  11842. }
  11843. ), 100)
  11844. }
  11845. }
  11846. }
  11847. , function(t, e, i) {
  11848. "use strict";
  11849. Object.defineProperty(e, "__esModule", {
  11850. value: !0
  11851. }),
  11852. e.attchCustom = function(t) {
  11853. t.edits = []
  11854. }
  11855. }
  11856. , function(t, e, i) {
  11857. "use strict";
  11858. var n = this && this.__spreadArrays || function() {
  11859. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  11860. t += arguments[e].length;
  11861. var n = Array(t)
  11862. , g = 0;
  11863. for (e = 0; e < i; e++)
  11864. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  11865. g++)
  11866. n[g] = A[r];
  11867. return n
  11868. }
  11869. ;
  11870. Object.defineProperty(e, "__esModule", {
  11871. value: !0
  11872. });
  11873. var g = i(0);
  11874. function A(t, e) {
  11875. var i = e.addCase
  11876. , A = e.addDoor
  11877. , r = e.addColumn
  11878. , o = e.addLine
  11879. , C = e.addSlideDoor
  11880. , I = e.addBayCase
  11881. , s = e.addGroundCase
  11882. , a = e.addFurnColumn
  11883. , l = e.addFurnFlue
  11884. , u = e.adddDoubleDoor
  11885. , c = function(t) {
  11886. Object.defineProperties(t, {
  11887. ewidth: {
  11888. get: function() {
  11889. return Number(g.lineDis({
  11890. points: t.linePoints
  11891. }).toFixed(2))
  11892. },
  11893. set: function(e) {
  11894. if (!(e <= 0 || e === t.ewidth)) {
  11895. var i = g.lineCenter({
  11896. points: t.linePoints
  11897. })
  11898. , n = g.getDisPointLinePoints(t.attachment, i, e / 2)
  11899. , A = n[0]
  11900. , r = n[1];
  11901. g.lineDis({
  11902. points: [t.linePoints[0], A]
  11903. }) > g.lineDis({
  11904. points: [t.linePoints[0], r]
  11905. }) ? (t.linePoints[0].x = r.x,
  11906. t.linePoints[0].y = r.y,
  11907. t.linePoints[1].x = A.x,
  11908. t.linePoints[1].y = A.y) : (t.linePoints[0].x = A.x,
  11909. t.linePoints[0].y = A.y,
  11910. t.linePoints[1].x = r.x,
  11911. t.linePoints[1].y = r.y)
  11912. }
  11913. }
  11914. },
  11915. maxWidth: {
  11916. get: function() {
  11917. var e = [t.attachment]
  11918. , i = []
  11919. , n = []
  11920. , A = function(e, i, n) {
  11921. var A = e.linePoints || e.points;
  11922. return {
  11923. dis: g.lineDis({
  11924. points: [t.linePoints[i], A[n]]
  11925. }),
  11926. point: A[n]
  11927. }
  11928. };
  11929. e.forEach((function(e) {
  11930. e !== t && (i.push(A(e, 0, 0)),
  11931. i.push(A(e, 0, 1)),
  11932. n.push(A(e, 1, 0)),
  11933. n.push(A(e, 1, 1)))
  11934. }
  11935. )),
  11936. i.sort((function(t, e) {
  11937. return t.dis - e.dis
  11938. }
  11939. )),
  11940. n.sort((function(t, e) {
  11941. return t.dis - e.dis
  11942. }
  11943. ));
  11944. var r = i[0].dis > n[0].dis ? [t.linePoints[1], n[0].point] : [t.linePoints[0], i[0].point];
  11945. return Number((2 * g.lineDis({
  11946. points: r
  11947. }) + g.lineDis({
  11948. points: t.linePoints
  11949. })).toFixed(2))
  11950. }
  11951. },
  11952. minWidth: {
  11953. get: function() {
  11954. return 0
  11955. }
  11956. }
  11957. })
  11958. }
  11959. , h = function(e) {
  11960. Object.defineProperties(e, {
  11961. estart: {
  11962. get: function() {
  11963. return e.start
  11964. },
  11965. set: function(i) {
  11966. i && t.processing.doors.forEach((function(t) {
  11967. t.ele.start = !1
  11968. }
  11969. )),
  11970. e.start = i,
  11971. t.preservation()
  11972. }
  11973. }
  11974. })
  11975. }
  11976. , p = function(t) {
  11977. Object.defineProperties(t, {
  11978. tick: {
  11979. get: function() {
  11980. return Math.max(Number(g.lineDis({
  11981. points: [t.points[0], t.points[3]]
  11982. }).toFixed(2)), Number(g.lineDis({
  11983. points: [t.points[1], t.points[2]]
  11984. }).toFixed(2)))
  11985. },
  11986. set: function(e) {
  11987. e <= 0 || e === t.oldVal || (t.oldVal = e,
  11988. t.thickness = e,
  11989. t.updatePeripheral())
  11990. }
  11991. },
  11992. maxTick: {
  11993. get: function() {
  11994. return 10
  11995. }
  11996. },
  11997. minTick: {
  11998. get: function() {
  11999. return 0
  12000. }
  12001. }
  12002. })
  12003. };
  12004. e.addCase = function() {
  12005. for (var t = [], e = 0; e < arguments.length; e++)
  12006. t[e] = arguments[e];
  12007. var g = i.call.apply(i, n([this], t));
  12008. return c(g.ele),
  12009. g
  12010. }
  12011. ,
  12012. e.addBayCase = function() {
  12013. for (var t = [], e = 0; e < arguments.length; e++)
  12014. t[e] = arguments[e];
  12015. var i = I.call.apply(I, n([this], t));
  12016. return c(i.ele),
  12017. i
  12018. }
  12019. ,
  12020. e.addGroundCase = function() {
  12021. for (var t = [], e = 0; e < arguments.length; e++)
  12022. t[e] = arguments[e];
  12023. var i = s.call.apply(s, n([this], t));
  12024. return c(i.ele),
  12025. i
  12026. }
  12027. ,
  12028. e.addDoor = function() {
  12029. for (var t = [], e = 0; e < arguments.length; e++)
  12030. t[e] = arguments[e];
  12031. var i = A.call.apply(A, n([this], t));
  12032. return c(i.ele),
  12033. h(i.ele),
  12034. i
  12035. }
  12036. ,
  12037. e.addSlideDoor = function() {
  12038. for (var t = [], e = 0; e < arguments.length; e++)
  12039. t[e] = arguments[e];
  12040. var i = C.call.apply(C, n([this], t));
  12041. return c(i.ele),
  12042. i
  12043. }
  12044. ,
  12045. e.adddDoubleDoor = function() {
  12046. for (var t = [], e = 0; e < arguments.length; e++)
  12047. t[e] = arguments[e];
  12048. var i = u.call.apply(u, n([this], t));
  12049. return c(i.ele),
  12050. i
  12051. }
  12052. ,
  12053. e.addColumn = function() {
  12054. for (var t = [], e = 0; e < arguments.length; e++)
  12055. t[e] = arguments[e];
  12056. var i = r.call.apply(r, n([this], t));
  12057. return c(i.ele),
  12058. p(i.ele),
  12059. i
  12060. }
  12061. ,
  12062. e.addLine = function() {
  12063. for (var t = [], e = 0; e < arguments.length; e++)
  12064. t[e] = arguments[e];
  12065. var i = o.call.apply(o, n([this], t));
  12066. return i
  12067. }
  12068. ;
  12069. var d = function(t) {
  12070. Object.defineProperties(t, {
  12071. ewidth: {
  12072. get: function() {
  12073. return Number(g.lineDis({
  12074. points: [t.points[0], t.points[1]]
  12075. }).toFixed(2))
  12076. },
  12077. set: function(e) {
  12078. if (!(e <= 0 || e === t.ewidth)) {
  12079. var i = g.lineStretch({
  12080. points: [t.points[0], t.points[1]]
  12081. }, e)
  12082. , n = g.lineStretch({
  12083. points: [t.points[2], t.points[3]]
  12084. }, e)
  12085. , A = i.points.concat(n.points);
  12086. t.check(A) && t.directUpdate(A)
  12087. }
  12088. }
  12089. },
  12090. maxWidth: {
  12091. get: function() {
  12092. return 10
  12093. }
  12094. },
  12095. minWidth: {
  12096. get: function() {
  12097. return 0
  12098. }
  12099. }
  12100. })
  12101. }
  12102. , f = function(t) {
  12103. Object.defineProperties(t, {
  12104. tick: {
  12105. get: function() {
  12106. return Number(g.lineDis({
  12107. points: [t.points[1], t.points[2]]
  12108. }).toFixed(2))
  12109. },
  12110. set: function(e) {
  12111. if (!(e <= 0 || e === t.tick)) {
  12112. var i = g.lineStretch({
  12113. points: [t.points[0], t.points[3]]
  12114. }, e)
  12115. , n = g.lineStretch({
  12116. points: [t.points[1], t.points[2]]
  12117. }, e)
  12118. , A = [i.points[0], n.points[0], n.points[1], i.points[1]];
  12119. t.check(A) && t.directUpdate(A)
  12120. }
  12121. }
  12122. },
  12123. maxTick: {
  12124. get: function() {
  12125. return 10
  12126. }
  12127. },
  12128. minTick: {
  12129. get: function() {
  12130. return 0
  12131. }
  12132. }
  12133. })
  12134. }
  12135. , y = function(t) {
  12136. Object.defineProperties(t, {
  12137. maxAngle: {
  12138. get: function() {
  12139. return 360
  12140. }
  12141. },
  12142. minAngle: {
  12143. get: function() {
  12144. return 0
  12145. }
  12146. }
  12147. })
  12148. };
  12149. e.addFurnColumn = function() {
  12150. for (var t = [], e = 0; e < arguments.length; e++)
  12151. t[e] = arguments[e];
  12152. var i = a.call.apply(a, n([this], t));
  12153. return d(i.ele),
  12154. f(i.ele),
  12155. y(i.ele),
  12156. i
  12157. }
  12158. ,
  12159. e.addFurnFlue = function() {
  12160. for (var t = [], e = 0; e < arguments.length; e++)
  12161. t[e] = arguments[e];
  12162. var i = l.call.apply(l, n([this], t));
  12163. return d(i.ele),
  12164. f(i.ele),
  12165. y(i.ele),
  12166. i
  12167. }
  12168. }
  12169. e.default = function(t) {
  12170. var e = t.addProcessing;
  12171. t.addProcessing = function() {
  12172. for (var i = [], g = 0; g < arguments.length; g++)
  12173. i[g] = arguments[g];
  12174. var r = e.call.apply(e, n([t], i));
  12175. return A(t, r),
  12176. r
  12177. }
  12178. }
  12179. }
  12180. , function(t, e, i) {
  12181. "use strict";
  12182. var n = this && this.__spreadArrays || function() {
  12183. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  12184. t += arguments[e].length;
  12185. var n = Array(t)
  12186. , g = 0;
  12187. for (e = 0; e < i; e++)
  12188. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  12189. g++)
  12190. n[g] = A[r];
  12191. return n
  12192. }
  12193. ;
  12194. Object.defineProperty(e, "__esModule", {
  12195. value: !0
  12196. }),
  12197. e.other = function(t) {
  12198. var e = !1
  12199. , i = t.addProcessing;
  12200. t.addProcessing = function() {
  12201. for (var g = [], A = 0; A < arguments.length; A++)
  12202. g[A] = arguments[A];
  12203. var r = i.call.apply(i, n([t], g))
  12204. , o = r.addTagging;
  12205. return r.addTagging = function(t) {
  12206. return t.show = e,
  12207. o.call(r, t)
  12208. }
  12209. ,
  12210. r
  12211. }
  12212. ,
  12213. t.hideLabel = function() {
  12214. e = !1,
  12215. t.processings.forEach((function(t) {
  12216. t.taggings.forEach((function(t) {
  12217. return t.ele.show = e
  12218. }
  12219. ))
  12220. }
  12221. ))
  12222. }
  12223. ,
  12224. t.showLabel = function() {
  12225. e = !0,
  12226. t.processings.forEach((function(t) {
  12227. t.taggings.forEach((function(t) {
  12228. return t.ele.show = e
  12229. }
  12230. ))
  12231. }
  12232. ))
  12233. }
  12234. }
  12235. }
  12236. , function(t, e, i) {
  12237. "use strict";
  12238. var n = this && this.__awaiter || function(t, e, i, n) {
  12239. return new (i || (i = Promise))((function(g, A) {
  12240. function r(t) {
  12241. try {
  12242. C(n.next(t))
  12243. } catch (t) {
  12244. A(t)
  12245. }
  12246. }
  12247. function o(t) {
  12248. try {
  12249. C(n.throw(t))
  12250. } catch (t) {
  12251. A(t)
  12252. }
  12253. }
  12254. function C(t) {
  12255. var e;
  12256. t.done ? g(t.value) : (e = t.value,
  12257. e instanceof i ? e : new i((function(t) {
  12258. t(e)
  12259. }
  12260. ))).then(r, o)
  12261. }
  12262. C((n = n.apply(t, e || [])).next())
  12263. }
  12264. ))
  12265. }
  12266. , g = this && this.__generator || function(t, e) {
  12267. var i, n, g, A, r = {
  12268. label: 0,
  12269. sent: function() {
  12270. if (1 & g[0])
  12271. throw g[1];
  12272. return g[1]
  12273. },
  12274. trys: [],
  12275. ops: []
  12276. };
  12277. return A = {
  12278. next: o(0),
  12279. throw: o(1),
  12280. return: o(2)
  12281. },
  12282. "function" == typeof Symbol && (A[Symbol.iterator] = function() {
  12283. return this
  12284. }
  12285. ),
  12286. A;
  12287. function o(A) {
  12288. return function(o) {
  12289. return function(A) {
  12290. if (i)
  12291. throw new TypeError("Generator is already executing.");
  12292. for (; r; )
  12293. try {
  12294. if (i = 1,
  12295. n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n),
  12296. 0) : n.next) && !(g = g.call(n, A[1])).done)
  12297. return g;
  12298. switch (n = 0,
  12299. g && (A = [2 & A[0], g.value]),
  12300. A[0]) {
  12301. case 0:
  12302. case 1:
  12303. g = A;
  12304. break;
  12305. case 4:
  12306. return r.label++,
  12307. {
  12308. value: A[1],
  12309. done: !1
  12310. };
  12311. case 5:
  12312. r.label++,
  12313. n = A[1],
  12314. A = [0];
  12315. continue;
  12316. case 7:
  12317. A = r.ops.pop(),
  12318. r.trys.pop();
  12319. continue;
  12320. default:
  12321. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  12322. r = 0;
  12323. continue
  12324. }
  12325. if (3 === A[0] && (!g || A[1] > g[0] && A[1] < g[3])) {
  12326. r.label = A[1];
  12327. break
  12328. }
  12329. if (6 === A[0] && r.label < g[1]) {
  12330. r.label = g[1],
  12331. g = A;
  12332. break
  12333. }
  12334. if (g && r.label < g[2]) {
  12335. r.label = g[2],
  12336. r.ops.push(A);
  12337. break
  12338. }
  12339. g[2] && r.ops.pop(),
  12340. r.trys.pop();
  12341. continue
  12342. }
  12343. A = e.call(t, r)
  12344. } catch (t) {
  12345. A = [6, t],
  12346. n = 0
  12347. } finally {
  12348. i = g = 0
  12349. }
  12350. if (5 & A[0])
  12351. throw A[1];
  12352. return {
  12353. value: A[0] ? A[1] : void 0,
  12354. done: !0
  12355. }
  12356. }([A, o])
  12357. }
  12358. }
  12359. }
  12360. , A = this && this.__spreadArrays || function() {
  12361. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  12362. t += arguments[e].length;
  12363. var n = Array(t)
  12364. , g = 0;
  12365. for (e = 0; e < i; e++)
  12366. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  12367. g++)
  12368. n[g] = A[r];
  12369. return n
  12370. }
  12371. , r = this && this.__importDefault || function(t) {
  12372. return t && t.__esModule ? t : {
  12373. default: t
  12374. }
  12375. }
  12376. ;
  12377. Object.defineProperty(e, "__esModule", {
  12378. value: !0
  12379. });
  12380. var o = i(22)
  12381. , C = i(2)
  12382. , I = r(i(60))
  12383. , s = r(i(62))
  12384. , a = i(0)
  12385. , l = function(t, e) {
  12386. var i = t.processing
  12387. , n = i.doors
  12388. , g = i.slideDoors
  12389. , r = i.groundCases
  12390. , o = i.cases
  12391. , C = i.points
  12392. , I = i.taggings
  12393. , s = i.bayCases
  12394. , a = A(i.furnFlues, i.furnColumns, i.columns)
  12395. , l = A(i.lines)
  12396. , u = A(o, n);
  12397. I.forEach((function(t) {
  12398. var i = 3 * e;
  12399. t.ele.fontSize = i < 12 ? 12 : i
  12400. }
  12401. )),
  12402. a.forEach((function(t) {
  12403. t.ele.width = .33 * e
  12404. }
  12405. )),
  12406. g.forEach((function(t) {
  12407. t.ele.foorWidth = 2 * e / (t.ele.attachment.border ? 1 : 2),
  12408. t.ele.bwithin = e / 2 / (t.ele.attachment.border ? 1 : 2)
  12409. }
  12410. )),
  12411. o.forEach((function(t) {
  12412. t.ele.width = 4 * e / 2 / (t.ele.attachment.border ? 1 : 1.5),
  12413. t.ele.stamWidth = .1 * e / (t.ele.attachment.border ? 1 : 2),
  12414. t.ele.outLine.width = t.ele.width,
  12415. t.ele.outLine.color = t.ele.fill,
  12416. t.ele.innerline.width = t.ele.stamWidth,
  12417. t.ele.innerline.color = t.ele.seam,
  12418. t.ele.innerline.update()
  12419. }
  12420. )),
  12421. l.forEach((function(t) {
  12422. t.ele.width = e
  12423. }
  12424. )),
  12425. s.forEach((function(t) {
  12426. t.ele.width = .33 * e / (t.ele.attachment.border ? 1 : 2)
  12427. }
  12428. )),
  12429. r.forEach((function(t) {
  12430. t.ele.width = e / 2 * (t.ele.attachment.border ? 1 : 2)
  12431. }
  12432. )),
  12433. n.forEach((function(t) {
  12434. t.ele.foorWidth = 2 * e / (t.ele.attachment.border ? 1 : 2),
  12435. t.ele.outWidth = .33 * e / (t.ele.attachment.border ? 1 : 2)
  12436. }
  12437. )),
  12438. C.forEach((function(t) {
  12439. t.ele.r1 = e + 1,
  12440. t.ele.r = e + 1
  12441. }
  12442. )),
  12443. u.forEach((function(t) {
  12444. t.ele.linePoints[0].r1 = e + 1,
  12445. t.ele.linePoints[0].r = e + 1,
  12446. t.ele.linePoints[1].r1 = e + 1,
  12447. t.ele.linePoints[1].r = e + 1
  12448. }
  12449. )),
  12450. t.setDireAttrs({
  12451. fontSize: 2.6 * e,
  12452. r: 16.6 * e,
  12453. border: e,
  12454. right: 6.3 * e,
  12455. top: 6.3 * e,
  12456. ArgDire: 5 * e
  12457. })
  12458. };
  12459. e.default = function(t) {
  12460. var e = t.screenshot;
  12461. t.screenshot = function(i) {
  12462. var A = void 0 === i ? {} : i
  12463. , r = A.width
  12464. , u = void 0 === r ? 2880 : r
  12465. , c = A.height
  12466. , h = void 0 === c ? 1620 : c
  12467. , p = A.primaryColor
  12468. , d = void 0 === p ? "#fff" : p
  12469. , f = A.archColor
  12470. , y = void 0 === f ? "rgba(0,0,0,0)" : f
  12471. , v = A.bgColor
  12472. , m = void 0 === v ? "rgba(0,0,0,0)" : v
  12473. , b = A.textColor
  12474. , x = void 0 === b ? "#fff" : b
  12475. , _ = A.archBorder
  12476. , w = void 0 === _ ? d : _
  12477. , P = A.data
  12478. , O = void 0 === P ? t.getData(!0, !0) : P
  12479. , S = A.padding
  12480. , E = void 0 === S ? 450 : S
  12481. , D = A.showGauge
  12482. , k = void 0 === D || D
  12483. , M = A.lineWidth
  12484. , L = void 0 === M ? 10 : M
  12485. , N = A.spliceGauge
  12486. , j = void 0 !== N && N
  12487. , R = A.showDire
  12488. , G = void 0 !== R && R
  12489. , T = A.showTags
  12490. , V = void 0 === T || T
  12491. , U = A.showDoorStart
  12492. , W = void 0 === U || U
  12493. , Z = A.showMapping
  12494. , B = void 0 !== Z && Z
  12495. , Q = A.format
  12496. , F = void 0 === Q ? "image/png" : Q
  12497. , H = A.errreturn
  12498. , J = void 0 !== H && H;
  12499. return n(void 0, void 0, void 0, (function() {
  12500. var i, n, A, r, c, p, f, v, b, _, P, S, D, M, N, R, T, U, Z, Q, H;
  12501. return g(this, (function(g) {
  12502. switch (g.label) {
  12503. case 0:
  12504. return O = o.roateDataY(O.floors.find((function(t) {
  12505. return t.show
  12506. }
  12507. ))),
  12508. i = t.processing.lines[0] ? t.processing.lines[0].ele.width : 3,
  12509. t.processing.render.layer.style.opacity = "0",
  12510. n = [],
  12511. A = [],
  12512. C.CADElement.examples.get(t.processing.render).forEach((function(t) {
  12513. A.push(new Promise((function(e) {
  12514. return t.nextTick(e)
  12515. }
  12516. )))
  12517. }
  12518. )),
  12519. [4, Promise.all(A)];
  12520. case 1:
  12521. for (g.sent(),
  12522. C.CADElement.examples.get(t.processing.render).forEach((function(t) {
  12523. t.__state.direct = !0,
  12524. t.changeSelect(!1)
  12525. }
  12526. )),
  12527. B && (r = [],
  12528. s.default(O).map((function(t) {
  12529. return t
  12530. }
  12531. )).sort((function(t, e) {
  12532. return a.isFaceContain(t, e) ? 1 : -1
  12533. }
  12534. )).forEach((function(e, i) {
  12535. var g = t.processing.taggings.find((function(t) {
  12536. return a.pointInside(e, t.ele) && !~r.indexOf(t)
  12537. }
  12538. ))
  12539. , A = new I.default({
  12540. points: e,
  12541. label: g ? g.ele.title : "",
  12542. show: !0,
  12543. renderer: t.processing.render
  12544. });
  12545. A.zIndex = -i - 3,
  12546. A.update(),
  12547. t.processing.render.push(A),
  12548. n.push(A),
  12549. r.push(g)
  12550. }
  12551. ))),
  12552. (c = [{
  12553. key: "stroke",
  12554. attr: ["doors", "columns", "bayCases", "furnColumns", "furnFlues", "doubleDoors"],
  12555. oldVals: [],
  12556. newColor: w
  12557. }, {
  12558. key: "fill",
  12559. attr: ["groundCases"],
  12560. oldVals: [],
  12561. newColor: w
  12562. }, {
  12563. key: "seam",
  12564. attr: ["cases"],
  12565. oldVals: [],
  12566. newColor: d
  12567. }, {
  12568. key: "bgColor",
  12569. attr: ["cases"],
  12570. oldVals: [],
  12571. newColor: d
  12572. }, {
  12573. key: "color",
  12574. attr: ["lines"],
  12575. oldVals: [],
  12576. newColor: d
  12577. }, {
  12578. key: "icon",
  12579. attr: ["doors"],
  12580. oldVals: [],
  12581. newColor: d
  12582. }, {
  12583. key: "fill",
  12584. attr: ["cases", "doors", "columns", "bayCases", "furnColumns", "furnFlues", "slideDoors", "doubleDoors"],
  12585. oldVals: [],
  12586. newColor: y
  12587. }, {
  12588. key: "foorColor",
  12589. attr: ["slideDoors"],
  12590. oldVals: [],
  12591. newColor: w
  12592. }, {
  12593. key: "clipColor",
  12594. attr: ["slideDoors"],
  12595. oldVals: [],
  12596. newColor: y
  12597. }, {
  12598. key: "color",
  12599. attr: ["taggings"],
  12600. oldVals: [],
  12601. newColor: x
  12602. }]).forEach((function(e) {
  12603. var i = e.key
  12604. , n = e.attr
  12605. , g = e.oldVals
  12606. , A = e.newColor;
  12607. n.forEach((function(e) {
  12608. g.push(t.processing[e].map((function(t) {
  12609. return t.ele[i]
  12610. }
  12611. ))),
  12612. t.processing[e].forEach((function(t) {
  12613. var e = t.ele;
  12614. e[i] = "icon" === i ? "#fff" !== A ? "darkIcon" : "defaultIcon" : A
  12615. }
  12616. ))
  12617. }
  12618. ))
  12619. }
  12620. )),
  12621. p = t.processing.direction,
  12622. f = p.show,
  12623. !p.show && G ? t.showDire() : G || t.hideDire(),
  12624. v = t.processing.taggings[0] && t.processing.taggings[0].ele.show,
  12625. t.processing.taggings.forEach((function(t) {
  12626. return t.ele.show = V
  12627. }
  12628. )),
  12629. b = t.processing.points[0].ele.fillColor,
  12630. _ = t.processing.lines[0].ele.init.color,
  12631. t.processing.points.forEach((function(t) {
  12632. t.ele.fillColor = "rgba(0,0,0,0)"
  12633. }
  12634. )),
  12635. P = [].concat(t.processing.doors).concat(t.processing.groundCases).concat(t.processing.cases).concat(t.processing.doubleDoors),
  12636. Z = 0; Z < P.length; Z++)
  12637. (Q = P[Z].ele.points || P[Z].ele.linePoints) && Q.forEach((function(t) {
  12638. return t.fillColor = "rgba(0,0,0,0)"
  12639. }
  12640. ));
  12641. t.setGaugeModel(1),
  12642. S = p.icon,
  12643. t.setDireAttrs({
  12644. simple: !0,
  12645. icon: "#fff" !== d ? "darkIcon" : "defaultIcon"
  12646. }),
  12647. D = t.processing.doors.map((function(t) {
  12648. return t.ele.showStart
  12649. }
  12650. )),
  12651. t.processing.doors.forEach((function(t) {
  12652. return t.ele.showStart = W
  12653. }
  12654. )),
  12655. M = t.gauge && t.gauge.stroke,
  12656. t.gauge && t.gauge.minPX,
  12657. k && (N = {
  12658. width: L / 2,
  12659. showTop: !1,
  12660. showRight: !1,
  12661. padding: 3.3 * L,
  12662. stroke: d
  12663. },
  12664. j ? (N.minPX = 12 * L,
  12665. console.log("---", N.minPX)) : N.minPX = Math.max(u, h),
  12666. t.setGaugeAttrs(N)),
  12667. l(t, L),
  12668. C.CADElement.examples.get(t.processing.render).forEach((function(t) {
  12669. return t.update()
  12670. }
  12671. )),
  12672. g.label = 2;
  12673. case 2:
  12674. return g.trys.push([2, 4, , 5]),
  12675. [4, e.call(this, {
  12676. width: u,
  12677. height: h,
  12678. bgColor: m,
  12679. data: O,
  12680. spadding: E,
  12681. showGauge: k,
  12682. lineWidth: L,
  12683. format: F
  12684. })];
  12685. case 3:
  12686. return R = g.sent(),
  12687. [3, 5];
  12688. case 4:
  12689. return U = g.sent(),
  12690. J ? [2, U] : (T = U,
  12691. [3, 5]);
  12692. case 5:
  12693. for (k && t.setGaugeAttrs({
  12694. minPX: 50,
  12695. width: 1,
  12696. showTop: !0,
  12697. showRight: !0,
  12698. padding: 10,
  12699. stroke: M
  12700. }),
  12701. t.setDireAttrs({
  12702. simple: !1,
  12703. icon: S
  12704. }),
  12705. Z = 0; Z < P.length; Z++)
  12706. (Q = P[Z].ele.points || P[Z].ele.linePoints) && Q.map((function(t) {
  12707. return t.fillColor = b
  12708. }
  12709. ));
  12710. if (l(t, i),
  12711. t.setGaugeModel(0),
  12712. t.processing.points.forEach((function(t) {
  12713. return t.ele.fillColor = b
  12714. }
  12715. )),
  12716. t.processing.lines.forEach((function(t) {
  12717. return t.ele.color = _
  12718. }
  12719. )),
  12720. (H = t.processing.render).remove.apply(H, n),
  12721. f ? t.showDire() : t.hideDire(),
  12722. v ? t.processing.taggings.forEach((function(t) {
  12723. return t.ele.show = !0
  12724. }
  12725. )) : t.processing.taggings.forEach((function(t) {
  12726. return t.ele.show = !1
  12727. }
  12728. )),
  12729. t.processing.doors.forEach((function(t, e) {
  12730. t.ele.showStart = D[e]
  12731. }
  12732. )),
  12733. t.processing.render.layer.style.opacity = "1",
  12734. c.forEach((function(e) {
  12735. var i = e.key
  12736. , n = e.attr
  12737. , g = e.oldVals;
  12738. n.forEach((function(e, n) {
  12739. t.processing[e].forEach((function(t, e) {
  12740. t.ele[i] = g[n][e]
  12741. }
  12742. ))
  12743. }
  12744. ))
  12745. }
  12746. )),
  12747. C.CADElement.examples.get(t.processing.render).forEach((function(t) {
  12748. t.__state.direct = !1,
  12749. t.update()
  12750. }
  12751. )),
  12752. T)
  12753. throw T;
  12754. return [2, R]
  12755. }
  12756. }
  12757. ))
  12758. }
  12759. ))
  12760. }
  12761. }
  12762. }
  12763. , function(t, e, i) {
  12764. "use strict";
  12765. var n, g = this && this.__extends || (n = function(t, e) {
  12766. return (n = Object.setPrototypeOf || {
  12767. __proto__: []
  12768. }instanceof Array && function(t, e) {
  12769. t.__proto__ = e
  12770. }
  12771. || function(t, e) {
  12772. for (var i in e)
  12773. e.hasOwnProperty(i) && (t[i] = e[i])
  12774. }
  12775. )(t, e)
  12776. }
  12777. ,
  12778. function(t, e) {
  12779. function i() {
  12780. this.constructor = t
  12781. }
  12782. n(t, e),
  12783. t.prototype = null === e ? Object.create(e) : (i.prototype = e.prototype,
  12784. new i)
  12785. }
  12786. );
  12787. Object.defineProperty(e, "__esModule", {
  12788. value: !0
  12789. });
  12790. var A = i(2)
  12791. , r = i(1)
  12792. , o = i(61)
  12793. , C = 0
  12794. , I = function(t) {
  12795. function e(e) {
  12796. return t.call(this, e) || this
  12797. }
  12798. return g(e, t),
  12799. e.prototype.grentNode = function() {
  12800. var t = "pattern-" + ++C
  12801. , e = document.createElementNS(r.SVGURI, "g");
  12802. return this.path = document.createElementNS(r.SVGURI, "path"),
  12803. this.pattern = document.createElementNS(r.SVGURI, "pattern"),
  12804. this.maping = document.createElementNS(r.SVGURI, "image"),
  12805. this.pattern.append(this.maping),
  12806. this.pattern.setAttribute("id", t),
  12807. this.pattern.setAttribute("patternUnits", "userSpaceOnUse"),
  12808. this.path.setAttribute("fill", "url(#" + t + ")"),
  12809. e.appendChild(this.path),
  12810. e.appendChild(this.pattern),
  12811. e
  12812. }
  12813. ,
  12814. e.prototype.update = function() {
  12815. var t = "M" + this.points.map((function(t) {
  12816. return " " + t.x + " " + t.y + " "
  12817. }
  12818. )).join("L") + "z"
  12819. , e = this.renderer.screenToRealPoint({
  12820. x: 30,
  12821. y: 30
  12822. })
  12823. , i = this.renderer.screenToRealPoint({
  12824. x: 0,
  12825. y: 0
  12826. })
  12827. , n = Math.abs(e.x - i.x)
  12828. , g = Math.abs(e.y - i.y);
  12829. this.icon && this.icon === this.firstIcon || (this.icon = o.getMaping(this.label),
  12830. this.maping.href.baseVal = this.icon,
  12831. this.firstIcon = this.icon),
  12832. this.maping.setAttribute("width", n.toString()),
  12833. this.maping.setAttribute("height", g.toString()),
  12834. this.pattern.setAttribute("width", n.toString()),
  12835. this.pattern.setAttribute("height", g.toString()),
  12836. this.path.setAttribute("d", t)
  12837. }
  12838. ,
  12839. e
  12840. }(A.CADElement);
  12841. e.default = I
  12842. }
  12843. , function(t, e, i) {
  12844. "use strict";
  12845. Object.defineProperty(e, "__esModule", {
  12846. value: !0
  12847. });
  12848. var n = i(9)
  12849. , g = [{
  12850. name: "hall",
  12851. img: "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAWQABAQEBAAAAAAAAAAAAAAAAAgADCAEBAQEBAAAAAAAAAAAAAAAAAAECAxABAAICAgMAAAAAAAAAAAAAAQACESExQVFxAxEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A6L+ihirm3U4tsrci68+4VV5U349wNfmqYs4t3CDfSwBZFDMoqoKZgOm0kFfawBYBHEoqgq4gOmkkC+gpmpi3UDK3IO/PuFVeUNePcDX5iGbGbdwj/9k="
  12852. }, {
  12853. name: "room",
  12854. img: "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAXAABAQEAAAAAAAAAAAAAAAAAAgAGAQEBAQAAAAAAAAAAAAAAAAAAAQYQAQABBAEEAwAAAAAAAAAAAAECABEhEgNRYYGRwSIUEQEBAAAAAAAAAAAAAAAAAAAAEf/aAAwDAQACEQMRAD8A1rHnJu3Lsq/UnIfRWTrTlyfo1vBx1ZL8VKRcf6NbzcdSSfFKQSPOzNeXVE+rOS+mrRTVZusnLbJbwXqBCamU72b1FSmrle9m9AYKMHWRkvkt5L1UUxGZtIy2wW8NqBAamF7Xb1FSGrhO129AYCsDaTkvgt5bVUTLnZu3Fqi/YhJfZVgXJ+jW0DHRinzUhVx/o1tMx0Ir80hRJc5M14tlT7MJD7asH//Z"
  12855. }, {
  12856. name: "other",
  12857. img: "data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAUwABAQEAAAAAAAAAAAAAAAAAAQAHAQEBAAAAAAAAAAAAAAAAAAAAAxAAAwADAQAAAAAAAAAAAAAAAAERIUGBIhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A31P00yAK6BV0Bb9JICxamAbl4Bbl4A4tbAsWJAG7OgW7OgOLGgJL02wCOgUdAWvSaA//2Q=="
  12858. }]
  12859. , A = [{
  12860. texts: n.i18n.t("modules.cad.hall_tests").split(","),
  12861. mapping: "hall"
  12862. }, {
  12863. texts: n.i18n.t("modules.cad.room_tests").split(","),
  12864. mapping: "room"
  12865. }, {
  12866. texts: n.i18n.t("modules.cad.other_tests").split(","),
  12867. mapping: "other"
  12868. }];
  12869. e.labelTexts = A.reduce((function(t, e) {
  12870. return t.concat(e.texts)
  12871. }
  12872. ), []),
  12873. e.getMaping = function(t) {
  12874. var e = A.find((function(e) {
  12875. return ~e.texts.indexOf(t)
  12876. }
  12877. ));
  12878. return g.find((function(t) {
  12879. return t.name === (e ? e.mapping : "other")
  12880. }
  12881. )).img
  12882. }
  12883. }
  12884. , function(t, e, i) {
  12885. "use strict";
  12886. i.r(e),
  12887. i.d(e, "default", (function() {
  12888. return r
  12889. }
  12890. ));
  12891. var n = i(6)
  12892. , g = i.n(n)
  12893. , A = i(0);
  12894. function r(t, e) {
  12895. t = function(t, e) {
  12896. let i = t.wall
  12897. , n = t.vertex;
  12898. for (let t = 0; t < n.length; t++) {
  12899. let e = n[t];
  12900. n.filter(t=>t !== e && (t.x === e.x && t.y === e.y || Object(A.lineDis)({
  12901. points: [t, e]
  12902. }) < .1)).forEach(t=>{
  12903. i.forEach(i=>{
  12904. i.p1 === t.id && (i.p1 = e.id),
  12905. i.p2 === t.id && (i.p2 = e.id)
  12906. }
  12907. ),
  12908. ~n.indexOf(t) && n.splice(n.indexOf(t), 1)
  12909. }
  12910. )
  12911. }
  12912. for (let e = 0; e < i.length; e++) {
  12913. let n = i[e];
  12914. n.p1 === n.p2 && (["case", "door", "slideDoor", "column", "groundCase", "bayCase"].forEach(e=>{
  12915. for (let i = 0; i < t[e] && t[e].length; i++) {
  12916. t[e][i].line === n.id && t[e].splice(i--, 1)
  12917. }
  12918. }
  12919. ),
  12920. i.splice(e--, 1))
  12921. }
  12922. for (let t = 0; t < i.length; t++) {
  12923. let e = i[t]
  12924. , g = n.find(({id: e})=>e === i[t].p1)
  12925. , r = n.find(({id: e})=>e === i[t].p2)
  12926. , o = {
  12927. points: [g, r]
  12928. }
  12929. , C = 0;
  12930. for (C = t + 1; C < i.length; C++) {
  12931. let t = i[C];
  12932. if (t === e)
  12933. continue;
  12934. let I = n.find(({id: t})=>t === i[C].p1)
  12935. , s = n.find(({id: t})=>t === i[C].p2);
  12936. if (g === I || g === s || r === I || r === s)
  12937. continue;
  12938. let a = {
  12939. points: [I, s]
  12940. }
  12941. , l = Object(A.segmentsIntr)(o, a);
  12942. if (Object(A.lineDis)({
  12943. points: [g, l]
  12944. }) < .1 || Object(A.lineDis)({
  12945. points: [r, l]
  12946. }) < .1 || Object(A.lineDis)({
  12947. points: [I, l]
  12948. }) < .1 || Object(A.lineDis)({
  12949. points: [s, l]
  12950. }) < .1)
  12951. continue;
  12952. if (!l)
  12953. continue;
  12954. let u = Math.max(...n.map(({id: t})=>t)) + 1
  12955. , c = Math.max(...i.map(({id: t})=>t));
  12956. n.push({
  12957. ...l,
  12958. id: u
  12959. }),
  12960. i.splice(i.indexOf(e), 1, {
  12961. p1: g.id,
  12962. p2: u,
  12963. id: ++c
  12964. }, {
  12965. p1: r.id,
  12966. p2: u,
  12967. id: ++c
  12968. }),
  12969. i.splice(i.indexOf(t), 1, {
  12970. p1: I.id,
  12971. p2: u,
  12972. id: ++c
  12973. }, {
  12974. p1: s.id,
  12975. p2: u,
  12976. id: ++c
  12977. });
  12978. break
  12979. }
  12980. C !== i.length && t--
  12981. }
  12982. return t
  12983. }(t);
  12984. let i = Date.now();
  12985. console.log("开始计算房间");
  12986. let n = []
  12987. , r = []
  12988. , o = [];
  12989. function C(t, e, i, g, A, o, I) {
  12990. for (let s = 0; s < t.length; ++s) {
  12991. if (A.indexOf(s) > -1 || o.indexOf(I) > -1)
  12992. continue;
  12993. let a = t[s]
  12994. , l = a.p1.id
  12995. , u = a.p2.id;
  12996. if (I == l || I == u) {
  12997. let c = JSON.parse(JSON.stringify(i))
  12998. , h = JSON.parse(JSON.stringify(g))
  12999. , p = JSON.parse(JSON.stringify(A))
  13000. , d = JSON.parse(JSON.stringify(o))
  13001. , f = I;
  13002. h.push(a.id),
  13003. c.push(I),
  13004. p.push(s),
  13005. d.push(I),
  13006. f == l ? f = u : f == u && (f = l),
  13007. e == f ? (r.push(c),
  13008. n.push(h)) : C(t, e, c, h, p, d, f)
  13009. }
  13010. }
  13011. }
  13012. function I(t, e, i, n) {
  13013. let g = [];
  13014. for (let t = 0; t < n.length; ++t) {
  13015. let e = n[t];
  13016. g.push(e)
  13017. }
  13018. let A = !0;
  13019. for (var r = 0; r < i.length; ++r) {
  13020. if (e.indexOf(t[r]) > -1) {
  13021. A = !1;
  13022. continue
  13023. }
  13024. let i = t[r];
  13025. var C = i.p1
  13026. , I = i.p2
  13027. , a = {
  13028. x: (C.x + I.x) / 2,
  13029. y: (C.y + I.y) / 2
  13030. };
  13031. if (!(s(C, g) && s(I, g) && s(a, g)))
  13032. return !1
  13033. }
  13034. if (A) {
  13035. let i = [];
  13036. return i.push(e[0]),
  13037. i.push(e[e.length - 1]),
  13038. i.push(t[0]),
  13039. i.push(t[t.length - 1]),
  13040. o.push(i),
  13041. !1
  13042. }
  13043. return !0
  13044. }
  13045. function s(t, e) {
  13046. for (var i = 0; i < e.length; ++i) {
  13047. if (a(t, e[i]))
  13048. return !0
  13049. }
  13050. return !!function(t, e) {
  13051. for (var i = t.x, n = t.y, g = !1, A = 0, r = e.length - 1; A < e.length; r = A++) {
  13052. var o = e[A]
  13053. , C = e[r]
  13054. , I = o.x
  13055. , s = o.y
  13056. , a = C.x
  13057. , l = C.y;
  13058. s > n != l > n && i < (a - I) * (n - s) / (l - s) + I && (g = !g)
  13059. }
  13060. return g
  13061. }(t, e)
  13062. }
  13063. function a(t, e) {
  13064. return t.x == e.x && t.y == e.y
  13065. }
  13066. let l = t.wall.map(e=>({
  13067. p1: t.vertex.find(({id: t})=>e.p1 === t),
  13068. p2: t.vertex.find(({id: t})=>e.p2 === t),
  13069. id: e.id
  13070. }));
  13071. function u(t, e, i) {
  13072. 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
  13073. }
  13074. !function(t) {
  13075. for (let e = 0; e < t.length; ++e) {
  13076. let i = []
  13077. , n = []
  13078. , g = []
  13079. , A = [];
  13080. for (let t = 0; t <= e; ++t)
  13081. i.push(t);
  13082. let r = t[e]
  13083. , o = r.p1.id
  13084. , I = r.p2.id;
  13085. g.push(I),
  13086. A.push(r.id);
  13087. let s = null;
  13088. for (let r = e + 1; r < t.length; ++r) {
  13089. let e = t[r];
  13090. if (o == e.p1.id || o == e.p2.id) {
  13091. let a = JSON.parse(JSON.stringify(g))
  13092. , l = JSON.parse(JSON.stringify(A))
  13093. , u = JSON.parse(JSON.stringify(i))
  13094. , c = JSON.parse(JSON.stringify(n))
  13095. , h = o;
  13096. a.push(o),
  13097. l.push(e.id),
  13098. u.push(r),
  13099. s = h == e.p1.id ? e.p2.id : e.p1.id,
  13100. c.push(h),
  13101. C(t, I, a, l, u, c, s)
  13102. }
  13103. }
  13104. }
  13105. }(l),
  13106. r = r.map(e=>e.map(e=>t.vertex.find(({id: t})=>e === t))),
  13107. n = n.map(t=>t.map(t=>l.find(({id: e})=>t === e))),
  13108. function() {
  13109. for (var t = 0; t < r.length; ++t)
  13110. for (var e = t + 1; e < r.length; ++e)
  13111. if (I(n[t], n[e], r[t], r[e]))
  13112. r.splice(e, 1),
  13113. n.splice(e, 1),
  13114. --e;
  13115. else if (I(n[e], n[t], r[e], r[t])) {
  13116. r.splice(t, 1),
  13117. n.splice(t, 1),
  13118. --t,
  13119. --e;
  13120. break
  13121. }
  13122. }(),
  13123. function() {
  13124. let t = [];
  13125. for (let e = 0; e < o.length; ++e) {
  13126. let i = o[e]
  13127. , g = [];
  13128. g[0] = null,
  13129. g[1] = null;
  13130. 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),
  13131. null == g[0] || null == g[1]); ++t)
  13132. ;
  13133. null != g[0] && null != g[1] && t.push(g)
  13134. }
  13135. o = t
  13136. }(),
  13137. t.room = n.map((t,e)=>({
  13138. wall: t.map(({id: t})=>t),
  13139. ground: r[e]
  13140. }));
  13141. let c = Date.now();
  13142. return console.warn("计算完毕,耗时" + (c - i)),
  13143. e && (window.testCenterPoints && e.processing.render.remove(...window.testCenterPoints),
  13144. window.testCenterPoints = r.map(t=>{
  13145. let i = function(t) {
  13146. for (var e = 0, i = 0, n = 0, g = t[1], A = 2; A < t.length; A++) {
  13147. var r = t[A]
  13148. , o = u(t[0], g, r);
  13149. n += o,
  13150. e += (t[0].x + g.x + r.x) * o,
  13151. i += (t[0].y + g.y + r.y) * o,
  13152. g = r
  13153. }
  13154. return {
  13155. x: e / n / 3,
  13156. y: i / n / 3
  13157. }
  13158. }(t.map(t=>({
  13159. ...t,
  13160. y: -t.y
  13161. })))
  13162. , n = "rgba(" + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + "," + Math.floor(255 * Math.random()) + ",0.8)"
  13163. , A = new g.a({
  13164. fillColor: n,
  13165. storkeColor: n,
  13166. x: i.x,
  13167. y: i.y,
  13168. renderer: e.processing.render
  13169. });
  13170. return e.processing.render.push(A),
  13171. A
  13172. }
  13173. ),
  13174. window.testCenterPoints.forEach((i,g)=>{
  13175. t.room[g].ground.map(t=>e.processing.points.find(({id: e})=>e === t.id).ele.real),
  13176. n[g].map(t=>e.processing.lines.find(({id: e})=>e === t.id).ele.real),
  13177. i.real,
  13178. r[g],
  13179. n[g];
  13180. console.log(r[g], r[g])
  13181. }
  13182. )),
  13183. r
  13184. }
  13185. }
  13186. , function(t, e, i) {
  13187. "use strict";
  13188. var n = this && this.__awaiter || function(t, e, i, n) {
  13189. return new (i || (i = Promise))((function(g, A) {
  13190. function r(t) {
  13191. try {
  13192. C(n.next(t))
  13193. } catch (t) {
  13194. A(t)
  13195. }
  13196. }
  13197. function o(t) {
  13198. try {
  13199. C(n.throw(t))
  13200. } catch (t) {
  13201. A(t)
  13202. }
  13203. }
  13204. function C(t) {
  13205. var e;
  13206. t.done ? g(t.value) : (e = t.value,
  13207. e instanceof i ? e : new i((function(t) {
  13208. t(e)
  13209. }
  13210. ))).then(r, o)
  13211. }
  13212. C((n = n.apply(t, e || [])).next())
  13213. }
  13214. ))
  13215. }
  13216. , g = this && this.__generator || function(t, e) {
  13217. var i, n, g, A, r = {
  13218. label: 0,
  13219. sent: function() {
  13220. if (1 & g[0])
  13221. throw g[1];
  13222. return g[1]
  13223. },
  13224. trys: [],
  13225. ops: []
  13226. };
  13227. return A = {
  13228. next: o(0),
  13229. throw: o(1),
  13230. return: o(2)
  13231. },
  13232. "function" == typeof Symbol && (A[Symbol.iterator] = function() {
  13233. return this
  13234. }
  13235. ),
  13236. A;
  13237. function o(A) {
  13238. return function(o) {
  13239. return function(A) {
  13240. if (i)
  13241. throw new TypeError("Generator is already executing.");
  13242. for (; r; )
  13243. try {
  13244. if (i = 1,
  13245. n && (g = 2 & A[0] ? n.return : A[0] ? n.throw || ((g = n.return) && g.call(n),
  13246. 0) : n.next) && !(g = g.call(n, A[1])).done)
  13247. return g;
  13248. switch (n = 0,
  13249. g && (A = [2 & A[0], g.value]),
  13250. A[0]) {
  13251. case 0:
  13252. case 1:
  13253. g = A;
  13254. break;
  13255. case 4:
  13256. return r.label++,
  13257. {
  13258. value: A[1],
  13259. done: !1
  13260. };
  13261. case 5:
  13262. r.label++,
  13263. n = A[1],
  13264. A = [0];
  13265. continue;
  13266. case 7:
  13267. A = r.ops.pop(),
  13268. r.trys.pop();
  13269. continue;
  13270. default:
  13271. if (!(g = (g = r.trys).length > 0 && g[g.length - 1]) && (6 === A[0] || 2 === A[0])) {
  13272. r = 0;
  13273. continue
  13274. }
  13275. if (3 === A[0] && (!g || A[1] > g[0] && A[1] < g[3])) {
  13276. r.label = A[1];
  13277. break
  13278. }
  13279. if (6 === A[0] && r.label < g[1]) {
  13280. r.label = g[1],
  13281. g = A;
  13282. break
  13283. }
  13284. if (g && r.label < g[2]) {
  13285. r.label = g[2],
  13286. r.ops.push(A);
  13287. break
  13288. }
  13289. g[2] && r.ops.pop(),
  13290. r.trys.pop();
  13291. continue
  13292. }
  13293. A = e.call(t, r)
  13294. } catch (t) {
  13295. A = [6, t],
  13296. n = 0
  13297. } finally {
  13298. i = g = 0
  13299. }
  13300. if (5 & A[0])
  13301. throw A[1];
  13302. return {
  13303. value: A[0] ? A[1] : void 0,
  13304. done: !0
  13305. }
  13306. }([A, o])
  13307. }
  13308. }
  13309. }
  13310. , A = this && this.__spreadArrays || function() {
  13311. for (var t = 0, e = 0, i = arguments.length; e < i; e++)
  13312. t += arguments[e].length;
  13313. var n = Array(t)
  13314. , g = 0;
  13315. for (e = 0; e < i; e++)
  13316. for (var A = arguments[e], r = 0, o = A.length; r < o; r++,
  13317. g++)
  13318. n[g] = A[r];
  13319. return n
  13320. }
  13321. ;
  13322. Object.defineProperty(e, "__esModule", {
  13323. value: !0
  13324. });
  13325. e.default = function(t, e) {
  13326. return n(void 0, void 0, void 0, (function() {
  13327. var i, n, r, o, C, I, s, a, l, u;
  13328. return g(this, (function(g) {
  13329. switch (g.label) {
  13330. case 0:
  13331. return i = 3,
  13332. n = t.processing.render.layer,
  13333. r = t.processing.render.g,
  13334. o = (t.processing.render.layer.offsetWidth || parseInt(getComputedStyle(t.processing.render.layer).width)) * i,
  13335. C = (t.processing.render.layer.offsetHeight || parseInt(getComputedStyle(t.processing.render.layer).height)) * i,
  13336. n.style.visibility = "hidden",
  13337. t.processing.doors.forEach((function(t) {
  13338. t.ele.showStart = !1
  13339. }
  13340. )),
  13341. (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) {
  13342. var e = t.ele;
  13343. return new Promise((function(t) {
  13344. return e.nextTick(t)
  13345. }
  13346. ))
  13347. }
  13348. )))] : [2];
  13349. case 1:
  13350. return g.sent(),
  13351. s = n.querySelector(".sign"),
  13352. [4, t.hideSign()];
  13353. case 2:
  13354. g.sent(),
  13355. g.label = 3;
  13356. case 3:
  13357. return g.trys.push([3, 5, , 6]),
  13358. [4, t.screenshot({
  13359. width: o,
  13360. height: C,
  13361. bgColor: "rgba(0,0,0,0)",
  13362. padding: t.padding * i,
  13363. showGauge: !1,
  13364. lineWidth: 2,
  13365. showDire: !1,
  13366. showTags: !1,
  13367. showDoorStart: !1,
  13368. errreturn: !0
  13369. })];
  13370. case 4:
  13371. for (a = g.sent().file,
  13372. n.style.backgroundImage = "url(" + URL.createObjectURL(a) + ")",
  13373. l = 0; l < r.children.length; l++)
  13374. r.children[l] !== s && r.removeChild(r.children[l--]);
  13375. return [3, 6];
  13376. case 5:
  13377. return u = g.sent(),
  13378. console.error(u),
  13379. t.padding = t.padding * i,
  13380. t.processing.render.layer.style.transformOrigin = "left top",
  13381. t.processing.render.layer.style.transform = "scale(" + 1 / i + ")",
  13382. t.setDefaultSignStyle({
  13383. r: 5 * i
  13384. }),
  13385. t.adapt(t.processing.data, o, C),
  13386. [3, 6];
  13387. case 6:
  13388. return s.style.display = "block",
  13389. n.style.visibility = "visible",
  13390. [4, t.showSign()];
  13391. case 7:
  13392. return g.sent(),
  13393. e && e(),
  13394. [2]
  13395. }
  13396. }
  13397. ))
  13398. }
  13399. ))
  13400. }
  13401. }
  13402. ]);