bpmn-viewer.min.js 610 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863
  1. /*! bpmn-js - bpmn-viewer v0.17.0 | (c) 2014, 2015 camunda Services GmbH | bpmn.io/license */
  2. var markerIndex = 0;
  3. !
  4. function(e) {
  5. if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
  6. else if ("function" == typeof define && define.amd) define([], e);
  7. else {
  8. var t;
  9. t = "undefined" != typeof window ? window: "undefined" != typeof global ? global: "undefined" != typeof self ? self: this,
  10. t.BpmnJS = e()
  11. }
  12. } (function() {
  13. var e;
  14. return function e(t, n, r) {
  15. function i(a, s) {
  16. if (!n[a]) {
  17. if (!t[a]) {
  18. var c = "function" == typeof require && require;
  19. if (!s && c) return c(a, !0);
  20. if (o) return o(a, !0);
  21. var l = new Error("Cannot find module '" + a + "'");
  22. throw l.code = "MODULE_NOT_FOUND",
  23. l
  24. }
  25. var u = n[a] = {
  26. exports: {}
  27. };
  28. t[a][0].call(u.exports,
  29. function(e) {
  30. var n = t[a][1][e];
  31. return i(n ? n: e)
  32. },
  33. u, u.exports, e, t, n, r)
  34. }
  35. return n[a].exports
  36. }
  37. for (var o = "function" == typeof require && require,
  38. a = 0; a < r.length; a++) i(r[a]);
  39. return i
  40. } ({
  41. 1 : [function(e, t, n) {
  42. "use strict";
  43. function r(e) {
  44. var t = /unparsable content <([^>]+)> detected([\s\S]*)$/,
  45. n = t.exec(e.message);
  46. return n && (e.message = "unparsable content <" + n[1] + "> detected; this may indicate an invalid BPMN 2.0 diagram file" + n[2]),
  47. e
  48. }
  49. function i(e) {
  50. return e + (u(e) ? "px": "")
  51. }
  52. function o(e) {
  53. e = s({},
  54. v, e),
  55. this.moddle = this._createModdle(e),
  56. this.container = this._createContainer(e),
  57. a(this.container),
  58. this._init(this.container, this.moddle, e)
  59. }
  60. function a(e) {
  61. var t = x.BPMNIO_LOGO,
  62. n = '<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" style="position: absolute; bottom: 15px; right: 15px; z-index: 100"></a>',
  63. r = p(n);
  64. e.appendChild(r),
  65. b.bind(r, "click",
  66. function(e) {
  67. x.open(),
  68. e.preventDefault()
  69. })
  70. }
  71. var s = e(197),
  72. c = e(201),
  73. l = e(194),
  74. u = e(191),
  75. p = e(212),
  76. f = e(214),
  77. h = e(215),
  78. d = e(36),
  79. m = e(15),
  80. y = e(77),
  81. g = e(8),
  82. v = {
  83. width: "100%",
  84. height: "100%",
  85. position: "relative",
  86. container: "body"
  87. };
  88. y(o, d),
  89. t.exports = o,
  90. o.prototype.importXML = function(e, t) {
  91. t = t ||
  92. function() {};
  93. var n = this;
  94. e = this._emit("import.parse.start", {
  95. xml: e
  96. }) || e,
  97. this.moddle.fromXML(e, "bpmn:Definitions",
  98. function(e, i, o) {
  99. if (i = n._emit("import.parse.complete", {
  100. error: e,
  101. definitions: i,
  102. context: o
  103. }) || i, e) return e = r(e),
  104. n._emit("import.done", {
  105. error: e
  106. }),
  107. t(e);
  108. var a = o.warnings;
  109. n.importDefinitions(i,
  110. function(e, r) {
  111. var i = [].concat(a, r || []);
  112. n._emit("import.done", {
  113. error: e,
  114. warnings: i
  115. }),
  116. t(e, i)
  117. })
  118. })
  119. },
  120. o.prototype.saveXML = function(e, t) {
  121. t || (t = e, e = {});
  122. var n = this.definitions;
  123. return n ? void this.moddle.toXML(n, e, t) : t(new Error("no definitions loaded"))
  124. },
  125. o.prototype.saveSVG = function(e, t) {
  126. t || (t = e, e = {});
  127. var n = this.get("canvas"),
  128. r = n.getDefaultLayer(),
  129. i = n._svg.select("defs"),
  130. o = r.innerSVG(),
  131. a = i && i.outerSVG() || "",
  132. s = r.getBBox(),
  133. c = '<?xml version="1.0" encoding="utf-8"?>\n<!-- created with bpmn-js / http://bpmn.io -->\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="' + s.width + '" height="' + s.height + '" viewBox="' + s.x + " " + s.y + " " + s.width + " " + s.height + '" version="1.1">' + a + o + "</svg>";
  134. t(null, c)
  135. },
  136. o.prototype.importDefinitions = function(e, t) {
  137. try {
  138. this.definitions && this.clear(),
  139. this.definitions = e,
  140. g.importBpmnDiagram(this, e, t)
  141. } catch(e) {
  142. t(e)
  143. }
  144. },
  145. o.prototype.getModules = function() {
  146. return this._modules
  147. },
  148. o.prototype.destroy = function() {
  149. d.prototype.destroy.call(this),
  150. h(this.container)
  151. },
  152. o.prototype.on = function(e, t, n, r) {
  153. return this.get("eventBus").on(e, t, n, r)
  154. },
  155. o.prototype.off = function(e, t) {
  156. this.get("eventBus").off(e, t)
  157. },
  158. o.prototype._init = function(e, t, n) {
  159. var r = n.modules || this.getModules(),
  160. i = n.additionalModules || [],
  161. o = [{
  162. bpmnjs: ["value", this],
  163. moddle: ["value", t]
  164. }],
  165. a = [].concat(o, r, i),
  166. l = s(c(n, "additionalModules"), {
  167. canvas: s({},
  168. n.canvas, {
  169. container: e
  170. }),
  171. modules: a
  172. });
  173. d.call(this, l)
  174. },
  175. o.prototype._emit = function(e, t) {
  176. return this.get("eventBus").fire(e, t)
  177. },
  178. o.prototype._createContainer = function(e) {
  179. var t, n = e.container;
  180. return n.get && (n = n.get(0)),
  181. l(n) && (n = f(n)),
  182. t = p('<div class="bjs-container"></div>'),
  183. s(t.style, {
  184. width: i(e.width),
  185. height: i(e.height),
  186. position: e.position
  187. }),
  188. n.appendChild(t),
  189. t
  190. },
  191. o.prototype._createModdle = function(e) {
  192. var t = s({},
  193. this._moddleExtensions, e.moddleExtensions);
  194. return new m(t)
  195. },
  196. o.prototype._modules = [e(2), e(58), e(57), e(53)],
  197. o.prototype._moddleExtensions = {};
  198. var x = e(14),
  199. b = e(213)
  200. },
  201. {
  202. 14 : 14,
  203. 15 : 15,
  204. 191 : 191,
  205. 194 : 194,
  206. 197 : 197,
  207. 2 : 2,
  208. 201 : 201,
  209. 212 : 212,
  210. 213 : 213,
  211. 214 : 214,
  212. 215 : 215,
  213. 36 : 36,
  214. 53 : 53,
  215. 57 : 57,
  216. 58 : 58,
  217. 77 : 77,
  218. 8 : 8
  219. }],
  220. 2 : [function(e, t, n) {
  221. t.exports = {
  222. __depends__: [e(5), e(10)]
  223. }
  224. },
  225. {
  226. 10 : 10,
  227. 5 : 5
  228. }],
  229. 3 : [function(e, t, n) {
  230. "use strict";
  231. function r(e, t, n, r) {
  232. function l(e, t) {
  233. V[e] = t
  234. }
  235. function u(e) {
  236. return V[e]
  237. }
  238. function p(e) {
  239. function t(e, t) {
  240. var n = m({
  241. fill: "black",
  242. strokeWidth: 1,
  243. strokeLinecap: "round",
  244. strokeDasharray: "none"
  245. },
  246. t.attrs),
  247. r = t.ref || {
  248. x: 0,
  249. y: 0
  250. },
  251. i = t.scale || 1;
  252. "none" === n.strokeDasharray && (n.strokeDasharray = [1e4, 1]);
  253. var o = t.element.attr(n).marker(0, 0, 20, 20, r.x, r.y).attr({
  254. markerWidth: 20 * i,
  255. markerHeight: 20 * i
  256. });
  257. return l(e, o)
  258. }
  259. t("sequenceflow-end", {
  260. element: e.path("M 1 5 L 11 10 L 1 15 Z"),
  261. ref: {
  262. x: 11,
  263. y: 10
  264. },
  265. scale: .5
  266. }),
  267. t("messageflow-start", {
  268. element: e.circle(6, 6, 3.5),
  269. attrs: {
  270. fill: "white",
  271. stroke: "black"
  272. },
  273. ref: {
  274. x: 6,
  275. y: 6
  276. }
  277. }),
  278. t("messageflow-end", {
  279. element: e.path("m 1 5 l 0 -3 l 7 3 l -7 3 z"),
  280. attrs: {
  281. fill: "white",
  282. stroke: "black",
  283. strokeLinecap: "butt"
  284. },
  285. ref: {
  286. x: 8.5,
  287. y: 5
  288. }
  289. }),
  290. t("association-start", {
  291. element: e.path("M 11 5 L 1 10 L 11 15"),
  292. attrs: {
  293. fill: "none",
  294. stroke: "black",
  295. strokeWidth: 1.5
  296. },
  297. ref: {
  298. x: 1,
  299. y: 10
  300. },
  301. scale: .5
  302. }),
  303. t("association-end", {
  304. element: e.path("M 1 5 L 11 10 L 1 15"),
  305. attrs: {
  306. fill: "none",
  307. stroke: "black",
  308. strokeWidth: 1.5
  309. },
  310. ref: {
  311. x: 12,
  312. y: 10
  313. },
  314. scale: .5
  315. }),
  316. t("conditional-flow-marker", {
  317. element: e.path("M 0 10 L 8 6 L 16 10 L 8 14 Z"),
  318. attrs: {
  319. fill: "white",
  320. stroke: "black"
  321. },
  322. ref: {
  323. x: -1,
  324. y: 10
  325. },
  326. scale: .5
  327. }),
  328. t("conditional-default-flow-marker", {
  329. element: e.path("M 1 4 L 5 16"),
  330. attrs: {
  331. stroke: "black"
  332. },
  333. ref: {
  334. x: -5,
  335. y: 10
  336. },
  337. scale: .5
  338. })
  339. }
  340. function f(e, t, n, r, i) {
  341. d(r) && (i = r, r = 0),
  342. r = r || 0,
  343. i = G(i, {
  344. stroke: "black",
  345. strokeWidth: 2,
  346. fill: "white"
  347. });
  348. var o = t / 2,
  349. a = n / 2;
  350. return e.circle(o, a, Math.round((t + n) / 4 - r)).attr(i)
  351. }
  352. function h(e, t, n, r, i, o) {
  353. return d(i) && (o = i, i = 0),
  354. i = i || 0,
  355. o = G(o, {
  356. stroke: "black",
  357. strokeWidth: 2,
  358. fill: "white"
  359. }),
  360. e.rect(i, i, t - 2 * i, n - 2 * i, r).attr(o)
  361. }
  362. function g(e, t, n, r) {
  363. var i = t / 2,
  364. o = n / 2,
  365. a = [i, 0, t, o, i, n, 0, o];
  366. return r = G(r, {
  367. stroke: "black",
  368. strokeWidth: 2,
  369. fill: "white"
  370. }),
  371. e.polygon(a).attr(r)
  372. }
  373. function x(e, t, n) {
  374. return n = G(n, ["no-fill"], {
  375. stroke: "black",
  376. strokeWidth: 2,
  377. fill: "none"
  378. }),
  379. T(t, n).appendTo(e)
  380. }
  381. function A(e, t, n) {
  382. return n = G(n, ["no-fill"], {
  383. strokeWidth: 2,
  384. stroke: "black"
  385. }),
  386. e.path(t).attr(n)
  387. }
  388. function _(e, t, n, r) {
  389. return A(t, n, m({
  390. "data-marker": e
  391. },
  392. r))
  393. }
  394. function S(e) {
  395. return function(t, n) {
  396. return U[e](t, n)
  397. }
  398. }
  399. function M(e) {
  400. return U[e]
  401. }
  402. function P(e, t) {
  403. var n = c(e),
  404. r = o(n);
  405. return i(n, "bpmn:MessageEventDefinition") ? M("bpmn:MessageEventDefinition")(t, e, r) : i(n, "bpmn:TimerEventDefinition") ? M("bpmn:TimerEventDefinition")(t, e, r) : i(n, "bpmn:ConditionalEventDefinition") ? M("bpmn:ConditionalEventDefinition")(t, e) : i(n, "bpmn:SignalEventDefinition") ? M("bpmn:SignalEventDefinition")(t, e, r) : i(n, "bpmn:CancelEventDefinition") && i(n, "bpmn:TerminateEventDefinition", {
  406. parallelMultiple: !1
  407. }) ? M("bpmn:MultipleEventDefinition")(t, e, r) : i(n, "bpmn:CancelEventDefinition") && i(n, "bpmn:TerminateEventDefinition", {
  408. parallelMultiple: !0
  409. }) ? M("bpmn:ParallelMultipleEventDefinition")(t, e, r) : i(n, "bpmn:EscalationEventDefinition") ? M("bpmn:EscalationEventDefinition")(t, e, r) : i(n, "bpmn:LinkEventDefinition") ? M("bpmn:LinkEventDefinition")(t, e, r) : i(n, "bpmn:ErrorEventDefinition") ? M("bpmn:ErrorEventDefinition")(t, e, r) : i(n, "bpmn:CancelEventDefinition") ? M("bpmn:CancelEventDefinition")(t, e, r) : i(n, "bpmn:CompensateEventDefinition") ? M("bpmn:CompensateEventDefinition")(t, e, r) : i(n, "bpmn:TerminateEventDefinition") ? M("bpmn:TerminateEventDefinition")(t, e, r) : null
  410. }
  411. function D(e, t, n) {
  412. return j.createText(e, t || "", n).addClass("djs-label")
  413. }
  414. function k(e, t, n) {
  415. var r = c(t);
  416. return D(e, r.name, {
  417. box: t,
  418. align: n,
  419. padding: 5
  420. })
  421. }
  422. function O(e, t) {
  423. var n = c(t),
  424. r = {
  425. width: 90,
  426. height: 30,
  427. x: t.width / 2 + t.x,
  428. y: t.height / 2 + t.y
  429. };
  430. return D(e, n.name, {
  431. box: r,
  432. style: {
  433. fontSize: "11px"
  434. }
  435. })
  436. }
  437. function B(e, t, n) {
  438. var r = D(e, t, {
  439. box: {
  440. height: 30,
  441. width: n.height
  442. },
  443. align: "center-middle"
  444. }),
  445. i = -1 * n.height;
  446. r.transform("rotate(270) translate(" + i + ",0)")
  447. }
  448. function I(e) {
  449. for (var t = e.waypoints,
  450. n = "m " + t[0].x + "," + t[0].y, r = 1; r < t.length; r++) n += "L" + t[r].x + "," + t[r].y + " ";
  451. return n
  452. }
  453. function L(e, t, n) {
  454. var r, i = c(t),
  455. o = v(n, "SubProcessMarker");
  456. r = o ? {
  457. seq: -21,
  458. parallel: -22,
  459. compensation: -42,
  460. loop: -18,
  461. adhoc: 10
  462. }: {
  463. seq: -3,
  464. parallel: -6,
  465. compensation: -27,
  466. loop: 0,
  467. adhoc: 10
  468. },
  469. y(n,
  470. function(n) {
  471. M(n)(e, t, r)
  472. }),
  473. i.isForCompensation && M("CompensationMarker")(e, t, r),
  474. "bpmn:AdHocSubProcess" === i.$type && M("AdhocMarker")(e, t, r);
  475. var a = i.loopCharacteristics,
  476. s = a && a.isSequential;
  477. a && (void 0 === s && M("LoopMarker")(e, t, r), s === !1 && M("ParallelMarker")(e, t, r), s === !0 && M("SequentialMarker")(e, t, r))
  478. }
  479. function F(e, t) {
  480. var r = (t.height - 16) / t.height,
  481. i = n.getScaledPath("DATA_OBJECT_COLLECTION_PATH", {
  482. xScaleFactor: 1,
  483. yScaleFactor: 1,
  484. containerWidth: t.width,
  485. containerHeight: t.height,
  486. position: {
  487. mx: .451,
  488. my: r
  489. }
  490. });
  491. A(e, i, {
  492. strokeWidth: 2
  493. })
  494. }
  495. b.call(this, e, r);
  496. var j = new E({
  497. style: N,
  498. size: {
  499. width: 100
  500. }
  501. }),
  502. V = {},
  503. G = t.computeStyle,
  504. U = this.handlers = {
  505. "bpmn:Event": function(e, t, n) {
  506. return f(e, t.width, t.height, n)
  507. },
  508. "bpmn:StartEvent": function(e, t) {
  509. var n = {},
  510. r = c(t);
  511. r.isInterrupting || (n = {
  512. strokeDasharray: "6",
  513. strokeLinecap: "round"
  514. });
  515. var i = M("bpmn:Event")(e, t, n);
  516. return P(t, e),
  517. i
  518. },
  519. "bpmn:MessageEventDefinition": function(e, t, r) {
  520. var i = n.getScaledPath("EVENT_MESSAGE", {
  521. xScaleFactor: .9,
  522. yScaleFactor: .9,
  523. containerWidth: t.width,
  524. containerHeight: t.height,
  525. position: {
  526. mx: .235,
  527. my: .315
  528. }
  529. }),
  530. o = r ? "black": "white",
  531. a = r ? "white": "black",
  532. s = A(e, i, {
  533. strokeWidth: 1,
  534. fill: o,
  535. stroke: a
  536. });
  537. return s
  538. },
  539. "bpmn:TimerEventDefinition": function(e, t) {
  540. var r = f(e, t.width, t.height, .2 * t.height, {
  541. strokeWidth: 2
  542. }),
  543. i = n.getScaledPath("EVENT_TIMER_WH", {
  544. xScaleFactor: .75,
  545. yScaleFactor: .75,
  546. containerWidth: t.width,
  547. containerHeight: t.height,
  548. position: {
  549. mx: .5,
  550. my: .5
  551. }
  552. });
  553. A(e, i, {
  554. strokeWidth: 2,
  555. strokeLinecap: "square"
  556. });
  557. for (var o = 0; o < 12; o++) {
  558. var a = n.getScaledPath("EVENT_TIMER_LINE", {
  559. xScaleFactor: .75,
  560. yScaleFactor: .75,
  561. containerWidth: t.width,
  562. containerHeight: t.height,
  563. position: {
  564. mx: .5,
  565. my: .5
  566. }
  567. }),
  568. s = t.width / 2,
  569. c = t.height / 2;
  570. A(e, a, {
  571. strokeWidth: 1,
  572. strokeLinecap: "square",
  573. transform: "rotate(" + 30 * o + "," + c + "," + s + ")"
  574. })
  575. }
  576. return r
  577. },
  578. "bpmn:EscalationEventDefinition": function(e, t, r) {
  579. var i = n.getScaledPath("EVENT_ESCALATION", {
  580. xScaleFactor: 1,
  581. yScaleFactor: 1,
  582. containerWidth: t.width,
  583. containerHeight: t.height,
  584. position: {
  585. mx: .5,
  586. my: .2
  587. }
  588. }),
  589. o = r ? "black": "none";
  590. return A(e, i, {
  591. strokeWidth: 1,
  592. fill: o
  593. })
  594. },
  595. "bpmn:ConditionalEventDefinition": function(e, t) {
  596. var r = n.getScaledPath("EVENT_CONDITIONAL", {
  597. xScaleFactor: 1,
  598. yScaleFactor: 1,
  599. containerWidth: t.width,
  600. containerHeight: t.height,
  601. position: {
  602. mx: .5,
  603. my: .222
  604. }
  605. });
  606. return A(e, r, {
  607. strokeWidth: 1
  608. })
  609. },
  610. "bpmn:LinkEventDefinition": function(e, t, r) {
  611. var i = n.getScaledPath("EVENT_LINK", {
  612. xScaleFactor: 1,
  613. yScaleFactor: 1,
  614. containerWidth: t.width,
  615. containerHeight: t.height,
  616. position: {
  617. mx: .57,
  618. my: .263
  619. }
  620. }),
  621. o = r ? "black": "none";
  622. return A(e, i, {
  623. strokeWidth: 1,
  624. fill: o
  625. })
  626. },
  627. "bpmn:ErrorEventDefinition": function(e, t, r) {
  628. var i = n.getScaledPath("EVENT_ERROR", {
  629. xScaleFactor: 1.1,
  630. yScaleFactor: 1.1,
  631. containerWidth: t.width,
  632. containerHeight: t.height,
  633. position: {
  634. mx: .2,
  635. my: .722
  636. }
  637. }),
  638. o = r ? "black": "none";
  639. return A(e, i, {
  640. strokeWidth: 1,
  641. fill: o
  642. })
  643. },
  644. "bpmn:CancelEventDefinition": function(e, t, r) {
  645. var i = n.getScaledPath("EVENT_CANCEL_45", {
  646. xScaleFactor: 1,
  647. yScaleFactor: 1,
  648. containerWidth: t.width,
  649. containerHeight: t.height,
  650. position: {
  651. mx: .638,
  652. my: -.055
  653. }
  654. }),
  655. o = r ? "black": "none";
  656. return A(e, i, {
  657. strokeWidth: 1,
  658. fill: o
  659. }).transform("rotate(45)")
  660. },
  661. "bpmn:CompensateEventDefinition": function(e, t, r) {
  662. var i = n.getScaledPath("EVENT_COMPENSATION", {
  663. xScaleFactor: 1,
  664. yScaleFactor: 1,
  665. containerWidth: t.width,
  666. containerHeight: t.height,
  667. position: {
  668. mx: .22,
  669. my: .5
  670. }
  671. }),
  672. o = r ? "black": "none";
  673. return A(e, i, {
  674. strokeWidth: 1,
  675. fill: o
  676. })
  677. },
  678. "bpmn:SignalEventDefinition": function(e, t, r) {
  679. var i = n.getScaledPath("EVENT_SIGNAL", {
  680. xScaleFactor: .9,
  681. yScaleFactor: .9,
  682. containerWidth: t.width,
  683. containerHeight: t.height,
  684. position: {
  685. mx: .5,
  686. my: .2
  687. }
  688. }),
  689. o = r ? "black": "none";
  690. return A(e, i, {
  691. strokeWidth: 1,
  692. fill: o
  693. })
  694. },
  695. "bpmn:MultipleEventDefinition": function(e, t, r) {
  696. var i = n.getScaledPath("EVENT_MULTIPLE", {
  697. xScaleFactor: 1.1,
  698. yScaleFactor: 1.1,
  699. containerWidth: t.width,
  700. containerHeight: t.height,
  701. position: {
  702. mx: .222,
  703. my: .36
  704. }
  705. }),
  706. o = r ? "black": "none";
  707. return A(e, i, {
  708. strokeWidth: 1,
  709. fill: o
  710. })
  711. },
  712. "bpmn:ParallelMultipleEventDefinition": function(e, t) {
  713. var r = n.getScaledPath("EVENT_PARALLEL_MULTIPLE", {
  714. xScaleFactor: 1.2,
  715. yScaleFactor: 1.2,
  716. containerWidth: t.width,
  717. containerHeight: t.height,
  718. position: {
  719. mx: .458,
  720. my: .194
  721. }
  722. });
  723. return A(e, r, {
  724. strokeWidth: 1
  725. })
  726. },
  727. "bpmn:EndEvent": function(e, t) {
  728. var n = M("bpmn:Event")(e, t, {
  729. strokeWidth: 4
  730. });
  731. return P(t, e, !0),
  732. n
  733. },
  734. "bpmn:TerminateEventDefinition": function(e, t) {
  735. var n = f(e, t.width, t.height, 8, {
  736. strokeWidth: 4,
  737. fill: "black"
  738. });
  739. return n
  740. },
  741. "bpmn:IntermediateEvent": function(e, t) {
  742. var n = M("bpmn:Event")(e, t, {
  743. strokeWidth: 1
  744. });
  745. return f(e, t.width, t.height, R, {
  746. strokeWidth: 1,
  747. fill: "none"
  748. }),
  749. P(t, e),
  750. n
  751. },
  752. "bpmn:IntermediateCatchEvent": S("bpmn:IntermediateEvent"),
  753. "bpmn:IntermediateThrowEvent": S("bpmn:IntermediateEvent"),
  754. "bpmn:Activity": function(e, t, n) {
  755. return h(e, t.width, t.height, C, n)
  756. },
  757. "bpmn:Task": function(e, t, n) {
  758. var r = M("bpmn:Activity")(e, t, n);
  759. return k(e, t, "center-middle"),
  760. L(e, t),
  761. r
  762. },
  763. "bpmn:ServiceTask": function(e, t) {
  764. var r = M("bpmn:Task")(e, t),
  765. i = n.getScaledPath("TASK_TYPE_SERVICE", {
  766. abspos: {
  767. x: 12,
  768. y: 18
  769. }
  770. });
  771. A(e, i, {
  772. strokeWidth: 1,
  773. fill: "none"
  774. });
  775. var o = n.getScaledPath("TASK_TYPE_SERVICE_FILL", {
  776. abspos: {
  777. x: 17.2,
  778. y: 18
  779. }
  780. });
  781. A(e, o, {
  782. strokeWidth: 0,
  783. stroke: "none",
  784. fill: "white"
  785. });
  786. var a = n.getScaledPath("TASK_TYPE_SERVICE", {
  787. abspos: {
  788. x: 17,
  789. y: 22
  790. }
  791. });
  792. return A(e, a, {
  793. strokeWidth: 1,
  794. fill: "white"
  795. }),
  796. r
  797. },
  798. "bpmn:UserTask": function(e, t) {
  799. var r = M("bpmn:Task")(e, t),
  800. i = 15,
  801. o = 12,
  802. a = n.getScaledPath("TASK_TYPE_USER_1", {
  803. abspos: {
  804. x: i,
  805. y: o
  806. }
  807. });
  808. A(e, a, {
  809. strokeWidth: .5,
  810. fill: "none"
  811. });
  812. var s = n.getScaledPath("TASK_TYPE_USER_2", {
  813. abspos: {
  814. x: i,
  815. y: o
  816. }
  817. });
  818. A(e, s, {
  819. strokeWidth: .5,
  820. fill: "none"
  821. });
  822. var c = n.getScaledPath("TASK_TYPE_USER_3", {
  823. abspos: {
  824. x: i,
  825. y: o
  826. }
  827. });
  828. return A(e, c, {
  829. strokeWidth: .5,
  830. fill: "black"
  831. }),
  832. r
  833. },
  834. "bpmn:ManualTask": function(e, t) {
  835. var r = M("bpmn:Task")(e, t),
  836. i = n.getScaledPath("TASK_TYPE_MANUAL", {
  837. abspos: {
  838. x: 17,
  839. y: 15
  840. }
  841. });
  842. return A(e, i, {
  843. strokeWidth: .25,
  844. fill: "white",
  845. stroke: "black"
  846. }),
  847. r
  848. },
  849. "bpmn:SendTask": function(e, t) {
  850. var r = M("bpmn:Task")(e, t),
  851. i = n.getScaledPath("TASK_TYPE_SEND", {
  852. xScaleFactor: 1,
  853. yScaleFactor: 1,
  854. containerWidth: 21,
  855. containerHeight: 14,
  856. position: {
  857. mx: .285,
  858. my: .357
  859. }
  860. });
  861. return A(e, i, {
  862. strokeWidth: 1,
  863. fill: "black",
  864. stroke: "white"
  865. }),
  866. r
  867. },
  868. "bpmn:ReceiveTask": function(e, t) {
  869. var r, i = c(t),
  870. o = M("bpmn:Task")(e, t);
  871. return i.instantiate ? (f(e, 28, 28, 4.4, {
  872. strokeWidth: 1
  873. }), r = n.getScaledPath("TASK_TYPE_INSTANTIATING_SEND", {
  874. abspos: {
  875. x: 7.77,
  876. y: 9.52
  877. }
  878. })) : r = n.getScaledPath("TASK_TYPE_SEND", {
  879. xScaleFactor: .9,
  880. yScaleFactor: .9,
  881. containerWidth: 21,
  882. containerHeight: 14,
  883. position: {
  884. mx: .3,
  885. my: .4
  886. }
  887. }),
  888. A(e, r, {
  889. strokeWidth: 1
  890. }),
  891. o
  892. },
  893. "bpmn:ScriptTask": function(e, t) {
  894. var r = M("bpmn:Task")(e, t),
  895. i = n.getScaledPath("TASK_TYPE_SCRIPT", {
  896. abspos: {
  897. x: 15,
  898. y: 20
  899. }
  900. });
  901. return A(e, i, {
  902. strokeWidth: 1
  903. }),
  904. r
  905. },
  906. "bpmn:BusinessRuleTask": function(e, t) {
  907. var r = M("bpmn:Task")(e, t),
  908. i = n.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER", {
  909. abspos: {
  910. x: 8,
  911. y: 8
  912. }
  913. }),
  914. o = A(e, i);
  915. o.attr({
  916. strokeWidth: 1,
  917. fill: "AAA"
  918. });
  919. var a = n.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN", {
  920. abspos: {
  921. x: 8,
  922. y: 8
  923. }
  924. }),
  925. s = A(e, a);
  926. return s.attr({
  927. strokeWidth: 1
  928. }),
  929. r
  930. },
  931. "bpmn:SubProcess": function(e, t, n) {
  932. n = m({
  933. fillOpacity: .95
  934. },
  935. n);
  936. var r = M("bpmn:Activity")(e, t, n),
  937. i = w.isExpanded(t),
  938. o = w.isEventSubProcess(t);
  939. return o && r.attr({
  940. strokeDasharray: "1,2"
  941. }),
  942. k(e, t, i ? "center-top": "center-middle"),
  943. i ? L(e, t) : L(e, t, ["SubProcessMarker"]),
  944. r
  945. },
  946. "bpmn:AdHocSubProcess": function(e, t) {
  947. return M("bpmn:SubProcess")(e, t)
  948. },
  949. "bpmn:Transaction": function(e, n) {
  950. var r = M("bpmn:SubProcess")(e, n),
  951. i = t.style(["no-fill", "no-events"]);
  952. return h(e, n.width, n.height, C - 2, R, i),
  953. r
  954. },
  955. "bpmn:CallActivity": function(e, t) {
  956. return M("bpmn:SubProcess")(e, t, {
  957. strokeWidth: 5
  958. })
  959. },
  960. "bpmn:Participant": function(e, t) {
  961. var n = M("bpmn:Lane")(e, t, {
  962. fillOpacity: .95,
  963. fill: "White"
  964. }),
  965. r = w.isExpanded(t);
  966. if (r) {
  967. x(e, [{
  968. x: 30,
  969. y: 0
  970. },
  971. {
  972. x: 30,
  973. y: t.height
  974. }]);
  975. var i = c(t).name;
  976. B(e, i, t)
  977. } else {
  978. var o = c(t).name;
  979. D(e, o, {
  980. box: t,
  981. align: "center-middle"
  982. })
  983. }
  984. var a = !!c(t).participantMultiplicity;
  985. return a && M("ParticipantMultiplicityMarker")(e, t),
  986. n
  987. },
  988. "bpmn:Lane": function(e, t, n) {
  989. var r = h(e, t.width, t.height, 0, n || {
  990. fill: "none"
  991. }),
  992. i = c(t);
  993. if ("bpmn:Lane" === i.$type) {
  994. var o = i.name;
  995. B(e, o, t)
  996. }
  997. return r
  998. },
  999. "bpmn:InclusiveGateway": function(e, t) {
  1000. var n = g(e, t.width, t.height);
  1001. return f(e, t.width, t.height, .24 * t.height, {
  1002. strokeWidth: 2.5,
  1003. fill: "none"
  1004. }),
  1005. n
  1006. },
  1007. "bpmn:ExclusiveGateway": function(e, t) {
  1008. var r = g(e, t.width, t.height),
  1009. i = n.getScaledPath("GATEWAY_EXCLUSIVE", {
  1010. xScaleFactor: .4,
  1011. yScaleFactor: .4,
  1012. containerWidth: t.width,
  1013. containerHeight: t.height,
  1014. position: {
  1015. mx: .32,
  1016. my: .3
  1017. }
  1018. });
  1019. return s(t).isMarkerVisible && A(e, i, {
  1020. strokeWidth: 1,
  1021. fill: "black"
  1022. }),
  1023. r
  1024. },
  1025. "bpmn:ComplexGateway": function(e, t) {
  1026. var r = g(e, t.width, t.height),
  1027. i = n.getScaledPath("GATEWAY_COMPLEX", {
  1028. xScaleFactor: .5,
  1029. yScaleFactor: .5,
  1030. containerWidth: t.width,
  1031. containerHeight: t.height,
  1032. position: {
  1033. mx: .46,
  1034. my: .26
  1035. }
  1036. });
  1037. return A(e, i, {
  1038. strokeWidth: 1,
  1039. fill: "black"
  1040. }),
  1041. r
  1042. },
  1043. "bpmn:ParallelGateway": function(e, t) {
  1044. var r = g(e, t.width, t.height),
  1045. i = n.getScaledPath("GATEWAY_PARALLEL", {
  1046. xScaleFactor: .6,
  1047. yScaleFactor: .6,
  1048. containerWidth: t.width,
  1049. containerHeight: t.height,
  1050. position: {
  1051. mx: .46,
  1052. my: .2
  1053. }
  1054. });
  1055. return A(e, i, {
  1056. strokeWidth: 1,
  1057. fill: "black"
  1058. }),
  1059. r
  1060. },
  1061. "bpmn:EventBasedGateway": function(e, t) {
  1062. function r() {
  1063. var r = n.getScaledPath("GATEWAY_EVENT_BASED", {
  1064. xScaleFactor: .18,
  1065. yScaleFactor: .18,
  1066. containerWidth: t.width,
  1067. containerHeight: t.height,
  1068. position: {
  1069. mx: .36,
  1070. my: .44
  1071. }
  1072. });
  1073. A(e, r, {
  1074. strokeWidth: 2,
  1075. fill: "none"
  1076. })
  1077. }
  1078. var i = c(t),
  1079. o = g(e, t.width, t.height);
  1080. f(e, t.width, t.height, .2 * t.height, {
  1081. strokeWidth: 1,
  1082. fill: "none"
  1083. });
  1084. var a = i.eventGatewayType,
  1085. s = !!i.instantiate;
  1086. if ("Parallel" === a) {
  1087. var l = n.getScaledPath("GATEWAY_PARALLEL", {
  1088. xScaleFactor: .4,
  1089. yScaleFactor: .4,
  1090. containerWidth: t.width,
  1091. containerHeight: t.height,
  1092. position: {
  1093. mx: .474,
  1094. my: .296
  1095. }
  1096. }),
  1097. u = A(e, l);
  1098. u.attr({
  1099. strokeWidth: 1,
  1100. fill: "none"
  1101. })
  1102. } else if ("Exclusive" === a) {
  1103. if (!s) {
  1104. var p = f(e, t.width, t.height, .26 * t.height);
  1105. p.attr({
  1106. strokeWidth: 1,
  1107. fill: "none"
  1108. })
  1109. }
  1110. r()
  1111. }
  1112. return o
  1113. },
  1114. "bpmn:Gateway": function(e, t) {
  1115. return g(e, t.width, t.height)
  1116. },
  1117. "bpmn:SequenceFlow": function(e, t) {
  1118. var n = I(t),
  1119. r = A(e, n, {
  1120. strokeLinejoin: "round",
  1121. markerEnd: u("sequenceflow-end")
  1122. }),
  1123. i = c(t),
  1124. o = t.source.businessObject;
  1125. return i.conditionExpression && o.$instanceOf("bpmn:Activity") && r.attr({
  1126. markerStart: u("conditional-flow-marker")
  1127. }),
  1128. o.
  1129. default && (o.$instanceOf("bpmn:Gateway") || o.$instanceOf("bpmn:Activity")) && o.
  1130. default === i && r.attr({
  1131. markerStart: u("conditional-default-flow-marker")
  1132. }),
  1133. r
  1134. },
  1135. "bpmn:Association": function(e, t, n) {
  1136. var r = c(t);
  1137. return n = m({
  1138. strokeDasharray: "0.5, 5",
  1139. strokeLinecap: "round",
  1140. strokeLinejoin: "round"
  1141. },
  1142. n || {}),
  1143. "One" !== r.associationDirection && "Both" !== r.associationDirection || (n.markerEnd = u("association-end")),
  1144. "Both" === r.associationDirection && (n.markerStart = u("association-start")),
  1145. x(e, t.waypoints, n)
  1146. },
  1147. "bpmn:DataInputAssociation": function(e, t) {
  1148. return M("bpmn:Association")(e, t, {
  1149. markerEnd: u("association-end")
  1150. })
  1151. },
  1152. "bpmn:DataOutputAssociation": function(e, t) {
  1153. return M("bpmn:Association")(e, t, {
  1154. markerEnd: u("association-end")
  1155. })
  1156. },
  1157. "bpmn:MessageFlow": function(e, t) {
  1158. var r = c(t),
  1159. i = s(t),
  1160. o = I(t),
  1161. a = A(e, o, {
  1162. markerEnd: u("messageflow-end"),
  1163. markerStart: u("messageflow-start"),
  1164. strokeDasharray: "10, 12",
  1165. strokeLinecap: "round",
  1166. strokeLinejoin: "round",
  1167. strokeWidth: "1.5px"
  1168. });
  1169. if (r.messageRef) {
  1170. var l = a.getPointAtLength(a.getTotalLength() / 2),
  1171. p = n.getScaledPath("MESSAGE_FLOW_MARKER", {
  1172. abspos: {
  1173. x: l.x,
  1174. y: l.y
  1175. }
  1176. }),
  1177. f = {
  1178. strokeWidth: 1
  1179. };
  1180. "initiating" === i.messageVisibleKind ? (f.fill = "white", f.stroke = "black") : (f.fill = "#888", f.stroke = "white"),
  1181. A(e, p, f)
  1182. }
  1183. return a
  1184. },
  1185. "bpmn:DataObject": function(e, t) {
  1186. var r = n.getScaledPath("DATA_OBJECT_PATH", {
  1187. xScaleFactor: 1,
  1188. yScaleFactor: 1,
  1189. containerWidth: t.width,
  1190. containerHeight: t.height,
  1191. position: {
  1192. mx: .474,
  1193. my: .296
  1194. }
  1195. }),
  1196. i = A(e, r, {
  1197. fill: "white"
  1198. }),
  1199. o = c(t);
  1200. return a(o) && F(e, t),
  1201. i
  1202. },
  1203. "bpmn:DataObjectReference": S("bpmn:DataObject"),
  1204. "bpmn:DataInput": function(e, t) {
  1205. var r = n.getRawPath("DATA_ARROW"),
  1206. i = M("bpmn:DataObject")(e, t);
  1207. return A(e, r, {
  1208. strokeWidth: 1
  1209. }),
  1210. i
  1211. },
  1212. "bpmn:DataOutput": function(e, t) {
  1213. var r = n.getRawPath("DATA_ARROW"),
  1214. i = M("bpmn:DataObject")(e, t);
  1215. return A(e, r, {
  1216. strokeWidth: 1,
  1217. fill: "black"
  1218. }),
  1219. i
  1220. },
  1221. "bpmn:DataStoreReference": function(e, t) {
  1222. var r = n.getScaledPath("DATA_STORE", {
  1223. xScaleFactor: 1,
  1224. yScaleFactor: 1,
  1225. containerWidth: t.width,
  1226. containerHeight: t.height,
  1227. position: {
  1228. mx: 0,
  1229. my: .133
  1230. }
  1231. }),
  1232. i = A(e, r, {
  1233. strokeWidth: 2,
  1234. fill: "white"
  1235. });
  1236. return i
  1237. },
  1238. "bpmn:BoundaryEvent": function(e, t) {
  1239. var n = c(t),
  1240. r = n.cancelActivity,
  1241. i = {
  1242. strokeWidth: 1
  1243. };
  1244. r || (i.strokeDasharray = "6", i.strokeLinecap = "round");
  1245. var o = M("bpmn:Event")(e, t, i);
  1246. return f(e, t.width, t.height, R, m(i, {
  1247. fill: "none"
  1248. })),
  1249. P(t, e),
  1250. o
  1251. },
  1252. "bpmn:Group": function(e, t) {
  1253. return h(e, t.width, t.height, C, {
  1254. strokeWidth: 1,
  1255. strokeDasharray: "8,3,1,3",
  1256. fill: "none",
  1257. pointerEvents: "none"
  1258. })
  1259. },
  1260. label: function(e, t) {
  1261. var n = O(e, t),
  1262. r = n.getBBox();
  1263. return t.x = Math.round(t.x + t.width / 2) - Math.round(r.width / 2),
  1264. t.width = Math.ceil(r.width),
  1265. t.height = Math.ceil(r.height),
  1266. n.attr({
  1267. transform: "translate(" + -1 * r.x + ",0)"
  1268. }),
  1269. n
  1270. },
  1271. "bpmn:TextAnnotation": function(e, t) {
  1272. var r = {
  1273. fill: "none",
  1274. stroke: "none"
  1275. },
  1276. i = h(e, t.width, t.height, 0, 0, r),
  1277. o = n.getScaledPath("TEXT_ANNOTATION", {
  1278. xScaleFactor: 1,
  1279. yScaleFactor: 1,
  1280. containerWidth: t.width,
  1281. containerHeight: t.height,
  1282. position: {
  1283. mx: 0,
  1284. my: 0
  1285. }
  1286. });
  1287. A(e, o);
  1288. var a = c(t).text || "";
  1289. return D(e, a, {
  1290. box: t,
  1291. align: "left-middle",
  1292. padding: 5
  1293. }),
  1294. i
  1295. },
  1296. ParticipantMultiplicityMarker: function(e, t) {
  1297. var r = n.getScaledPath("MARKER_PARALLEL", {
  1298. xScaleFactor: 1,
  1299. yScaleFactor: 1,
  1300. containerWidth: t.width,
  1301. containerHeight: t.height,
  1302. position: {
  1303. mx: t.width / 2 / t.width,
  1304. my: (t.height - 15) / t.height
  1305. }
  1306. });
  1307. _("participant-multiplicity", e, r)
  1308. },
  1309. SubProcessMarker: function(e, t) {
  1310. var r = h(e, 14, 14, 0, {
  1311. strokeWidth: 1
  1312. });
  1313. r.transform("translate(" + (t.width / 2 - 7.5) + "," + (t.height - 20) + ")");
  1314. var i = n.getScaledPath("MARKER_SUB_PROCESS", {
  1315. xScaleFactor: 1.5,
  1316. yScaleFactor: 1.5,
  1317. containerWidth: t.width,
  1318. containerHeight: t.height,
  1319. position: {
  1320. mx: (t.width / 2 - 7.5) / t.width,
  1321. my: (t.height - 20) / t.height
  1322. }
  1323. });
  1324. _("sub-process", e, i)
  1325. },
  1326. ParallelMarker: function(e, t, r) {
  1327. var i = n.getScaledPath("MARKER_PARALLEL", {
  1328. xScaleFactor: 1,
  1329. yScaleFactor: 1,
  1330. containerWidth: t.width,
  1331. containerHeight: t.height,
  1332. position: {
  1333. mx: (t.width / 2 + r.parallel) / t.width,
  1334. my: (t.height - 20) / t.height
  1335. }
  1336. });
  1337. _("parallel", e, i)
  1338. },
  1339. SequentialMarker: function(e, t, r) {
  1340. var i = n.getScaledPath("MARKER_SEQUENTIAL", {
  1341. xScaleFactor: 1,
  1342. yScaleFactor: 1,
  1343. containerWidth: t.width,
  1344. containerHeight: t.height,
  1345. position: {
  1346. mx: (t.width / 2 + r.seq) / t.width,
  1347. my: (t.height - 19) / t.height
  1348. }
  1349. });
  1350. _("sequential", e, i)
  1351. },
  1352. CompensationMarker: function(e, t, r) {
  1353. var i = n.getScaledPath("MARKER_COMPENSATION", {
  1354. xScaleFactor: 1,
  1355. yScaleFactor: 1,
  1356. containerWidth: t.width,
  1357. containerHeight: t.height,
  1358. position: {
  1359. mx: (t.width / 2 + r.compensation) / t.width,
  1360. my: (t.height - 13) / t.height
  1361. }
  1362. });
  1363. _("compensation", e, i, {
  1364. strokeWidth: 1
  1365. })
  1366. },
  1367. LoopMarker: function(e, t, r) {
  1368. var i = n.getScaledPath("MARKER_LOOP", {
  1369. xScaleFactor: 1,
  1370. yScaleFactor: 1,
  1371. containerWidth: t.width,
  1372. containerHeight: t.height,
  1373. position: {
  1374. mx: (t.width / 2 + r.loop) / t.width,
  1375. my: (t.height - 7) / t.height
  1376. }
  1377. });
  1378. _("loop", e, i, {
  1379. strokeWidth: 1,
  1380. fill: "none",
  1381. strokeLinecap: "round",
  1382. strokeMiterlimit: .5
  1383. })
  1384. },
  1385. AdhocMarker: function(e, t, r) {
  1386. var i = n.getScaledPath("MARKER_ADHOC", {
  1387. xScaleFactor: 1,
  1388. yScaleFactor: 1,
  1389. containerWidth: t.width,
  1390. containerHeight: t.height,
  1391. position: {
  1392. mx: (t.width / 2 + r.adhoc) / t.width,
  1393. my: (t.height - 15) / t.height
  1394. }
  1395. });
  1396. _("adhoc", e, i, {
  1397. strokeWidth: 1,
  1398. fill: "black"
  1399. })
  1400. }
  1401. };
  1402. e.on("canvas.init",
  1403. function(e) {
  1404. p(e.svg)
  1405. })
  1406. }
  1407. function i(e, t, n) {
  1408. function r(e, t) {
  1409. return g(t,
  1410. function(t, n) {
  1411. return e[n] == t
  1412. })
  1413. }
  1414. return x(e.eventDefinitions,
  1415. function(i) {
  1416. return i.$type === t && r(e, n)
  1417. })
  1418. }
  1419. function o(e) {
  1420. return "bpmn:IntermediateThrowEvent" === e.$type || "bpmn:EndEvent" === e.$type
  1421. }
  1422. function a(e) {
  1423. return e.isCollection || e.elementObjectRef && e.elementObjectRef.isCollection
  1424. }
  1425. function s(e) {
  1426. return e.businessObject.di
  1427. }
  1428. function c(e) {
  1429. return e.businessObject
  1430. }
  1431. function l(e) {
  1432. var t = e.x + e.width / 2,
  1433. n = e.y + e.height / 2,
  1434. r = e.width / 2,
  1435. i = [["M", t, n], ["m", 0, -r], ["a", r, r, 0, 1, 1, 0, 2 * r], ["a", r, r, 0, 1, 1, 0, -2 * r], ["z"]];
  1436. return S(i)
  1437. }
  1438. function u(e, t) {
  1439. var n = e.x,
  1440. r = e.y,
  1441. i = e.width,
  1442. o = e.height,
  1443. a = [["M", n + t, r], ["l", i - 2 * t, 0], ["a", t, t, 0, 0, 1, t, t], ["l", 0, o - 2 * t], ["a", t, t, 0, 0, 1, -t, t], ["l", 2 * t - i, 0], ["a", t, t, 0, 0, 1, -t, -t], ["l", 0, 2 * t - o], ["a", t, t, 0, 0, 1, t, -t], ["z"]];
  1444. return S(a)
  1445. }
  1446. function p(e) {
  1447. var t = e.width,
  1448. n = e.height,
  1449. r = e.x,
  1450. i = e.y,
  1451. o = t / 2,
  1452. a = n / 2,
  1453. s = [["M", r + o, i], ["l", o, a], ["l", -o, a], ["l", -o, -a], ["z"]];
  1454. return S(s)
  1455. }
  1456. function f(e) {
  1457. var t = e.x,
  1458. n = e.y,
  1459. r = e.width,
  1460. i = e.height,
  1461. o = [["M", t, n], ["l", r, 0], ["l", 0, i], ["l", -r, 0], ["z"]];
  1462. return S(o)
  1463. }
  1464. var h = e(77),
  1465. d = e(192),
  1466. m = e(197),
  1467. y = e(83),
  1468. g = e(80),
  1469. v = e(85),
  1470. x = e(88),
  1471. b = e(44),
  1472. E = e(69),
  1473. w = e(11),
  1474. A = e(13).is,
  1475. _ = e(68),
  1476. S = _.componentsToPath,
  1477. T = _.createLine,
  1478. C = 10,
  1479. R = 3,
  1480. N = {
  1481. fontFamily: "Arial, sans-serif",
  1482. fontSize: "12px"
  1483. };
  1484. h(r, b),
  1485. r.$inject = ["eventBus", "styles", "pathMap"],
  1486. t.exports = r,
  1487. r.prototype.canRender = function(e) {
  1488. return A(e, "bpmn:BaseElement")
  1489. },
  1490. r.prototype.drawShape = function(e, t) {
  1491. var n = t.type,
  1492. r = this.handlers[n];
  1493. return r(e, t)
  1494. },
  1495. r.prototype.drawConnection = function(e, t) {
  1496. var n = t.type,
  1497. r = this.handlers[n];
  1498. return r(e, t)
  1499. },
  1500. r.prototype.getShapePath = function(e) {
  1501. return A(e, "bpmn:Event") ? l(e) : A(e, "bpmn:Activity") ? u(e, C) : A(e, "bpmn:Gateway") ? p(e) : f(e)
  1502. }
  1503. },
  1504. {
  1505. 11 : 11,
  1506. 13 : 13,
  1507. 192 : 192,
  1508. 197 : 197,
  1509. 44 : 44,
  1510. 68 : 68,
  1511. 69 : 69,
  1512. 77 : 77,
  1513. 80 : 80,
  1514. 83 : 83,
  1515. 85 : 85,
  1516. 88 : 88
  1517. }],
  1518. 4 : [function(e, t, n) {
  1519. "use strict";
  1520. function r() {
  1521. this.pathMap = {
  1522. EVENT_MESSAGE: {
  1523. d: "m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",
  1524. height: 36,
  1525. width: 36,
  1526. heightElements: [6, 14],
  1527. widthElements: [10.5, 21]
  1528. },
  1529. EVENT_SIGNAL: {
  1530. d: "M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",
  1531. height: 36,
  1532. width: 36,
  1533. heightElements: [18],
  1534. widthElements: [10, 20]
  1535. },
  1536. EVENT_ESCALATION: {
  1537. d: "M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",
  1538. height: 36,
  1539. width: 36,
  1540. heightElements: [20, 7],
  1541. widthElements: [8]
  1542. },
  1543. EVENT_CONDITIONAL: {
  1544. d: "M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",
  1545. height: 36,
  1546. width: 36,
  1547. heightElements: [8.5, 14.5, 18, 11.5, 14.5, 17.5, 20.5, 23.5, 26.5],
  1548. widthElements: [10.5, 14.5, 12.5]
  1549. },
  1550. EVENT_LINK: {
  1551. d: "m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",
  1552. height: 36,
  1553. width: 36,
  1554. heightElements: [4.4375, 6.75, 7.8125],
  1555. widthElements: [9.84375, 13.5]
  1556. },
  1557. EVENT_ERROR: {
  1558. d: "m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",
  1559. height: 36,
  1560. width: 36,
  1561. heightElements: [.023, 8.737, 8.151, 16.564, 10.591, 8.714],
  1562. widthElements: [.085, 6.672, 6.97, 4.273, 5.337, 6.636]
  1563. },
  1564. EVENT_CANCEL_45: {
  1565. d: "m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",
  1566. height: 36,
  1567. width: 36,
  1568. heightElements: [4.75, 8.5],
  1569. widthElements: [4.75, 8.5]
  1570. },
  1571. EVENT_COMPENSATION: {
  1572. d: "m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",
  1573. height: 36,
  1574. width: 36,
  1575. heightElements: [6.5, 13, .4, 6.1],
  1576. widthElements: [9, 9.3, 8.7]
  1577. },
  1578. EVENT_TIMER_WH: {
  1579. d: "M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",
  1580. height: 36,
  1581. width: 36,
  1582. heightElements: [10, 2],
  1583. widthElements: [3, 7]
  1584. },
  1585. EVENT_TIMER_LINE: {
  1586. d: "M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",
  1587. height: 36,
  1588. width: 36,
  1589. heightElements: [10, 3],
  1590. widthElements: [0, 0]
  1591. },
  1592. EVENT_MULTIPLE: {
  1593. d: "m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",
  1594. height: 36,
  1595. width: 36,
  1596. heightElements: [6.28099, 12.56199],
  1597. widthElements: [3.1405, 9.42149, 12.56198]
  1598. },
  1599. EVENT_PARALLEL_MULTIPLE: {
  1600. d: "m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",
  1601. height: 36,
  1602. width: 36,
  1603. heightElements: [2.56228, 7.68683],
  1604. widthElements: [2.56228, 7.68683]
  1605. },
  1606. GATEWAY_EXCLUSIVE: {
  1607. d: "m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",
  1608. height: 17.5,
  1609. width: 17.5,
  1610. heightElements: [8.5, 6.5312, -6.5312, -8.5],
  1611. widthElements: [6.5, -6.5, 3, -3, 5, -5]
  1612. },
  1613. GATEWAY_PARALLEL: {
  1614. d: "m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",
  1615. height: 30,
  1616. width: 30,
  1617. heightElements: [5, 12.5],
  1618. widthElements: [5, 12.5]
  1619. },
  1620. GATEWAY_EVENT_BASED: {
  1621. d: "m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",
  1622. height: 11,
  1623. width: 11,
  1624. heightElements: [ - 6, 6, 12, -12],
  1625. widthElements: [9, -3, -12]
  1626. },
  1627. GATEWAY_COMPLEX: {
  1628. d: "m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",
  1629. height: 17.125,
  1630. width: 17.125,
  1631. heightElements: [4.875, 3.4375, 2.125, 3],
  1632. widthElements: [3.4375, 2.125, 4.875, 3]
  1633. },
  1634. DATA_OBJECT_PATH: {
  1635. d: "m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",
  1636. height: 61,
  1637. width: 51,
  1638. heightElements: [10, 50, 60],
  1639. widthElements: [10, 40, 50, 60]
  1640. },
  1641. DATA_OBJECT_COLLECTION_PATH: {
  1642. d: "m {mx}, {my} m 0 15 l 0 -15 m 4 15 l 0 -15 m 4 15 l 0 -15 ",
  1643. height: 61,
  1644. width: 51,
  1645. heightElements: [12],
  1646. widthElements: [1, 6, 12, 15]
  1647. },
  1648. DATA_ARROW: {
  1649. d: "m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",
  1650. height: 61,
  1651. width: 51,
  1652. heightElements: [],
  1653. widthElements: []
  1654. },
  1655. DATA_STORE: {
  1656. d: "m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",
  1657. height: 61,
  1658. width: 61,
  1659. heightElements: [7, 10, 45],
  1660. widthElements: [2, 58, 60]
  1661. },
  1662. TEXT_ANNOTATION: {
  1663. d: "m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",
  1664. height: 30,
  1665. width: 10,
  1666. heightElements: [30],
  1667. widthElements: [10]
  1668. },
  1669. MARKER_SUB_PROCESS: {
  1670. d: "m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",
  1671. height: 10,
  1672. width: 10,
  1673. heightElements: [],
  1674. widthElements: []
  1675. },
  1676. MARKER_PARALLEL: {
  1677. d: "m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",
  1678. height: 10,
  1679. width: 10,
  1680. heightElements: [],
  1681. widthElements: []
  1682. },
  1683. MARKER_SEQUENTIAL: {
  1684. d: "m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",
  1685. height: 10,
  1686. width: 10,
  1687. heightElements: [],
  1688. widthElements: []
  1689. },
  1690. MARKER_COMPENSATION: {
  1691. d: "m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",
  1692. height: 10,
  1693. width: 21,
  1694. heightElements: [],
  1695. widthElements: []
  1696. },
  1697. MARKER_LOOP: {
  1698. d: "m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",
  1699. height: 13.9,
  1700. width: 13.7,
  1701. heightElements: [],
  1702. widthElements: []
  1703. },
  1704. MARKER_ADHOC: {
  1705. d: "m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",
  1706. height: 4,
  1707. width: 15,
  1708. heightElements: [],
  1709. widthElements: []
  1710. },
  1711. TASK_TYPE_SEND: {
  1712. d: "m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",
  1713. height: 14,
  1714. width: 21,
  1715. heightElements: [6, 14],
  1716. widthElements: [10.5, 21]
  1717. },
  1718. TASK_TYPE_SCRIPT: {
  1719. d: "m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",
  1720. height: 15,
  1721. width: 12.6,
  1722. heightElements: [6, 14],
  1723. widthElements: [10.5, 21]
  1724. },
  1725. TASK_TYPE_USER_1: {
  1726. d: "m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"
  1727. },
  1728. TASK_TYPE_USER_2: {
  1729. d: "m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "
  1730. },
  1731. TASK_TYPE_USER_3: {
  1732. d: "m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"
  1733. },
  1734. TASK_TYPE_MANUAL: {
  1735. d: "m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"
  1736. },
  1737. TASK_TYPE_INSTANTIATING_SEND: {
  1738. d: "m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"
  1739. },
  1740. TASK_TYPE_SERVICE: {
  1741. d: "m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"
  1742. },
  1743. TASK_TYPE_SERVICE_FILL: {
  1744. d: "m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"
  1745. },
  1746. TASK_TYPE_BUSINESS_RULE_HEADER: {
  1747. d: "m {mx},{my} 0,4 20,0 0,-4 z"
  1748. },
  1749. TASK_TYPE_BUSINESS_RULE_MAIN: {
  1750. d: "m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"
  1751. },
  1752. MESSAGE_FLOW_MARKER: {
  1753. d: "m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"
  1754. }
  1755. },
  1756. this.getRawPath = function(e) {
  1757. return this.pathMap[e].d
  1758. },
  1759. this.getScaledPath = function(e, t) {
  1760. var n, r, o = this.pathMap[e];
  1761. t.abspos ? (n = t.abspos.x, r = t.abspos.y) : (n = t.containerWidth * t.position.mx, r = t.containerHeight * t.position.my);
  1762. var a = {};
  1763. if (t.position) {
  1764. for (var s = t.containerHeight / o.height * t.yScaleFactor,
  1765. c = t.containerWidth / o.width * t.xScaleFactor,
  1766. l = 0; l < o.heightElements.length; l++) a["y" + l] = o.heightElements[l] * s;
  1767. for (var u = 0; u < o.widthElements.length; u++) a["x" + u] = o.widthElements[u] * c
  1768. }
  1769. var p = i.format(o.d, {
  1770. mx: n,
  1771. my: r,
  1772. e: a
  1773. });
  1774. return p
  1775. }
  1776. }
  1777. var i = e(76);
  1778. t.exports = r
  1779. },
  1780. {
  1781. 76 : 76
  1782. }],
  1783. 5 : [function(e, t, n) {
  1784. t.exports = {
  1785. __init__: ["bpmnRenderer"],
  1786. bpmnRenderer: ["type", e(3)],
  1787. pathMap: ["type", e(4)]
  1788. }
  1789. },
  1790. {
  1791. 3 : 3,
  1792. 4 : 4
  1793. }],
  1794. 6 : [function(e, t, n) {
  1795. "use strict";
  1796. function r(e, t) {
  1797. return s({
  1798. id: e.id,
  1799. type: e.$type,
  1800. businessObject: e
  1801. },
  1802. t)
  1803. }
  1804. function i(e) {
  1805. return c(e,
  1806. function(e) {
  1807. return {
  1808. x: e.x,
  1809. y: e.y
  1810. }
  1811. })
  1812. }
  1813. function o(e, t, n, r) {
  1814. return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn", {
  1815. element: d(n),
  1816. referenced: d(t),
  1817. property: r
  1818. }))
  1819. }
  1820. function a(e, t, n, r, i) {
  1821. this._eventBus = e,
  1822. this._canvas = t,
  1823. this._elementFactory = n,
  1824. this._elementRegistry = r,
  1825. this._translate = i
  1826. }
  1827. var s = e(197),
  1828. c = e(86),
  1829. l = e(12),
  1830. u = e(13).is,
  1831. p = l.hasExternalLabel,
  1832. f = l.getExternalLabelBounds,
  1833. h = e(11).isExpanded,
  1834. d = e(9).elementToString;
  1835. a.$inject = ["eventBus", "canvas", "elementFactory", "elementRegistry", "translate"],
  1836. t.exports = a,
  1837. a.prototype.add = function(e, t) {
  1838. var n, o, a = e.di,
  1839. s = this._translate;
  1840. if (u(a, "bpmndi:BPMNPlane")) n = this._elementFactory.createRoot(r(e)),
  1841. this._canvas.setRootElement(n);
  1842. else if (u(a, "bpmndi:BPMNShape")) {
  1843. var c = !h(e);
  1844. o = t && (t.hidden || t.collapsed);
  1845. var l = e.di.bounds;
  1846. n = this._elementFactory.createShape(r(e, {
  1847. collapsed: c,
  1848. hidden: o,
  1849. x: Math.round(l.x),
  1850. y: Math.round(l.y),
  1851. width: Math.round(l.width),
  1852. height: Math.round(l.height)
  1853. })),
  1854. u(e, "bpmn:BoundaryEvent") && this._attachBoundary(e, n),
  1855. this._canvas.addShape(n, t)
  1856. } else {
  1857. if (!u(a, "bpmndi:BPMNEdge")) throw new Error(s("unknown di {di} for element {semantic}", {
  1858. di: d(a),
  1859. semantic: d(e)
  1860. }));
  1861. var f = this._getSource(e),
  1862. m = this._getTarget(e);
  1863. o = t && (t.hidden || t.collapsed),
  1864. n = this._elementFactory.createConnection(r(e, {
  1865. hidden: o,
  1866. source: f,
  1867. target: m,
  1868. waypoints: i(e.di.waypoint)
  1869. })),
  1870. (u(e, "bpmn:DataInputAssociation") || u(e, "bpmn:DataOutputAssociation")) && (t = null),
  1871. this._canvas.addConnection(n, t)
  1872. }
  1873. return p(e) && this.addLabel(e, n),
  1874. this._eventBus.fire("bpmnElement.added", {
  1875. element: n
  1876. }),
  1877. n
  1878. },
  1879. a.prototype._attachBoundary = function(e, t) {
  1880. var n = this._translate,
  1881. r = e.attachedToRef;
  1882. if (!r) throw new Error(n("missing {semantic}#attachedToRef", {
  1883. semantic: d(e)
  1884. }));
  1885. var i = this._elementRegistry.get(r.id),
  1886. a = i && i.attachers;
  1887. if (!i) throw o(n, e, r, "attachedToRef");
  1888. t.host = i,
  1889. a || (i.attachers = a = []),
  1890. a.indexOf(t) === -1 && a.push(t)
  1891. },
  1892. a.prototype.addLabel = function(e, t) {
  1893. var n = f(e, t),
  1894. i = this._elementFactory.createLabel(r(e, {
  1895. id: e.id + "_label",
  1896. labelTarget: t,
  1897. type: "label",
  1898. hidden: t.hidden || !e.name,
  1899. x: Math.round(n.x),
  1900. y: Math.round(n.y),
  1901. width: Math.round(n.width),
  1902. height: Math.round(n.height)
  1903. }));
  1904. return this._canvas.addShape(i, t.parent)
  1905. },
  1906. a.prototype._getEnd = function(e, t) {
  1907. var n, r, i = e.$type,
  1908. a = this._translate;
  1909. if (r = e[t + "Ref"], "source" === t && "bpmn:DataInputAssociation" === i && (r = r && r[0]), ("source" === t && "bpmn:DataOutputAssociation" === i || "target" === t && "bpmn:DataInputAssociation" === i) && (r = e.$parent), n = r && this._getElement(r)) return n;
  1910. throw r ? o(a, e, r, t + "Ref") : new Error(a("{semantic}#{side} Ref not specified", {
  1911. semantic: d(e),
  1912. side: t
  1913. }))
  1914. },
  1915. a.prototype._getSource = function(e) {
  1916. return this._getEnd(e, "source")
  1917. },
  1918. a.prototype._getTarget = function(e) {
  1919. return this._getEnd(e, "target")
  1920. },
  1921. a.prototype._getElement = function(e) {
  1922. return this._elementRegistry.get(e.id)
  1923. }
  1924. },
  1925. {
  1926. 11 : 11,
  1927. 12 : 12,
  1928. 13 : 13,
  1929. 197 : 197,
  1930. 86 : 86,
  1931. 9 : 9
  1932. }],
  1933. 7 : [function(e, t, n) {
  1934. "use strict";
  1935. function r(e, t) {
  1936. return e.$instanceOf(t)
  1937. }
  1938. function i(e) {
  1939. return s(e.rootElements,
  1940. function(e) {
  1941. return r(e, "bpmn:Process") || r(e, "bpmn:Collaboration")
  1942. })
  1943. }
  1944. function o(e, t) {
  1945. function n(e, t) {
  1946. return function(n) {
  1947. e(n, t)
  1948. }
  1949. }
  1950. function o(e) {
  1951. z[e.id] = e
  1952. }
  1953. function s(e) {
  1954. return z[e.id]
  1955. }
  1956. function l(n, r) {
  1957. var i = n.gfx;
  1958. if (i) throw new Error(t("already rendered {element}", {
  1959. element: u(n)
  1960. }));
  1961. return e.element(n, r)
  1962. }
  1963. function f(t, n) {
  1964. return e.root(t, n)
  1965. }
  1966. function h(e, n) {
  1967. try {
  1968. var r = e.di && l(e, n);
  1969. return o(e),
  1970. r
  1971. } catch(n) {
  1972. d(n.message, {
  1973. element: e,
  1974. error: n
  1975. }),
  1976. console.error(t("failed to import {element}", {
  1977. element: u(e)
  1978. })),
  1979. console.error(n)
  1980. }
  1981. }
  1982. function d(t, n) {
  1983. e.error(t, n)
  1984. }
  1985. function m(e) {
  1986. var n = e.bpmnElement;
  1987. n ? n.di ? d(t("multiple DI elements defined for {element}", {
  1988. element: u(n)
  1989. }), {
  1990. element: n
  1991. }) : (p.bind(n, "di"), n.di = e) : d(t("no bpmnElement referenced in {element}", {
  1992. element: u(e)
  1993. }), {
  1994. element: e
  1995. })
  1996. }
  1997. function y(e) {
  1998. g(e.plane)
  1999. }
  2000. function g(e) {
  2001. m(e),
  2002. c(e.planeElement, v)
  2003. }
  2004. function v(e) {
  2005. m(e)
  2006. }
  2007. function x(e, n) {
  2008. var o = e.diagrams;
  2009. if (n && o.indexOf(n) === -1) throw new Error(t("diagram not part of bpmn:Definitions"));
  2010. if (!n && o && o.length && (n = o[0]), !n) throw new Error(t("no diagram to display"));
  2011. y(n);
  2012. var a = n.plane;
  2013. if (!a) throw new Error(t("no plane for {element}", {
  2014. element: u(n)
  2015. }));
  2016. var s = a.bpmnElement;
  2017. if (!s) {
  2018. if (s = i(e), !s) throw new Error(t("no process or collaboration to display"));
  2019. d(t("correcting missing bpmnElement on {plane} to {rootElement}", {
  2020. plane: u(a),
  2021. rootElement: u(s)
  2022. })),
  2023. a.bpmnElement = s,
  2024. m(a)
  2025. }
  2026. var c = f(s, a);
  2027. if (r(s, "bpmn:Process")) E(s, c);
  2028. else {
  2029. if (!r(s, "bpmn:Collaboration")) throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}", {
  2030. plane: u(a),
  2031. rootElement: u(s)
  2032. }));
  2033. U(s, c),
  2034. w(e.rootElements, c)
  2035. }
  2036. b(q)
  2037. }
  2038. function b(e) {
  2039. c(e,
  2040. function(e) {
  2041. e()
  2042. })
  2043. }
  2044. function E(e, t) {
  2045. j(e, t),
  2046. M(e.ioSpecification, t),
  2047. N(e.artifacts, t),
  2048. o(e)
  2049. }
  2050. function w(e) {
  2051. var t = a(e,
  2052. function(e) {
  2053. return ! s(e) && r(e, "bpmn:Process") && e.laneSets
  2054. });
  2055. t.forEach(n(E))
  2056. }
  2057. function A(e, t) {
  2058. h(e, t)
  2059. }
  2060. function _(e, t) {
  2061. c(e, n(A, t))
  2062. }
  2063. function S(e, t) {
  2064. h(e, t)
  2065. }
  2066. function T(e, t) {
  2067. h(e, t)
  2068. }
  2069. function C(e, t) {
  2070. h(e, t)
  2071. }
  2072. function R(e, t) {
  2073. h(e, t)
  2074. }
  2075. function N(e, t) {
  2076. c(e,
  2077. function(e) {
  2078. r(e, "bpmn:Association") ? q.push(function() {
  2079. R(e, t)
  2080. }) : R(e, t)
  2081. })
  2082. }
  2083. function M(e, t) {
  2084. e && (c(e.dataInputs, n(T, t)), c(e.dataOutputs, n(C, t)))
  2085. }
  2086. function P(e, t) {
  2087. j(e, t),
  2088. N(e.artifacts, t)
  2089. }
  2090. function D(e, t) {
  2091. var i = h(e, t);
  2092. r(e, "bpmn:SubProcess") && P(e, i || t),
  2093. r(e, "bpmn:Activity") && M(e.ioSpecification, t),
  2094. q.push(function() {
  2095. c(e.dataInputAssociations, n(S, t)),
  2096. c(e.dataOutputAssociations, n(S, t))
  2097. })
  2098. }
  2099. function k(e, t) {
  2100. h(e, t)
  2101. }
  2102. function O(e, t) {
  2103. h(e, t)
  2104. }
  2105. function B(e, t) {
  2106. h(e, t)
  2107. }
  2108. function I(e, t) {
  2109. var n = h(e, t);
  2110. e.childLaneSet && L(e.childLaneSet, n || t),
  2111. W(e)
  2112. }
  2113. function L(e, t) {
  2114. c(e.lanes, n(I, t))
  2115. }
  2116. function F(e, t) {
  2117. c(e, n(L, t))
  2118. }
  2119. function j(e, t) {
  2120. e.laneSets && F(e.laneSets, t),
  2121. V(e.flowElements, t)
  2122. }
  2123. function V(e, n) {
  2124. c(e,
  2125. function(e) {
  2126. r(e, "bpmn:SequenceFlow") ? q.push(function() {
  2127. k(e, n)
  2128. }) : r(e, "bpmn:BoundaryEvent") ? q.unshift(function() {
  2129. B(e, n)
  2130. }) : r(e, "bpmn:FlowNode") ? D(e, n) : r(e, "bpmn:DataObject") || (r(e, "bpmn:DataStoreReference") ? O(e, n) : r(e, "bpmn:DataObjectReference") ? O(e, n) : d(t("unrecognized flowElement {element} in context {context}", {
  2131. element: u(e),
  2132. context: n ? u(n.businessObject) : "null"
  2133. }), {
  2134. element: e,
  2135. context: n
  2136. }))
  2137. })
  2138. }
  2139. function G(e, t) {
  2140. var n = h(e, t),
  2141. r = e.processRef;
  2142. r && E(r, n || t)
  2143. }
  2144. function U(e) {
  2145. c(e.participants, n(G)),
  2146. N(e.artifacts),
  2147. q.push(function() {
  2148. _(e.messageFlows)
  2149. })
  2150. }
  2151. function W(e) {
  2152. c(e.flowNodeRef,
  2153. function(t) {
  2154. var n = t.get("lanes");
  2155. n && n.push(e)
  2156. })
  2157. }
  2158. var z = {},
  2159. q = [];
  2160. return {
  2161. handleDefinitions: x
  2162. }
  2163. }
  2164. var a = e(81),
  2165. s = e(82),
  2166. c = e(83),
  2167. l = e(224),
  2168. u = e(9).elementToString,
  2169. p = new l({
  2170. name: "bpmnElement",
  2171. enumerable: !0
  2172. },
  2173. {
  2174. name: "di"
  2175. });
  2176. t.exports = o
  2177. },
  2178. {
  2179. 224 : 224,
  2180. 81 : 81,
  2181. 82 : 82,
  2182. 83 : 83,
  2183. 9 : 9
  2184. }],
  2185. 8 : [function(e, t, n) {
  2186. "use strict";
  2187. function r(e, t, n) {
  2188. function r(e) {
  2189. var t = {
  2190. root: function(e) {
  2191. return a.add(e)
  2192. },
  2193. element: function(e, t) {
  2194. return a.add(e, t)
  2195. },
  2196. error: function(e, t) {
  2197. l.push({
  2198. message: e,
  2199. context: t
  2200. })
  2201. }
  2202. },
  2203. n = new i(t, c);
  2204. n.handleDefinitions(e)
  2205. }
  2206. var o, a = e.get("bpmnImporter"),
  2207. s = e.get("eventBus"),
  2208. c = e.get("translate"),
  2209. l = [];
  2210. s.fire("import.render.start", {
  2211. definitions: t
  2212. });
  2213. try {
  2214. r(t)
  2215. } catch(e) {
  2216. o = e
  2217. }
  2218. s.fire("import.render.complete", {
  2219. error: o,
  2220. warnings: l
  2221. }),
  2222. n(o, l)
  2223. }
  2224. var i = e(7);
  2225. t.exports.importBpmnDiagram = r
  2226. },
  2227. {
  2228. 7 : 7
  2229. }],
  2230. 9 : [function(e, t, n) {
  2231. "use strict";
  2232. t.exports.elementToString = function(e) {
  2233. return e ? "<" + e.$type + (e.id ? ' id="' + e.id: "") + '" />': "<null>"
  2234. }
  2235. },
  2236. {}],
  2237. 10 : [function(e, t, n) {
  2238. t.exports = {
  2239. __depends__: [e(58)],
  2240. bpmnImporter: ["type", e(6)]
  2241. }
  2242. },
  2243. {
  2244. 58 : 58,
  2245. 6 : 6
  2246. }],
  2247. 11 : [function(e, t, n) {
  2248. "use strict";
  2249. var r = e(13).is,
  2250. i = e(13).getBusinessObject;
  2251. t.exports.isExpanded = function(e) {
  2252. return ! r(e, "bpmn:CallActivity") && (r(e, "bpmn:SubProcess") ? !!i(e).di.isExpanded: !r(e, "bpmn:Participant") || !!i(e).processRef)
  2253. },
  2254. t.exports.isInterrupting = function(e) {
  2255. return e && i(e).isInterrupting !== !1
  2256. },
  2257. t.exports.isEventSubProcess = function(e) {
  2258. return e && !!i(e).triggeredByEvent
  2259. }
  2260. },
  2261. {
  2262. 13 : 13
  2263. }],
  2264. 12 : [function(e, t, n) {
  2265. "use strict";
  2266. function r(e) {
  2267. var t = e.length / 2 - 1,
  2268. n = e[Math.floor(t)],
  2269. r = e[Math.ceil(t + .01)],
  2270. o = i(e),
  2271. a = Math.atan((r.y - n.y) / (r.x - n.x)),
  2272. s = o.x,
  2273. c = o.y;
  2274. return Math.abs(a) < Math.PI / 2 ? c -= l: s += l,
  2275. {
  2276. x: s,
  2277. y: c
  2278. }
  2279. }
  2280. function i(e) {
  2281. var t = e.length / 2 - 1,
  2282. n = e[Math.floor(t)],
  2283. r = e[Math.ceil(t + .01)];
  2284. return {
  2285. x: n.x + (r.x - n.x) / 2,
  2286. y: n.y + (r.y - n.y) / 2
  2287. }
  2288. }
  2289. function o(e) {
  2290. return e.waypoints ? r(e.waypoints) : {
  2291. x: e.x + e.width / 2,
  2292. y: e.y + e.height + c.height / 2
  2293. }
  2294. }
  2295. var a = e(197),
  2296. s = e(13).is,
  2297. c = t.exports.DEFAULT_LABEL_SIZE = {
  2298. width: 90,
  2299. height: 20
  2300. },
  2301. l = t.exports.FLOW_LABEL_INDENT = 15;
  2302. t.exports.hasExternalLabel = function(e) {
  2303. return s(e, "bpmn:Event") || s(e, "bpmn:Gateway") || s(e, "bpmn:DataStoreReference") || s(e, "bpmn:DataObjectReference") || s(e, "bpmn:SequenceFlow") || s(e, "bpmn:MessageFlow")
  2304. },
  2305. t.exports.getFlowLabelPosition = r,
  2306. t.exports.getWaypointsMid = i,
  2307. t.exports.getExternalLabelMid = o,
  2308. t.exports.getExternalLabelBounds = function(e, t) {
  2309. var n, r, i, s = e.di,
  2310. l = s.label;
  2311. return l && l.bounds ? (i = l.bounds, r = {
  2312. width: Math.max(c.width, i.width),
  2313. height: i.height
  2314. },
  2315. n = {
  2316. x: i.x + i.width / 2,
  2317. y: i.y + i.height / 2
  2318. }) : (n = o(t), r = c),
  2319. a({
  2320. x: n.x - r.width / 2,
  2321. y: n.y - r.height / 2
  2322. },
  2323. r)
  2324. }
  2325. },
  2326. {
  2327. 13 : 13,
  2328. 197 : 197
  2329. }],
  2330. 13 : [function(e, t, n) {
  2331. "use strict";
  2332. function r(e, t) {
  2333. var n = i(e);
  2334. return n && "function" == typeof n.$instanceOf && n.$instanceOf(t)
  2335. }
  2336. function i(e) {
  2337. return e && e.businessObject || e
  2338. }
  2339. t.exports.is = r,
  2340. t.exports.getBusinessObject = i
  2341. },
  2342. {}],
  2343. 14 : [function(e, t, n) {
  2344. "use strict";
  2345. function r(e) {
  2346. return e.join(";")
  2347. }
  2348. function i() {
  2349. o || (o = a(f), s.bind(o, ".backdrop", "click",
  2350. function(e) {
  2351. document.body.removeChild(o)
  2352. })),
  2353. document.body.appendChild(o)
  2354. }
  2355. var o, a = e(212),
  2356. s = e(211),
  2357. c = t.exports.BPMNIO_LOGO = "iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRFiMte9PrwldFwfcZPqtqN0+zEyOe1XLgjvuKncsJAZ70y6fXh3vDT////UrQV////G2zN+AAAABB0Uk5T////////////////////AOAjXRkAAAHDSURBVHjavJZJkoUgDEBJmAX8979tM8u3E6x20VlYJfFFMoL4vBDxATxZcakIOJTWSmxvKWVIkJ8jHvlRv1F2LFrVISCZI+tCtQx+XfewgVTfyY3plPiQEAzI3zWy+kR6NBhFBYeBuscJLOUuA2WVLpCjVIaFzrNQZArxAZKUQm6gsj37L9Cb7dnIBUKxENaaMJQqMpDXvSL+ktxdGRm2IsKgJGGPg7atwUG5CcFUEuSv+CwQqizTrvDTNXdMU2bMiDWZd8d7QIySWVRsb2vBBioxOFt4OinPBapL+neAb5KL5IJ8szOza2/DYoipUCx+CjO0Bpsv0V6mktNZ+k8rlABlWG0FrOpKYVo8DT3dBeLEjUBAj7moDogVii7nSS9QzZnFcOVBp1g2PyBQ3Vr5aIapN91VJy33HTJLC1iX2FY6F8gRdaAeIEfVONgtFCzZTmoLEdOjBDfsIOA6128gw3eu1shAajdZNAORxuQDJN5A5PbEG6gNIu24QJD5iNyRMZIr6bsHbCtCU/OaOaSvgkUyDMdDa1BXGf5HJ1To+/Ym6mCKT02Y+/Sa126ZKyd3jxhzpc1r8zVL6YM1Qy/kR4ABAFJ6iQUnivhAAAAAAElFTkSuQmCC",
  2358. l = r(["z-index: 1001", "position: fixed", "top: 0", "left: 0", "right: 0", "bottom: 0"]),
  2359. u = r(["width: 100%", "height: 100%", "background: rgba(0,0,0,0.2)"]),
  2360. p = r(["position: absolute", "left: 50%", "top: 40%", "margin: 0 -130px", "width: 260px", "padding: 10px", "background: white", "border: solid 1px #AAA", "border-radius: 3px", "font-family: Helvetica, Arial, sans-serif", "font-size: 14px", "line-height: 1.2em"]),
  2361. f = '<div class="bjs-powered-by-lightbox" style="' + l + '"><div class="backdrop" style="' + u + '"></div><div class="notice" style="' + p + '"><a href="http://bpmn.io" target="_blank" style="float: left; margin-right: 10px"><img src=""></a>Web-based tooling for BPMN, DMN and CMMN diagrams powered by <a href="http://bpmn.io" target="_blank">bpmn.io</a>.</div></div>';
  2362. t.exports.open = i
  2363. },
  2364. {
  2365. 211 : 211,
  2366. 212 : 212
  2367. }],
  2368. 15 : [function(e, t, n) {
  2369. t.exports = e(17)
  2370. },
  2371. {
  2372. 17 : 17
  2373. }],
  2374. 16 : [function(e, t, n) {
  2375. "use strict";
  2376. function r(e, t) {
  2377. s.call(this, e, t)
  2378. }
  2379. var i = e(194),
  2380. o = e(189),
  2381. a = e(197),
  2382. s = e(23),
  2383. c = e(19),
  2384. l = e(20);
  2385. r.prototype = Object.create(s.prototype),
  2386. t.exports = r,
  2387. r.prototype.fromXML = function(e, t, n, r) {
  2388. i(t) || (r = n, n = t, t = "bpmn:Definitions"),
  2389. o(n) && (r = n, n = {});
  2390. var s = new c(a({
  2391. model: this,
  2392. lax: !0
  2393. },
  2394. n)),
  2395. l = s.handler(t);
  2396. s.fromXML(e, l, r)
  2397. },
  2398. r.prototype.toXML = function(e, t, n) {
  2399. o(t) && (n = t, t = {});
  2400. var r = new l(t);
  2401. try {
  2402. var i = r.toXML(e);
  2403. n(null, i)
  2404. } catch(e) {
  2405. n(e)
  2406. }
  2407. }
  2408. },
  2409. {
  2410. 189 : 189,
  2411. 19 : 19,
  2412. 194 : 194,
  2413. 197 : 197,
  2414. 20 : 20,
  2415. 23 : 23
  2416. }],
  2417. 17 : [function(e, t, n) {
  2418. "use strict";
  2419. var r = e(197),
  2420. i = e(16),
  2421. o = {
  2422. bpmn: e(32),
  2423. bpmndi: e(33),
  2424. dc: e(34),
  2425. di: e(35)
  2426. };
  2427. t.exports = function(e, t) {
  2428. return new i(r({},
  2429. o, e), t)
  2430. }
  2431. },
  2432. {
  2433. 16 : 16,
  2434. 197 : 197,
  2435. 32 : 32,
  2436. 33 : 33,
  2437. 34 : 34,
  2438. 35 : 35
  2439. }],
  2440. 18 : [function(e, t, n) {
  2441. "use strict";
  2442. function r(e) {
  2443. return e.charAt(0).toUpperCase() + e.slice(1)
  2444. }
  2445. function i(e) {
  2446. return e.charAt(0).toLowerCase() + e.slice(1)
  2447. }
  2448. function o(e) {
  2449. return e.xml && "lowerCase" === e.xml.tagAlias
  2450. }
  2451. function a(e) {
  2452. return e.xml && e.xml.serialize
  2453. }
  2454. t.exports.aliasToName = function(e, t) {
  2455. return o(t) ? r(e) : e
  2456. },
  2457. t.exports.nameToAlias = function(e, t) {
  2458. return o(t) ? i(e) : e
  2459. },
  2460. t.exports.DEFAULT_NS_MAP = {
  2461. xsi: "http://www.w3.org/2001/XMLSchema-instance"
  2462. };
  2463. var s = t.exports.XSI_TYPE = "xsi:type";
  2464. t.exports.serializeAsType = function(e) {
  2465. return a(e) === s
  2466. },
  2467. t.exports.serializeAsProperty = function(e) {
  2468. return "property" === a(e)
  2469. }
  2470. },
  2471. {}],
  2472. 19 : [function(e, t, n) {
  2473. "use strict";
  2474. function r(e) {
  2475. var t = e.attributes;
  2476. return v(t,
  2477. function(e, t, n) {
  2478. var r, i;
  2479. return t.local ? (i = T(t.name, t.prefix), r = i.name) : r = t.prefix,
  2480. e[r] = t.value,
  2481. e
  2482. },
  2483. {})
  2484. }
  2485. function i(e, t, n) {
  2486. var r, i = T(t.value),
  2487. o = e.ns[i.prefix || ""],
  2488. a = i.localName,
  2489. s = o && n.getPackage(o);
  2490. s && (r = s.xml && s.xml.typePrefix, r && 0 === a.indexOf(r) && (a = a.slice(r.length)), t.value = s.prefix + ":" + a)
  2491. }
  2492. function o(e, t, n) {
  2493. var r, a;
  2494. if (r = e.uri || n) {
  2495. var s = t.getPackage(r);
  2496. a = s ? s.prefix: e.prefix,
  2497. e.prefix = a,
  2498. e.uri = r
  2499. }
  2500. x(e.attributes,
  2501. function(n) {
  2502. n.uri === D && "type" === n.local && i(e, n, t),
  2503. o(n, t, null)
  2504. })
  2505. }
  2506. function a(e) {
  2507. return new Error(e)
  2508. }
  2509. function s(e) {
  2510. return e.$descriptor
  2511. }
  2512. function c(e) {
  2513. E(this, e),
  2514. this.elementsById = {},
  2515. this.references = [],
  2516. this.warnings = [],
  2517. this.addReference = function(e) {
  2518. this.references.push(e)
  2519. },
  2520. this.addElement = function(e) {
  2521. if (!e) throw a("expected element");
  2522. var t, n = this.elementsById,
  2523. r = s(e),
  2524. i = r.idProperty;
  2525. if (i && (t = e.get(i.name))) {
  2526. if (n[t]) throw a("duplicate ID <" + t + ">");
  2527. n[t] = e
  2528. }
  2529. },
  2530. this.addWarning = function(e) {
  2531. this.warnings.push(e)
  2532. }
  2533. }
  2534. function l() {}
  2535. function u() {}
  2536. function p() {}
  2537. function f(e, t) {
  2538. this.property = e,
  2539. this.context = t
  2540. }
  2541. function h(e, t) {
  2542. this.element = t,
  2543. this.propertyDesc = e
  2544. }
  2545. function d() {}
  2546. function m(e, t, n) {
  2547. this.model = e,
  2548. this.type = e.getType(t),
  2549. this.context = n
  2550. }
  2551. function y(e, t, n) {
  2552. this.model = e,
  2553. this.context = n
  2554. }
  2555. function g(e) {
  2556. e instanceof S && (e = {
  2557. model: e
  2558. }),
  2559. E(this, {
  2560. lax: !1
  2561. },
  2562. e)
  2563. }
  2564. var v = e(87),
  2565. x = e(83),
  2566. b = e(82),
  2567. E = e(197),
  2568. w = e(92),
  2569. A = e(22),
  2570. _ = e(21).parser,
  2571. S = e(23),
  2572. T = e(28).parseName,
  2573. C = e(31),
  2574. R = C.coerceType,
  2575. N = C.isSimple,
  2576. M = e(18),
  2577. P = M.XSI_TYPE,
  2578. D = M.DEFAULT_NS_MAP.xsi,
  2579. k = M.serializeAsType,
  2580. O = M.aliasToName;
  2581. l.prototype.handleEnd = function() {},
  2582. l.prototype.handleText = function() {},
  2583. l.prototype.handleNode = function() {},
  2584. u.prototype = new l,
  2585. u.prototype.handleNode = function() {
  2586. return this
  2587. },
  2588. p.prototype = new l,
  2589. p.prototype.handleText = function(e) {
  2590. this.body = (this.body || "") + e
  2591. },
  2592. f.prototype = new p,
  2593. f.prototype.handleNode = function(e) {
  2594. if (this.element) throw a("expected no sub nodes");
  2595. return this.element = this.createReference(e),
  2596. this
  2597. },
  2598. f.prototype.handleEnd = function() {
  2599. this.element.id = this.body
  2600. },
  2601. f.prototype.createReference = function(e) {
  2602. return {
  2603. property: this.property.ns.name,
  2604. id: ""
  2605. }
  2606. },
  2607. h.prototype = new p,
  2608. h.prototype.handleEnd = function() {
  2609. var e = this.body,
  2610. t = this.element,
  2611. n = this.propertyDesc;
  2612. e = R(n.type, e),
  2613. n.isMany ? t.get(n.name).push(e) : t.set(n.name, e)
  2614. },
  2615. d.prototype = Object.create(p.prototype),
  2616. d.prototype.handleNode = function(e) {
  2617. var t = this,
  2618. n = this.element;
  2619. return n ? t = this.handleChild(e) : (n = this.element = this.createElement(e), this.context.addElement(n)),
  2620. t
  2621. },
  2622. m.prototype = new d,
  2623. m.prototype.addReference = function(e) {
  2624. this.context.addReference(e)
  2625. },
  2626. m.prototype.handleEnd = function() {
  2627. var e = this.body,
  2628. t = this.element,
  2629. n = s(t),
  2630. r = n.bodyProperty;
  2631. r && void 0 !== e && (e = R(r.type, e), t.set(r.name, e))
  2632. },
  2633. m.prototype.createElement = function(e) {
  2634. var t = r(e),
  2635. n = this.type,
  2636. i = s(n),
  2637. o = this.context,
  2638. a = new n({});
  2639. return x(t,
  2640. function(e, t) {
  2641. var n, r = i.propertiesByName[t];
  2642. r && r.isReference ? r.isMany ? (n = e.split(" "), x(n,
  2643. function(e) {
  2644. o.addReference({
  2645. element: a,
  2646. property: r.ns.name,
  2647. id: e
  2648. })
  2649. })) : o.addReference({
  2650. element: a,
  2651. property: r.ns.name,
  2652. id: e
  2653. }) : (r && (e = R(r.type, e)), a.set(t, e))
  2654. }),
  2655. a
  2656. },
  2657. m.prototype.getPropertyForNode = function(e) {
  2658. var t, n, r, i = T(e.local, e.prefix),
  2659. o = this.type,
  2660. c = this.model,
  2661. l = s(o),
  2662. u = i.name,
  2663. p = l.propertiesByName[u];
  2664. if (p) return k(p) && (r = e.attributes[P]) ? (t = r.value, n = c.getType(t), E({},
  2665. p, {
  2666. effectiveType: s(n).name
  2667. })) : p;
  2668. var f = c.getPackage(i.prefix);
  2669. if (f) {
  2670. if (t = i.prefix + ":" + O(i.localName, l.$pkg), n = c.getType(t), p = b(l.properties,
  2671. function(e) {
  2672. return ! e.isVirtual && !e.isReference && !e.isAttribute && n.hasType(e.type)
  2673. })) return E({},
  2674. p, {
  2675. effectiveType: s(n).name
  2676. })
  2677. } else if (p = b(l.properties,
  2678. function(e) {
  2679. return ! e.isReference && !e.isAttribute && "Element" === e.type
  2680. })) return p;
  2681. throw a("unrecognized element <" + i.name + ">")
  2682. },
  2683. m.prototype.toString = function() {
  2684. return "ElementDescriptor[" + s(this.type).name + "]"
  2685. },
  2686. m.prototype.valueHandler = function(e, t) {
  2687. return new h(e, t)
  2688. },
  2689. m.prototype.referenceHandler = function(e) {
  2690. return new f(e, this.context)
  2691. },
  2692. m.prototype.handler = function(e) {
  2693. return "Element" === e ? new y(this.model, e, this.context) : new m(this.model, e, this.context)
  2694. },
  2695. m.prototype.handleChild = function(e) {
  2696. var t, n, r, i;
  2697. if (t = this.getPropertyForNode(e), r = this.element, n = t.effectiveType || t.type, N(n)) return this.valueHandler(t, r);
  2698. i = t.isReference ? this.referenceHandler(t).handleNode(e) : this.handler(n).handleNode(e);
  2699. var o = i.element;
  2700. return void 0 !== o && (t.isMany ? r.get(t.name).push(o) : r.set(t.name, o), t.isReference ? (E(o, {
  2701. element: r
  2702. }), this.context.addReference(o)) : o.$parent = r),
  2703. i
  2704. },
  2705. y.prototype = Object.create(d.prototype),
  2706. y.prototype.createElement = function(e) {
  2707. var t = e.name,
  2708. n = e.prefix,
  2709. r = e.ns[n],
  2710. i = e.attributes;
  2711. return this.model.createAny(t, r, i)
  2712. },
  2713. y.prototype.handleChild = function(e) {
  2714. var t, n = new y(this.model, "Element", this.context).handleNode(e),
  2715. r = this.element,
  2716. i = n.element;
  2717. return void 0 !== i && (t = r.$children = r.$children || [], t.push(i), i.$parent = r),
  2718. n
  2719. },
  2720. y.prototype.handleText = function(e) {
  2721. this.body = this.body || "" + e
  2722. },
  2723. y.prototype.handleEnd = function() {
  2724. this.body && (this.element.$body = this.body)
  2725. },
  2726. g.prototype.fromXML = function(e, t, n) {
  2727. function r() {
  2728. var e, t, n = y.elementsById,
  2729. r = y.references;
  2730. for (e = 0; t = r[e]; e++) {
  2731. var i = t.element,
  2732. o = n[t.id],
  2733. a = s(i).propertiesByName[t.property];
  2734. if (o || y.addWarning({
  2735. message: "unresolved reference <" + t.id + ">",
  2736. element: t.element,
  2737. property: t.property,
  2738. value: t.id
  2739. }), a.isMany) {
  2740. var c = i.get(a.name),
  2741. l = c.indexOf(t);
  2742. l === -1 && (l = c.length),
  2743. o ? c[l] = o: c.splice(l, 1)
  2744. } else i.set(a.name, o)
  2745. }
  2746. }
  2747. function i(e) {
  2748. v.pop().handleEnd()
  2749. }
  2750. function l(e) {
  2751. var t = v.peek();
  2752. o(e, h);
  2753. try {
  2754. v.push(t.handleNode(e))
  2755. } catch(t) {
  2756. var n = this.line,
  2757. r = this.column,
  2758. i = "unparsable content <" + e.name + "> detected\n\tline: " + n + "\n\tcolumn: " + r + "\n\tnested error: " + t.message;
  2759. if (!d) throw console.error("could not parse document"),
  2760. console.error(t),
  2761. a(i);
  2762. y.addWarning({
  2763. message: i,
  2764. error: t
  2765. }),
  2766. console.warn("could not parse node"),
  2767. console.warn(t),
  2768. v.push(new u)
  2769. }
  2770. }
  2771. function p(e) {
  2772. v.peek().handleText(e)
  2773. }
  2774. var f = t.rootHandler;
  2775. t instanceof m ? (f = t, t = {}) : "string" == typeof t ? (f = this.handler(t), t = {}) : "string" == typeof f && (f = this.handler(f));
  2776. var h = this.model,
  2777. d = this.lax,
  2778. y = new c(E({},
  2779. t, {
  2780. rootHandler: f
  2781. })),
  2782. g = new _(!0, {
  2783. xmlns: !0,
  2784. trim: !0
  2785. }),
  2786. v = new A;
  2787. f.context = y,
  2788. v.push(f),
  2789. g.onopentag = l,
  2790. g.oncdata = g.ontext = p,
  2791. g.onclosetag = i,
  2792. g.onend = r,
  2793. w(function() {
  2794. var t;
  2795. try {
  2796. g.write(e).close()
  2797. } catch(e) {
  2798. t = e
  2799. }
  2800. n(t, t ? void 0 : f.element, y)
  2801. })
  2802. },
  2803. g.prototype.handler = function(e) {
  2804. return new m(this.model, e)
  2805. },
  2806. t.exports = g,
  2807. t.exports.ElementHandler = m
  2808. },
  2809. {
  2810. 18 : 18,
  2811. 197 : 197,
  2812. 21 : 21,
  2813. 22 : 22,
  2814. 23 : 23,
  2815. 28 : 28,
  2816. 31 : 31,
  2817. 82 : 82,
  2818. 83 : 83,
  2819. 87 : 87,
  2820. 92 : 92
  2821. }],
  2822. 20 : [function(e, t, n) {
  2823. "use strict";
  2824. function r(e) {
  2825. return E(e) ? e: (e.prefix ? e.prefix + ":": "") + e.localName
  2826. }
  2827. function i(e) {
  2828. function t(t) {
  2829. return e.used[t.uri]
  2830. }
  2831. function n(e) {
  2832. var t = "xmlns" + (e.prefix ? ":" + e.prefix: "");
  2833. return {
  2834. name: t,
  2835. value: e.uri
  2836. }
  2837. }
  2838. var r = [].concat(e.wellknown, e.custom);
  2839. return x(w(r, t), n)
  2840. }
  2841. function o(e, t) {
  2842. return t.isGeneric ? t.name: A({
  2843. localName: C(t.ns.localName, t.$pkg)
  2844. },
  2845. e)
  2846. }
  2847. function a(e, t) {
  2848. return A({
  2849. localName: t.ns.localName
  2850. },
  2851. e)
  2852. }
  2853. function s(e) {
  2854. var t = e.$descriptor;
  2855. return w(t.properties,
  2856. function(t) {
  2857. var n = t.name;
  2858. if (t.isVirtual) return ! 1;
  2859. if (!e.hasOwnProperty(n)) return ! 1;
  2860. var r = e[n];
  2861. return r !== t.
  2862. default && (null !== r && (!t.isMany || r.length))
  2863. })
  2864. }
  2865. function c(e) {
  2866. return e = E(e) ? e: "" + e,
  2867. e.replace(P,
  2868. function(e) {
  2869. return "&#" + O[e] + ";"
  2870. })
  2871. }
  2872. function l(e) {
  2873. return w(e,
  2874. function(e) {
  2875. return e.isAttr
  2876. })
  2877. }
  2878. function u(e) {
  2879. return w(e,
  2880. function(e) {
  2881. return ! e.isAttr
  2882. })
  2883. }
  2884. function p(e, t) {
  2885. this.ns = t
  2886. }
  2887. function f() {}
  2888. function h(e) {
  2889. this.ns = e
  2890. }
  2891. function d(e, t) {
  2892. this.body = [],
  2893. this.attrs = [],
  2894. this.parent = e,
  2895. this.ns = t
  2896. }
  2897. function m(e, t) {
  2898. d.call(this, e, t)
  2899. }
  2900. function y() {
  2901. this.value = "",
  2902. this.write = function(e) {
  2903. this.value += e
  2904. }
  2905. }
  2906. function g(e, t) {
  2907. var n = [""];
  2908. this.append = function(t) {
  2909. return e.write(t),
  2910. this
  2911. },
  2912. this.appendNewLine = function() {
  2913. return t && e.write("\n"),
  2914. this
  2915. },
  2916. this.appendIndent = function() {
  2917. return t && e.write(n.join(" ")),
  2918. this
  2919. },
  2920. this.indent = function() {
  2921. return n.push(""),
  2922. this
  2923. },
  2924. this.unindent = function() {
  2925. return n.pop(),
  2926. this
  2927. }
  2928. }
  2929. function v(e) {
  2930. function t(t, n) {
  2931. var r = n || new y,
  2932. i = new g(r, e.format);
  2933. if (e.preamble && i.append(M), (new d).build(t).serializeTo(i), !n) return r.value
  2934. }
  2935. return e = A({
  2936. format: !1,
  2937. preamble: !0
  2938. },
  2939. e || {}),
  2940. {
  2941. toXML: t
  2942. }
  2943. }
  2944. var x = e(86),
  2945. b = e(83),
  2946. E = e(194),
  2947. w = e(81),
  2948. A = e(197),
  2949. _ = e(31),
  2950. S = e(28).parseName,
  2951. T = e(18),
  2952. C = T.nameToAlias,
  2953. R = T.serializeAsType,
  2954. N = T.serializeAsProperty,
  2955. M = '<?xml version="1.0" encoding="UTF-8"?>\n',
  2956. P = /(<|>|'|"|&|\n\r|\n)/g,
  2957. D = T.DEFAULT_NS_MAP,
  2958. k = T.XSI_TYPE,
  2959. O = {
  2960. "\n": "10",
  2961. "\n\r": "10",
  2962. '"': "34",
  2963. "'": "39",
  2964. "<": "60",
  2965. ">": "62",
  2966. "&": "38"
  2967. };
  2968. p.prototype.build = function(e) {
  2969. return this.element = e,
  2970. this
  2971. },
  2972. p.prototype.serializeTo = function(e) {
  2973. e.appendIndent().append("<" + r(this.ns) + ">" + this.element.id + "</" + r(this.ns) + ">").appendNewLine()
  2974. },
  2975. f.prototype.serializeValue = f.prototype.serializeTo = function(e) {
  2976. var t = this.escape;
  2977. t && e.append("<![CDATA["),
  2978. e.append(this.value),
  2979. t && e.append("]]>")
  2980. },
  2981. f.prototype.build = function(e, t) {
  2982. return this.value = t,
  2983. "String" === e.type && t.search(P) !== -1 && (this.escape = !0),
  2984. this
  2985. },
  2986. h.prototype = new f,
  2987. h.prototype.serializeTo = function(e) {
  2988. e.appendIndent().append("<" + r(this.ns) + ">"),
  2989. this.serializeValue(e),
  2990. e.append("</" + r(this.ns) + ">").appendNewLine()
  2991. },
  2992. d.prototype.build = function(e) {
  2993. this.element = e;
  2994. var t = this.parseNsAttributes(e);
  2995. if (this.ns || (this.ns = this.nsTagName(e.$descriptor)), e.$descriptor.isGeneric) this.parseGeneric(e);
  2996. else {
  2997. var n = s(e);
  2998. this.parseAttributes(l(n)),
  2999. this.parseContainments(u(n)),
  3000. this.parseGenericAttributes(e, t)
  3001. }
  3002. return this
  3003. },
  3004. d.prototype.nsTagName = function(e) {
  3005. var t = this.logNamespaceUsed(e.ns);
  3006. return o(t, e)
  3007. },
  3008. d.prototype.nsPropertyTagName = function(e) {
  3009. var t = this.logNamespaceUsed(e.ns);
  3010. return a(t, e)
  3011. },
  3012. d.prototype.isLocalNs = function(e) {
  3013. return e.uri === this.ns.uri
  3014. },
  3015. d.prototype.nsAttributeName = function(e) {
  3016. var t;
  3017. if (t = E(e) ? S(e) : e.ns, e.inherited) return {
  3018. localName: t.localName
  3019. };
  3020. var n = this.logNamespaceUsed(t);
  3021. return this.isLocalNs(n) ? {
  3022. localName: t.localName
  3023. }: A({
  3024. localName: t.localName
  3025. },
  3026. n)
  3027. },
  3028. d.prototype.parseGeneric = function(e) {
  3029. var t = this,
  3030. n = this.body,
  3031. r = this.attrs;
  3032. b(e,
  3033. function(e, i) {
  3034. "$body" === i ? n.push((new f).build({
  3035. type: "String"
  3036. },
  3037. e)) : "$children" === i ? b(e,
  3038. function(e) {
  3039. n.push(new d(t).build(e))
  3040. }) : 0 !== i.indexOf("$") && r.push({
  3041. name: i,
  3042. value: c(e)
  3043. })
  3044. })
  3045. },
  3046. d.prototype.parseNsAttributes = function(e) {
  3047. var t = this,
  3048. n = e.$attrs,
  3049. r = e.$model,
  3050. i = [];
  3051. return b(n,
  3052. function(e, n) {
  3053. var o, a = S(n);
  3054. "xmlns" === a.prefix && (o = {
  3055. prefix: a.localName,
  3056. uri: e
  3057. }),
  3058. a.prefix || "xmlns" !== a.localName || (o = {
  3059. uri: e
  3060. }),
  3061. o ? r.getPackage(e) ? t.logNamespace(o, !0) : t.logNamespaceUsed(o) : i.push({
  3062. name: n,
  3063. value: e
  3064. })
  3065. }),
  3066. i
  3067. },
  3068. d.prototype.parseGenericAttributes = function(e, t) {
  3069. var n = this;
  3070. b(t,
  3071. function(t) {
  3072. if (t.name !== k) try {
  3073. n.addAttribute(n.nsAttributeName(t.name), t.value)
  3074. } catch(n) {
  3075. console.warn("missing namespace information for ", t.name, "=", t.value, "on", e, n)
  3076. }
  3077. })
  3078. },
  3079. d.prototype.parseContainments = function(e) {
  3080. var t = this,
  3081. n = this.body,
  3082. r = this.element;
  3083. b(e,
  3084. function(e) {
  3085. var i = r.get(e.name),
  3086. o = e.isReference,
  3087. a = e.isMany,
  3088. s = t.nsPropertyTagName(e);
  3089. if (a || (i = [i]), e.isBody) n.push((new f).build(e, i[0]));
  3090. else if (_.isSimple(e.type)) b(i,
  3091. function(t) {
  3092. n.push(new h(s).build(e, t))
  3093. });
  3094. else if (o) b(i,
  3095. function(e) {
  3096. n.push(new p(t, s).build(e))
  3097. });
  3098. else {
  3099. var c = R(e),
  3100. l = N(e);
  3101. b(i,
  3102. function(e) {
  3103. var r;
  3104. r = c ? new m(t, s) : l ? new d(t, s) : new d(t),
  3105. n.push(r.build(e))
  3106. })
  3107. }
  3108. })
  3109. },
  3110. d.prototype.getNamespaces = function() {
  3111. var e = this.namespaces,
  3112. t = this.parent;
  3113. return e || (e = this.namespaces = t ? t.getNamespaces() : {
  3114. prefixMap: {},
  3115. uriMap: {},
  3116. used: {},
  3117. wellknown: [],
  3118. custom: []
  3119. }),
  3120. e
  3121. },
  3122. d.prototype.logNamespace = function(e, t) {
  3123. var n = this.getNamespaces(),
  3124. r = e.uri,
  3125. i = n.uriMap[r];
  3126. return i || (n.uriMap[r] = e, t ? n.wellknown.push(e) : n.custom.push(e)),
  3127. n.prefixMap[e.prefix] = r,
  3128. e
  3129. },
  3130. d.prototype.logNamespaceUsed = function(e) {
  3131. var t = this.element,
  3132. n = t.$model,
  3133. r = this.getNamespaces(),
  3134. i = e.prefix,
  3135. o = D[i] || n && (n.getPackage(i) || {}).uri,
  3136. a = e.uri || r.prefixMap[i] || o;
  3137. if (!a) throw new Error("no namespace uri given for prefix <" + e.prefix + ">");
  3138. return e = r.uriMap[a],
  3139. e || (e = this.logNamespace({
  3140. prefix: i,
  3141. uri: a
  3142. },
  3143. o)),
  3144. r.used[e.uri] || (r.used[e.uri] = e),
  3145. e
  3146. },
  3147. d.prototype.parseAttributes = function(e) {
  3148. var t = this,
  3149. n = this.element;
  3150. b(e,
  3151. function(e) {
  3152. var r = n.get(e.name);
  3153. if (e.isReference) if (e.isMany) {
  3154. var i = [];
  3155. b(r,
  3156. function(e) {
  3157. i.push(e.id)
  3158. }),
  3159. r = i.join(" ")
  3160. } else r = r.id;
  3161. t.addAttribute(t.nsAttributeName(e), r)
  3162. })
  3163. },
  3164. d.prototype.addAttribute = function(e, t) {
  3165. var n = this.attrs;
  3166. E(t) && (t = c(t)),
  3167. n.push({
  3168. name: e,
  3169. value: t
  3170. })
  3171. },
  3172. d.prototype.serializeAttributes = function(e) {
  3173. var t = this.attrs,
  3174. n = !this.parent;
  3175. n && (t = i(this.namespaces).concat(t)),
  3176. b(t,
  3177. function(t) {
  3178. e.append(" ").append(r(t.name)).append('="').append(t.value).append('"')
  3179. })
  3180. },
  3181. d.prototype.serializeTo = function(e) {
  3182. var t = this.body.length,
  3183. n = !(1 === this.body.length && this.body[0] instanceof f);
  3184. e.appendIndent().append("<" + r(this.ns)),
  3185. this.serializeAttributes(e),
  3186. e.append(t ? ">": " />"),
  3187. t && (n && e.appendNewLine().indent(), b(this.body,
  3188. function(t) {
  3189. t.serializeTo(e)
  3190. }), n && e.unindent().appendIndent(), e.append("</" + r(this.ns) + ">")),
  3191. e.appendNewLine()
  3192. },
  3193. m.prototype = new d,
  3194. m.prototype.build = function(e) {
  3195. var t = e.$descriptor;
  3196. this.element = e,
  3197. this.typeNs = this.nsTagName(t);
  3198. var n = this.typeNs,
  3199. r = e.$model.getPackage(n.uri),
  3200. i = r.xml && r.xml.typePrefix || "";
  3201. return this.addAttribute(this.nsAttributeName(k), (n.prefix ? n.prefix + ":": "") + i + t.ns.localName),
  3202. d.prototype.build.call(this, e)
  3203. },
  3204. m.prototype.isLocalNs = function(e) {
  3205. return e.uri === this.typeNs.uri
  3206. },
  3207. t.exports = v
  3208. },
  3209. {
  3210. 18 : 18,
  3211. 194 : 194,
  3212. 197 : 197,
  3213. 28 : 28,
  3214. 31 : 31,
  3215. 81 : 81,
  3216. 83 : 83,
  3217. 86 : 86
  3218. }],
  3219. 21 : [function(e, t, n) { (function(t) { !
  3220. function(n) {
  3221. function r(e, t) {
  3222. if (! (this instanceof r)) return new r(e, t);
  3223. var i = this;
  3224. o(i),
  3225. i.q = i.c = "",
  3226. i.bufferCheckPosition = n.MAX_BUFFER_LENGTH,
  3227. i.opt = t || {},
  3228. i.opt.lowercase = i.opt.lowercase || i.opt.lowercasetags,
  3229. i.looseCase = i.opt.lowercase ? "toLowerCase": "toUpperCase",
  3230. i.tags = [],
  3231. i.closed = i.closedRoot = i.sawRoot = !1,
  3232. i.tag = i.error = null,
  3233. i.strict = !!e,
  3234. i.noscript = !(!e && !i.opt.noscript),
  3235. i.state = W.BEGIN,
  3236. i.ENTITIES = Object.create(n.ENTITIES),
  3237. i.attribList = [],
  3238. i.opt.xmlns && (i.ns = Object.create(V)),
  3239. i.trackPosition = i.opt.position !== !1,
  3240. i.trackPosition && (i.position = i.line = i.column = 0),
  3241. h(i, "onready")
  3242. }
  3243. function i(e) {
  3244. for (var t = Math.max(n.MAX_BUFFER_LENGTH, 10), r = 0, i = 0, o = C.length; i < o; i++) {
  3245. var a = e[C[i]].length;
  3246. if (a > t) switch (C[i]) {
  3247. case "textNode":
  3248. m(e);
  3249. break;
  3250. case "cdata":
  3251. d(e, "oncdata", e.cdata),
  3252. e.cdata = "";
  3253. break;
  3254. case "script":
  3255. d(e, "onscript", e.script),
  3256. e.script = "";
  3257. break;
  3258. default:
  3259. g(e, "Max buffer length exceeded: " + C[i])
  3260. }
  3261. r = Math.max(r, a)
  3262. }
  3263. e.bufferCheckPosition = n.MAX_BUFFER_LENGTH - r + e.position
  3264. }
  3265. function o(e) {
  3266. for (var t = 0,
  3267. n = C.length; t < n; t++) e[C[t]] = ""
  3268. }
  3269. function a(e) {
  3270. m(e),
  3271. "" !== e.cdata && (d(e, "oncdata", e.cdata), e.cdata = ""),
  3272. "" !== e.script && (d(e, "onscript", e.script), e.script = "")
  3273. }
  3274. function s(e, t) {
  3275. return new c(e, t)
  3276. }
  3277. function c(e, t) {
  3278. if (! (this instanceof c)) return new c(e, t);
  3279. R.apply(this),
  3280. this._parser = new r(e, t),
  3281. this.writable = !0,
  3282. this.readable = !0;
  3283. var n = this;
  3284. this._parser.onend = function() {
  3285. n.emit("end")
  3286. },
  3287. this._parser.onerror = function(e) {
  3288. n.emit("error", e),
  3289. n._parser.error = null
  3290. },
  3291. this._decoder = null,
  3292. N.forEach(function(e) {
  3293. Object.defineProperty(n, "on" + e, {
  3294. get: function() {
  3295. return n._parser["on" + e]
  3296. },
  3297. set: function(t) {
  3298. return t ? void n.on(e, t) : (n.removeAllListeners(e), n._parser["on" + e] = t)
  3299. },
  3300. enumerable: !0,
  3301. configurable: !1
  3302. })
  3303. })
  3304. }
  3305. function l(e) {
  3306. return e.split("").reduce(function(e, t) {
  3307. return e[t] = !0,
  3308. e
  3309. },
  3310. {})
  3311. }
  3312. function u(e) {
  3313. return "[object RegExp]" === Object.prototype.toString.call(e)
  3314. }
  3315. function p(e, t) {
  3316. return u(e) ? !!t.match(e) : e[t]
  3317. }
  3318. function f(e, t) {
  3319. return ! p(e, t)
  3320. }
  3321. function h(e, t, n) {
  3322. e[t] && e[t](n)
  3323. }
  3324. function d(e, t, n) {
  3325. e.textNode && m(e),
  3326. h(e, t, n)
  3327. }
  3328. function m(e) {
  3329. e.textNode = y(e.opt, e.textNode),
  3330. e.textNode && h(e, "ontext", e.textNode),
  3331. e.textNode = ""
  3332. }
  3333. function y(e, t) {
  3334. return e.trim && (t = t.trim()),
  3335. e.normalize && (t = t.replace(/\s+/g, " ")),
  3336. t
  3337. }
  3338. function g(e, t) {
  3339. return m(e),
  3340. e.trackPosition && (t += "\nLine: " + e.line + "\nColumn: " + e.column + "\nChar: " + e.c),
  3341. t = new Error(t),
  3342. e.error = t,
  3343. h(e, "onerror", t),
  3344. e
  3345. }
  3346. function v(e) {
  3347. return e.closedRoot || x(e, "Unclosed root tag"),
  3348. e.state !== W.BEGIN && e.state !== W.TEXT && g(e, "Unexpected end"),
  3349. m(e),
  3350. e.c = "",
  3351. e.closed = !0,
  3352. h(e, "onend"),
  3353. r.call(e, e.strict, e.opt),
  3354. e
  3355. }
  3356. function x(e, t) {
  3357. if ("object" != typeof e || !(e instanceof r)) throw new Error("bad call to strictFail");
  3358. e.strict && g(e, t)
  3359. }
  3360. function b(e) {
  3361. e.strict || (e.tagName = e.tagName[e.looseCase]());
  3362. var t = e.tags[e.tags.length - 1] || e,
  3363. n = e.tag = {
  3364. name: e.tagName,
  3365. attributes: {}
  3366. };
  3367. e.opt.xmlns && (n.ns = t.ns),
  3368. e.attribList.length = 0
  3369. }
  3370. function E(e, t) {
  3371. var n = e.indexOf(":"),
  3372. r = n < 0 ? ["", e] : e.split(":"),
  3373. i = r[0],
  3374. o = r[1];
  3375. return t && "xmlns" === e && (i = "xmlns", o = ""),
  3376. {
  3377. prefix: i,
  3378. local: o
  3379. }
  3380. }
  3381. function w(e) {
  3382. if (e.strict || (e.attribName = e.attribName[e.looseCase]()), e.attribList.indexOf(e.attribName) !== -1 || e.tag.attributes.hasOwnProperty(e.attribName)) return e.attribName = e.attribValue = "";
  3383. if (e.opt.xmlns) {
  3384. var t = E(e.attribName, !0),
  3385. n = t.prefix,
  3386. r = t.local;
  3387. if ("xmlns" === n) if ("xml" === r && e.attribValue !== F) x(e, "xml: prefix must be bound to " + F + "\nActual: " + e.attribValue);
  3388. else if ("xmlns" === r && e.attribValue !== j) x(e, "xmlns: prefix must be bound to " + j + "\nActual: " + e.attribValue);
  3389. else {
  3390. var i = e.tag,
  3391. o = e.tags[e.tags.length - 1] || e;
  3392. i.ns === o.ns && (i.ns = Object.create(o.ns)),
  3393. i.ns[r] = e.attribValue
  3394. }
  3395. e.attribList.push([e.attribName, e.attribValue])
  3396. } else e.tag.attributes[e.attribName] = e.attribValue,
  3397. d(e, "onattribute", {
  3398. name: e.attribName,
  3399. value: e.attribValue
  3400. });
  3401. e.attribName = e.attribValue = ""
  3402. }
  3403. function A(e, t) {
  3404. if (e.opt.xmlns) {
  3405. var n = e.tag,
  3406. r = E(e.tagName);
  3407. n.prefix = r.prefix,
  3408. n.local = r.local,
  3409. n.uri = n.ns[r.prefix] || "",
  3410. n.prefix && !n.uri && (x(e, "Unbound namespace prefix: " + JSON.stringify(e.tagName)), n.uri = r.prefix);
  3411. var i = e.tags[e.tags.length - 1] || e;
  3412. n.ns && i.ns !== n.ns && Object.keys(n.ns).forEach(function(t) {
  3413. d(e, "onopennamespace", {
  3414. prefix: t,
  3415. uri: n.ns[t]
  3416. })
  3417. });
  3418. for (var o = 0,
  3419. a = e.attribList.length; o < a; o++) {
  3420. var s = e.attribList[o],
  3421. c = s[0],
  3422. l = s[1],
  3423. u = E(c, !0),
  3424. p = u.prefix,
  3425. f = u.local,
  3426. h = "" == p ? "": n.ns[p] || "",
  3427. m = {
  3428. name: c,
  3429. value: l,
  3430. prefix: p,
  3431. local: f,
  3432. uri: h
  3433. };
  3434. p && "xmlns" != p && !h && (x(e, "Unbound namespace prefix: " + JSON.stringify(p)), m.uri = p),
  3435. e.tag.attributes[c] = m,
  3436. d(e, "onattribute", m)
  3437. }
  3438. e.attribList.length = 0
  3439. }
  3440. e.tag.isSelfClosing = !!t,
  3441. e.sawRoot = !0,
  3442. e.tags.push(e.tag),
  3443. d(e, "onopentag", e.tag),
  3444. t || (e.noscript || "script" !== e.tagName.toLowerCase() ? e.state = W.TEXT: e.state = W.SCRIPT, e.tag = null, e.tagName = ""),
  3445. e.attribName = e.attribValue = "",
  3446. e.attribList.length = 0
  3447. }
  3448. function _(e) {
  3449. if (!e.tagName) return x(e, "Weird empty close tag."),
  3450. e.textNode += "</>",
  3451. void(e.state = W.TEXT);
  3452. if (e.script) {
  3453. if ("script" !== e.tagName) return e.script += "</" + e.tagName + ">",
  3454. e.tagName = "",
  3455. void(e.state = W.SCRIPT);
  3456. d(e, "onscript", e.script),
  3457. e.script = ""
  3458. }
  3459. var t = e.tags.length,
  3460. n = e.tagName;
  3461. e.strict || (n = n[e.looseCase]());
  3462. for (var r = n; t--;) {
  3463. var i = e.tags[t];
  3464. if (i.name === r) break;
  3465. x(e, "Unexpected close tag")
  3466. }
  3467. if (t < 0) return x(e, "Unmatched closing tag: " + e.tagName),
  3468. e.textNode += "</" + e.tagName + ">",
  3469. void(e.state = W.TEXT);
  3470. e.tagName = n;
  3471. for (var o = e.tags.length; o-->t;) {
  3472. var a = e.tag = e.tags.pop();
  3473. e.tagName = e.tag.name,
  3474. d(e, "onclosetag", e.tagName);
  3475. var s = {};
  3476. for (var c in a.ns) s[c] = a.ns[c];
  3477. var l = e.tags[e.tags.length - 1] || e;
  3478. e.opt.xmlns && a.ns !== l.ns && Object.keys(a.ns).forEach(function(t) {
  3479. var n = a.ns[t];
  3480. d(e, "onclosenamespace", {
  3481. prefix: t,
  3482. uri: n
  3483. })
  3484. })
  3485. }
  3486. 0 === t && (e.closedRoot = !0),
  3487. e.tagName = e.attribValue = e.attribName = "",
  3488. e.attribList.length = 0,
  3489. e.state = W.TEXT
  3490. }
  3491. function S(e) {
  3492. var t, n = e.entity,
  3493. r = n.toLowerCase(),
  3494. i = "";
  3495. return e.ENTITIES[n] ? e.ENTITIES[n] : e.ENTITIES[r] ? e.ENTITIES[r] : (n = r, "#" === n.charAt(0) && ("x" === n.charAt(1) ? (n = n.slice(2), t = parseInt(n, 16), i = t.toString(16)) : (n = n.slice(1), t = parseInt(n, 10), i = t.toString(10))), n = n.replace(/^0+/, ""), i.toLowerCase() !== n ? (x(e, "Invalid character entity"), "&" + e.entity + ";") : String.fromCodePoint(t))
  3496. }
  3497. function T(e) {
  3498. var t = this;
  3499. if (this.error) throw this.error;
  3500. if (t.closed) return g(t, "Cannot write after close. Assign an onready handler.");
  3501. if (null === e) return v(t);
  3502. for (var n = 0,
  3503. r = ""; t.c = r = e.charAt(n++);) switch (t.trackPosition && (t.position++, "\n" === r ? (t.line++, t.column = 0) : t.column++), t.state) {
  3504. case W.BEGIN:
  3505. "<" === r ? (t.state = W.OPEN_WAKA, t.startTagPosition = t.position) : f(M, r) && (x(t, "Non-whitespace before first tag."), t.textNode = r, t.state = W.TEXT);
  3506. continue;
  3507. case W.TEXT:
  3508. if (t.sawRoot && !t.closedRoot) {
  3509. for (var o = n - 1; r && "<" !== r && "&" !== r;) r = e.charAt(n++),
  3510. r && t.trackPosition && (t.position++, "\n" === r ? (t.line++, t.column = 0) : t.column++);
  3511. t.textNode += e.substring(o, n - 1)
  3512. }
  3513. "<" === r ? (t.state = W.OPEN_WAKA, t.startTagPosition = t.position) : (!f(M, r) || t.sawRoot && !t.closedRoot || x(t, "Text data outside of root node."), "&" === r ? t.state = W.TEXT_ENTITY: t.textNode += r);
  3514. continue;
  3515. case W.SCRIPT:
  3516. "<" === r ? t.state = W.SCRIPT_ENDING: t.script += r;
  3517. continue;
  3518. case W.SCRIPT_ENDING:
  3519. "/" === r ? t.state = W.CLOSE_TAG: (t.script += "<" + r, t.state = W.SCRIPT);
  3520. continue;
  3521. case W.OPEN_WAKA:
  3522. if ("!" === r) t.state = W.SGML_DECL,
  3523. t.sgmlDecl = "";
  3524. else if (p(M, r));
  3525. else if (p(G, r)) t.state = W.OPEN_TAG,
  3526. t.tagName = r;
  3527. else if ("/" === r) t.state = W.CLOSE_TAG,
  3528. t.tagName = "";
  3529. else if ("?" === r) t.state = W.PROC_INST,
  3530. t.procInstName = t.procInstBody = "";
  3531. else {
  3532. if (x(t, "Unencoded <"), t.startTagPosition + 1 < t.position) {
  3533. var a = t.position - t.startTagPosition;
  3534. r = new Array(a).join(" ") + r
  3535. }
  3536. t.textNode += "<" + r,
  3537. t.state = W.TEXT
  3538. }
  3539. continue;
  3540. case W.SGML_DECL:
  3541. (t.sgmlDecl + r).toUpperCase() === I ? (d(t, "onopencdata"), t.state = W.CDATA, t.sgmlDecl = "", t.cdata = "") : t.sgmlDecl + r === "--" ? (t.state = W.COMMENT, t.comment = "", t.sgmlDecl = "") : (t.sgmlDecl + r).toUpperCase() === L ? (t.state = W.DOCTYPE, (t.doctype || t.sawRoot) && x(t, "Inappropriately located doctype declaration"), t.doctype = "", t.sgmlDecl = "") : ">" === r ? (d(t, "onsgmldeclaration", t.sgmlDecl), t.sgmlDecl = "", t.state = W.TEXT) : p(k, r) ? (t.state = W.SGML_DECL_QUOTED, t.sgmlDecl += r) : t.sgmlDecl += r;
  3542. continue;
  3543. case W.SGML_DECL_QUOTED:
  3544. r === t.q && (t.state = W.SGML_DECL, t.q = ""),
  3545. t.sgmlDecl += r;
  3546. continue;
  3547. case W.DOCTYPE:
  3548. ">" === r ? (t.state = W.TEXT, d(t, "ondoctype", t.doctype), t.doctype = !0) : (t.doctype += r, "[" === r ? t.state = W.DOCTYPE_DTD: p(k, r) && (t.state = W.DOCTYPE_QUOTED, t.q = r));
  3549. continue;
  3550. case W.DOCTYPE_QUOTED:
  3551. t.doctype += r,
  3552. r === t.q && (t.q = "", t.state = W.DOCTYPE);
  3553. continue;
  3554. case W.DOCTYPE_DTD:
  3555. t.doctype += r,
  3556. "]" === r ? t.state = W.DOCTYPE: p(k, r) && (t.state = W.DOCTYPE_DTD_QUOTED, t.q = r);
  3557. continue;
  3558. case W.DOCTYPE_DTD_QUOTED:
  3559. t.doctype += r,
  3560. r === t.q && (t.state = W.DOCTYPE_DTD, t.q = "");
  3561. continue;
  3562. case W.COMMENT:
  3563. "-" === r ? t.state = W.COMMENT_ENDING: t.comment += r;
  3564. continue;
  3565. case W.COMMENT_ENDING:
  3566. "-" === r ? (t.state = W.COMMENT_ENDED, t.comment = y(t.opt, t.comment), t.comment && d(t, "oncomment", t.comment), t.comment = "") : (t.comment += "-" + r, t.state = W.COMMENT);
  3567. continue;
  3568. case W.COMMENT_ENDED:
  3569. ">" !== r ? (x(t, "Malformed comment"), t.comment += "--" + r, t.state = W.COMMENT) : t.state = W.TEXT;
  3570. continue;
  3571. case W.CDATA:
  3572. "]" === r ? t.state = W.CDATA_ENDING: t.cdata += r;
  3573. continue;
  3574. case W.CDATA_ENDING:
  3575. "]" === r ? t.state = W.CDATA_ENDING_2: (t.cdata += "]" + r, t.state = W.CDATA);
  3576. continue;
  3577. case W.CDATA_ENDING_2:
  3578. ">" === r ? (t.cdata && d(t, "oncdata", t.cdata), d(t, "onclosecdata"), t.cdata = "", t.state = W.TEXT) : "]" === r ? t.cdata += "]": (t.cdata += "]]" + r, t.state = W.CDATA);
  3579. continue;
  3580. case W.PROC_INST:
  3581. "?" === r ? t.state = W.PROC_INST_ENDING: p(M, r) ? t.state = W.PROC_INST_BODY: t.procInstName += r;
  3582. continue;
  3583. case W.PROC_INST_BODY:
  3584. if (!t.procInstBody && p(M, r)) continue;
  3585. "?" === r ? t.state = W.PROC_INST_ENDING: t.procInstBody += r;
  3586. continue;
  3587. case W.PROC_INST_ENDING:
  3588. ">" === r ? (d(t, "onprocessinginstruction", {
  3589. name: t.procInstName,
  3590. body: t.procInstBody
  3591. }), t.procInstName = t.procInstBody = "", t.state = W.TEXT) : (t.procInstBody += "?" + r, t.state = W.PROC_INST_BODY);
  3592. continue;
  3593. case W.OPEN_TAG:
  3594. p(U, r) ? t.tagName += r: (b(t), ">" === r ? A(t) : "/" === r ? t.state = W.OPEN_TAG_SLASH: (f(M, r) && x(t, "Invalid character in tag name"), t.state = W.ATTRIB));
  3595. continue;
  3596. case W.OPEN_TAG_SLASH:
  3597. ">" === r ? (A(t, !0), _(t)) : (x(t, "Forward-slash in opening tag not followed by >"), t.state = W.ATTRIB);
  3598. continue;
  3599. case W.ATTRIB:
  3600. if (p(M, r)) continue;
  3601. ">" === r ? A(t) : "/" === r ? t.state = W.OPEN_TAG_SLASH: p(G, r) ? (t.attribName = r, t.attribValue = "", t.state = W.ATTRIB_NAME) : x(t, "Invalid attribute name");
  3602. continue;
  3603. case W.ATTRIB_NAME:
  3604. "=" === r ? t.state = W.ATTRIB_VALUE: ">" === r ? (x(t, "Attribute without value"), t.attribValue = t.attribName, w(t), A(t)) : p(M, r) ? t.state = W.ATTRIB_NAME_SAW_WHITE: p(U, r) ? t.attribName += r: x(t, "Invalid attribute name");
  3605. continue;
  3606. case W.ATTRIB_NAME_SAW_WHITE:
  3607. if ("=" === r) t.state = W.ATTRIB_VALUE;
  3608. else {
  3609. if (p(M, r)) continue;
  3610. x(t, "Attribute without value"),
  3611. t.tag.attributes[t.attribName] = "",
  3612. t.attribValue = "",
  3613. d(t, "onattribute", {
  3614. name: t.attribName,
  3615. value: ""
  3616. }),
  3617. t.attribName = "",
  3618. ">" === r ? A(t) : p(G, r) ? (t.attribName = r, t.state = W.ATTRIB_NAME) : (x(t, "Invalid attribute name"), t.state = W.ATTRIB)
  3619. }
  3620. continue;
  3621. case W.ATTRIB_VALUE:
  3622. if (p(M, r)) continue;
  3623. p(k, r) ? (t.q = r, t.state = W.ATTRIB_VALUE_QUOTED) : (x(t, "Unquoted attribute value"), t.state = W.ATTRIB_VALUE_UNQUOTED, t.attribValue = r);
  3624. continue;
  3625. case W.ATTRIB_VALUE_QUOTED:
  3626. if (r !== t.q) {
  3627. "&" === r ? t.state = W.ATTRIB_VALUE_ENTITY_Q: t.attribValue += r;
  3628. continue
  3629. }
  3630. w(t),
  3631. t.q = "",
  3632. t.state = W.ATTRIB_VALUE_CLOSED;
  3633. continue;
  3634. case W.ATTRIB_VALUE_CLOSED:
  3635. p(M, r) ? t.state = W.ATTRIB: ">" === r ? A(t) : "/" === r ? t.state = W.OPEN_TAG_SLASH: p(G, r) ? (x(t, "No whitespace between attributes"), t.attribName = r, t.attribValue = "", t.state = W.ATTRIB_NAME) : x(t, "Invalid attribute name");
  3636. continue;
  3637. case W.ATTRIB_VALUE_UNQUOTED:
  3638. if (f(B, r)) {
  3639. "&" === r ? t.state = W.ATTRIB_VALUE_ENTITY_U: t.attribValue += r;
  3640. continue
  3641. }
  3642. w(t),
  3643. ">" === r ? A(t) : t.state = W.ATTRIB;
  3644. continue;
  3645. case W.CLOSE_TAG:
  3646. if (t.tagName)">" === r ? _(t) : p(U, r) ? t.tagName += r: t.script ? (t.script += "</" + t.tagName, t.tagName = "", t.state = W.SCRIPT) : (f(M, r) && x(t, "Invalid tagname in closing tag"), t.state = W.CLOSE_TAG_SAW_WHITE);
  3647. else {
  3648. if (p(M, r)) continue;
  3649. f(G, r) ? t.script ? (t.script += "</" + r, t.state = W.SCRIPT) : x(t, "Invalid tagname in closing tag.") : t.tagName = r
  3650. }
  3651. continue;
  3652. case W.CLOSE_TAG_SAW_WHITE:
  3653. if (p(M, r)) continue;
  3654. ">" === r ? _(t) : x(t, "Invalid characters in closing tag");
  3655. continue;
  3656. case W.TEXT_ENTITY:
  3657. case W.ATTRIB_VALUE_ENTITY_Q:
  3658. case W.ATTRIB_VALUE_ENTITY_U:
  3659. switch (t.state) {
  3660. case W.TEXT_ENTITY:
  3661. var s = W.TEXT,
  3662. c = "textNode";
  3663. break;
  3664. case W.ATTRIB_VALUE_ENTITY_Q:
  3665. var s = W.ATTRIB_VALUE_QUOTED,
  3666. c = "attribValue";
  3667. break;
  3668. case W.ATTRIB_VALUE_ENTITY_U:
  3669. var s = W.ATTRIB_VALUE_UNQUOTED,
  3670. c = "attribValue"
  3671. }
  3672. ";" === r ? (t[c] += S(t), t.entity = "", t.state = s) : p(O, r) ? t.entity += r: (x(t, "Invalid character entity"), t[c] += "&" + t.entity + r, t.entity = "", t.state = s);
  3673. continue;
  3674. default:
  3675. throw new Error(t, "Unknown state: " + t.state)
  3676. }
  3677. return t.position >= t.bufferCheckPosition && i(t),
  3678. t
  3679. }
  3680. n.parser = function(e, t) {
  3681. return new r(e, t)
  3682. },
  3683. n.SAXParser = r,
  3684. n.SAXStream = c,
  3685. n.createStream = s,
  3686. n.MAX_BUFFER_LENGTH = 65536;
  3687. var C = ["comment", "sgmlDecl", "textNode", "tagName", "doctype", "procInstName", "procInstBody", "entity", "attribName", "attribValue", "cdata", "script"];
  3688. n.EVENTS = ["text", "processinginstruction", "sgmldeclaration", "doctype", "comment", "attribute", "opentag", "closetag", "opencdata", "cdata", "closecdata", "error", "end", "ready", "script", "opennamespace", "closenamespace"],
  3689. Object.create || (Object.create = function(e) {
  3690. function t() {
  3691. this.__proto__ = e
  3692. }
  3693. return t.prototype = e,
  3694. new t
  3695. }),
  3696. Object.getPrototypeOf || (Object.getPrototypeOf = function(e) {
  3697. return e.__proto__
  3698. }),
  3699. Object.keys || (Object.keys = function(e) {
  3700. var t = [];
  3701. for (var n in e) e.hasOwnProperty(n) && t.push(n);
  3702. return t
  3703. }),
  3704. r.prototype = {
  3705. end: function() {
  3706. v(this)
  3707. },
  3708. write: T,
  3709. resume: function() {
  3710. return this.error = null,
  3711. this
  3712. },
  3713. close: function() {
  3714. return this.write(null)
  3715. },
  3716. flush: function() {
  3717. a(this)
  3718. }
  3719. };
  3720. try {
  3721. var R = e("stream").Stream
  3722. } catch(e) {
  3723. var R = function() {}
  3724. }
  3725. var N = n.EVENTS.filter(function(e) {
  3726. return "error" !== e && "end" !== e
  3727. });
  3728. c.prototype = Object.create(R.prototype, {
  3729. constructor: {
  3730. value: c
  3731. }
  3732. }),
  3733. c.prototype.write = function(n) {
  3734. if ("function" == typeof t && "function" == typeof t.isBuffer && t.isBuffer(n)) {
  3735. if (!this._decoder) {
  3736. var r = e("string_decoder").StringDecoder;
  3737. this._decoder = new r("utf8")
  3738. }
  3739. n = this._decoder.write(n)
  3740. }
  3741. return this._parser.write(n.toString()),
  3742. this.emit("data", n),
  3743. !0
  3744. },
  3745. c.prototype.end = function(e) {
  3746. return e && e.length && this.write(e),
  3747. this._parser.end(),
  3748. !0
  3749. },
  3750. c.prototype.on = function(e, t) {
  3751. var n = this;
  3752. return n._parser["on" + e] || N.indexOf(e) === -1 || (n._parser["on" + e] = function() {
  3753. var t = 1 === arguments.length ? [arguments[0]] : Array.apply(null, arguments);
  3754. t.splice(0, 0, e),
  3755. n.emit.apply(n, t)
  3756. }),
  3757. R.prototype.on.call(n, e, t)
  3758. };
  3759. var M = "\r\n\t ",
  3760. P = "0124356789",
  3761. D = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
  3762. k = "'\"",
  3763. O = P + D + "#",
  3764. B = M + ">",
  3765. I = "[CDATA[",
  3766. L = "DOCTYPE",
  3767. F = "http://www.w3.org/XML/1998/namespace",
  3768. j = "http://www.w3.org/2000/xmlns/",
  3769. V = {
  3770. xml: F,
  3771. xmlns: j
  3772. };
  3773. M = l(M),
  3774. P = l(P),
  3775. D = l(D);
  3776. var G = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,
  3777. U = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;
  3778. k = l(k),
  3779. O = l(O),
  3780. B = l(B);
  3781. var W = 0;
  3782. n.STATE = {
  3783. BEGIN: W++,
  3784. TEXT: W++,
  3785. TEXT_ENTITY: W++,
  3786. OPEN_WAKA: W++,
  3787. SGML_DECL: W++,
  3788. SGML_DECL_QUOTED: W++,
  3789. DOCTYPE: W++,
  3790. DOCTYPE_QUOTED: W++,
  3791. DOCTYPE_DTD: W++,
  3792. DOCTYPE_DTD_QUOTED: W++,
  3793. COMMENT_STARTING: W++,
  3794. COMMENT: W++,
  3795. COMMENT_ENDING: W++,
  3796. COMMENT_ENDED: W++,
  3797. CDATA: W++,
  3798. CDATA_ENDING: W++,
  3799. CDATA_ENDING_2: W++,
  3800. PROC_INST: W++,
  3801. PROC_INST_BODY: W++,
  3802. PROC_INST_ENDING: W++,
  3803. OPEN_TAG: W++,
  3804. OPEN_TAG_SLASH: W++,
  3805. ATTRIB: W++,
  3806. ATTRIB_NAME: W++,
  3807. ATTRIB_NAME_SAW_WHITE: W++,
  3808. ATTRIB_VALUE: W++,
  3809. ATTRIB_VALUE_QUOTED: W++,
  3810. ATTRIB_VALUE_CLOSED: W++,
  3811. ATTRIB_VALUE_UNQUOTED: W++,
  3812. ATTRIB_VALUE_ENTITY_Q: W++,
  3813. ATTRIB_VALUE_ENTITY_U: W++,
  3814. CLOSE_TAG: W++,
  3815. CLOSE_TAG_SAW_WHITE: W++,
  3816. SCRIPT: W++,
  3817. SCRIPT_ENDING: W++
  3818. },
  3819. n.ENTITIES = {
  3820. amp: "&",
  3821. gt: ">",
  3822. lt: "<",
  3823. quot: '"',
  3824. apos: "'",
  3825. AElig: 198,
  3826. Aacute: 193,
  3827. Acirc: 194,
  3828. Agrave: 192,
  3829. Aring: 197,
  3830. Atilde: 195,
  3831. Auml: 196,
  3832. Ccedil: 199,
  3833. ETH: 208,
  3834. Eacute: 201,
  3835. Ecirc: 202,
  3836. Egrave: 200,
  3837. Euml: 203,
  3838. Iacute: 205,
  3839. Icirc: 206,
  3840. Igrave: 204,
  3841. Iuml: 207,
  3842. Ntilde: 209,
  3843. Oacute: 211,
  3844. Ocirc: 212,
  3845. Ograve: 210,
  3846. Oslash: 216,
  3847. Otilde: 213,
  3848. Ouml: 214,
  3849. THORN: 222,
  3850. Uacute: 218,
  3851. Ucirc: 219,
  3852. Ugrave: 217,
  3853. Uuml: 220,
  3854. Yacute: 221,
  3855. aacute: 225,
  3856. acirc: 226,
  3857. aelig: 230,
  3858. agrave: 224,
  3859. aring: 229,
  3860. atilde: 227,
  3861. auml: 228,
  3862. ccedil: 231,
  3863. eacute: 233,
  3864. ecirc: 234,
  3865. egrave: 232,
  3866. eth: 240,
  3867. euml: 235,
  3868. iacute: 237,
  3869. icirc: 238,
  3870. igrave: 236,
  3871. iuml: 239,
  3872. ntilde: 241,
  3873. oacute: 243,
  3874. ocirc: 244,
  3875. ograve: 242,
  3876. oslash: 248,
  3877. otilde: 245,
  3878. ouml: 246,
  3879. szlig: 223,
  3880. thorn: 254,
  3881. uacute: 250,
  3882. ucirc: 251,
  3883. ugrave: 249,
  3884. uuml: 252,
  3885. yacute: 253,
  3886. yuml: 255,
  3887. copy: 169,
  3888. reg: 174,
  3889. nbsp: 160,
  3890. iexcl: 161,
  3891. cent: 162,
  3892. pound: 163,
  3893. curren: 164,
  3894. yen: 165,
  3895. brvbar: 166,
  3896. sect: 167,
  3897. uml: 168,
  3898. ordf: 170,
  3899. laquo: 171,
  3900. not: 172,
  3901. shy: 173,
  3902. macr: 175,
  3903. deg: 176,
  3904. plusmn: 177,
  3905. sup1: 185,
  3906. sup2: 178,
  3907. sup3: 179,
  3908. acute: 180,
  3909. micro: 181,
  3910. para: 182,
  3911. middot: 183,
  3912. cedil: 184,
  3913. ordm: 186,
  3914. raquo: 187,
  3915. frac14: 188,
  3916. frac12: 189,
  3917. frac34: 190,
  3918. iquest: 191,
  3919. times: 215,
  3920. divide: 247,
  3921. OElig: 338,
  3922. oelig: 339,
  3923. Scaron: 352,
  3924. scaron: 353,
  3925. Yuml: 376,
  3926. fnof: 402,
  3927. circ: 710,
  3928. tilde: 732,
  3929. Alpha: 913,
  3930. Beta: 914,
  3931. Gamma: 915,
  3932. Delta: 916,
  3933. Epsilon: 917,
  3934. Zeta: 918,
  3935. Eta: 919,
  3936. Theta: 920,
  3937. Iota: 921,
  3938. Kappa: 922,
  3939. Lambda: 923,
  3940. Mu: 924,
  3941. Nu: 925,
  3942. Xi: 926,
  3943. Omicron: 927,
  3944. Pi: 928,
  3945. Rho: 929,
  3946. Sigma: 931,
  3947. Tau: 932,
  3948. Upsilon: 933,
  3949. Phi: 934,
  3950. Chi: 935,
  3951. Psi: 936,
  3952. Omega: 937,
  3953. alpha: 945,
  3954. beta: 946,
  3955. gamma: 947,
  3956. delta: 948,
  3957. epsilon: 949,
  3958. zeta: 950,
  3959. eta: 951,
  3960. theta: 952,
  3961. iota: 953,
  3962. kappa: 954,
  3963. lambda: 955,
  3964. mu: 956,
  3965. nu: 957,
  3966. xi: 958,
  3967. omicron: 959,
  3968. pi: 960,
  3969. rho: 961,
  3970. sigmaf: 962,
  3971. sigma: 963,
  3972. tau: 964,
  3973. upsilon: 965,
  3974. phi: 966,
  3975. chi: 967,
  3976. psi: 968,
  3977. omega: 969,
  3978. thetasym: 977,
  3979. upsih: 978,
  3980. piv: 982,
  3981. ensp: 8194,
  3982. emsp: 8195,
  3983. thinsp: 8201,
  3984. zwnj: 8204,
  3985. zwj: 8205,
  3986. lrm: 8206,
  3987. rlm: 8207,
  3988. ndash: 8211,
  3989. mdash: 8212,
  3990. lsquo: 8216,
  3991. rsquo: 8217,
  3992. sbquo: 8218,
  3993. ldquo: 8220,
  3994. rdquo: 8221,
  3995. bdquo: 8222,
  3996. dagger: 8224,
  3997. Dagger: 8225,
  3998. bull: 8226,
  3999. hellip: 8230,
  4000. permil: 8240,
  4001. prime: 8242,
  4002. Prime: 8243,
  4003. lsaquo: 8249,
  4004. rsaquo: 8250,
  4005. oline: 8254,
  4006. frasl: 8260,
  4007. euro: 8364,
  4008. image: 8465,
  4009. weierp: 8472,
  4010. real: 8476,
  4011. trade: 8482,
  4012. alefsym: 8501,
  4013. larr: 8592,
  4014. uarr: 8593,
  4015. rarr: 8594,
  4016. darr: 8595,
  4017. harr: 8596,
  4018. crarr: 8629,
  4019. lArr: 8656,
  4020. uArr: 8657,
  4021. rArr: 8658,
  4022. dArr: 8659,
  4023. hArr: 8660,
  4024. forall: 8704,
  4025. part: 8706,
  4026. exist: 8707,
  4027. empty: 8709,
  4028. nabla: 8711,
  4029. isin: 8712,
  4030. notin: 8713,
  4031. ni: 8715,
  4032. prod: 8719,
  4033. sum: 8721,
  4034. minus: 8722,
  4035. lowast: 8727,
  4036. radic: 8730,
  4037. prop: 8733,
  4038. infin: 8734,
  4039. ang: 8736,
  4040. and: 8743,
  4041. or: 8744,
  4042. cap: 8745,
  4043. cup: 8746,
  4044. int: 8747,
  4045. there4: 8756,
  4046. sim: 8764,
  4047. cong: 8773,
  4048. asymp: 8776,
  4049. ne: 8800,
  4050. equiv: 8801,
  4051. le: 8804,
  4052. ge: 8805,
  4053. sub: 8834,
  4054. sup: 8835,
  4055. nsub: 8836,
  4056. sube: 8838,
  4057. supe: 8839,
  4058. oplus: 8853,
  4059. otimes: 8855,
  4060. perp: 8869,
  4061. sdot: 8901,
  4062. lceil: 8968,
  4063. rceil: 8969,
  4064. lfloor: 8970,
  4065. rfloor: 8971,
  4066. lang: 9001,
  4067. rang: 9002,
  4068. loz: 9674,
  4069. spades: 9824,
  4070. clubs: 9827,
  4071. hearts: 9829,
  4072. diams: 9830
  4073. },
  4074. Object.keys(n.ENTITIES).forEach(function(e) {
  4075. var t = n.ENTITIES[e],
  4076. r = "number" == typeof t ? String.fromCharCode(t) : t;
  4077. n.ENTITIES[e] = r
  4078. });
  4079. for (var W in n.STATE) n.STATE[n.STATE[W]] = W;
  4080. W = n.STATE,
  4081. String.fromCodePoint || !
  4082. function() {
  4083. var e = String.fromCharCode,
  4084. t = Math.floor,
  4085. n = function() {
  4086. var n, r, i = 16384,
  4087. o = [],
  4088. a = -1,
  4089. s = arguments.length;
  4090. if (!s) return "";
  4091. for (var c = ""; ++a < s;) {
  4092. var l = Number(arguments[a]);
  4093. if (!isFinite(l) || l < 0 || l > 1114111 || t(l) != l) throw RangeError("Invalid code point: " + l);
  4094. l <= 65535 ? o.push(l) : (l -= 65536, n = (l >> 10) + 55296, r = l % 1024 + 56320, o.push(n, r)),
  4095. (a + 1 == s || o.length > i) && (c += e.apply(null, o), o.length = 0)
  4096. }
  4097. return c
  4098. };
  4099. Object.defineProperty ? Object.defineProperty(String, "fromCodePoint", {
  4100. value: n,
  4101. configurable: !0,
  4102. writable: !0
  4103. }) : String.fromCodePoint = n
  4104. } ()
  4105. } ("undefined" == typeof n ? sax = {}: n)
  4106. }).call(this, void 0)
  4107. },
  4108. {
  4109. undefined: void 0
  4110. }],
  4111. 22 : [function(t, n, r) { !
  4112. function(t) {
  4113. "use strict";
  4114. function i() {
  4115. this.data = [null],
  4116. this.top = 0
  4117. }
  4118. function o() {
  4119. return new i
  4120. }
  4121. i.prototype.clear = function() {
  4122. return this.data = [null],
  4123. this.top = 0,
  4124. this
  4125. },
  4126. i.prototype.length = function() {
  4127. return this.top
  4128. },
  4129. i.prototype.peek = function() {
  4130. return this.data[this.top]
  4131. },
  4132. i.prototype.pop = function() {
  4133. return this.top > 0 ? (this.top--, this.data.pop()) : void 0
  4134. },
  4135. i.prototype.push = function(e) {
  4136. return this.data[++this.top] = e,
  4137. this
  4138. },
  4139. "undefined" != typeof r ? n.exports = o: "function" == typeof e ? e(function() {
  4140. return o
  4141. }) : t.stack = o
  4142. } (this)
  4143. },
  4144. {}],
  4145. 23 : [function(e, t, n) {
  4146. t.exports = e(27)
  4147. },
  4148. {
  4149. 27 : 27
  4150. }],
  4151. 24 : [function(e, t, n) {
  4152. "use strict";
  4153. function r() {}
  4154. r.prototype.get = function(e) {
  4155. return this.$model.properties.get(this, e)
  4156. },
  4157. r.prototype.set = function(e, t) {
  4158. this.$model.properties.set(this, e, t)
  4159. },
  4160. t.exports = r
  4161. },
  4162. {}],
  4163. 25 : [function(e, t, n) {
  4164. "use strict";
  4165. function r(e) {
  4166. this.ns = e,
  4167. this.name = e.name,
  4168. this.allTypes = [],
  4169. this.properties = [],
  4170. this.propertiesByName = {}
  4171. }
  4172. var i = e(203),
  4173. o = e(197),
  4174. a = e(83),
  4175. s = e(28).parseName;
  4176. t.exports = r,
  4177. r.prototype.build = function() {
  4178. return i(this, ["ns", "name", "allTypes", "properties", "propertiesByName", "bodyProperty", "idProperty"])
  4179. },
  4180. r.prototype.addProperty = function(e, t, n) {
  4181. "boolean" == typeof t && (n = t, t = void 0),
  4182. this.addNamedProperty(e, n !== !1);
  4183. var r = this.properties;
  4184. void 0 !== t ? r.splice(t, 0, e) : r.push(e)
  4185. },
  4186. r.prototype.replaceProperty = function(e, t, n) {
  4187. var r = e.ns,
  4188. i = this.properties,
  4189. o = this.propertiesByName,
  4190. a = e.name !== t.name;
  4191. if (e.isId) {
  4192. if (!t.isId) throw new Error("property <" + t.ns.name + "> must be id property to refine <" + e.ns.name + ">");
  4193. this.setIdProperty(t, !1)
  4194. }
  4195. if (e.isBody) {
  4196. if (!t.isBody) throw new Error("property <" + t.ns.name + "> must be body property to refine <" + e.ns.name + ">");
  4197. this.setBodyProperty(t, !1)
  4198. }
  4199. var s = i.indexOf(e);
  4200. if (s === -1) throw new Error("property <" + r.name + "> not found in property list");
  4201. i.splice(s, 1),
  4202. this.addProperty(t, n ? void 0 : s, a),
  4203. o[r.name] = o[r.localName] = t
  4204. },
  4205. r.prototype.redefineProperty = function(e, t, n) {
  4206. var r = e.ns.prefix,
  4207. i = t.split("#"),
  4208. o = s(i[0], r),
  4209. a = s(i[1], o.prefix).name,
  4210. c = this.propertiesByName[a];
  4211. if (!c) throw new Error("refined property <" + a + "> not found");
  4212. this.replaceProperty(c, e, n),
  4213. delete e.redefines
  4214. },
  4215. r.prototype.addNamedProperty = function(e, t) {
  4216. var n = e.ns,
  4217. r = this.propertiesByName;
  4218. t && (this.assertNotDefined(e, n.name), this.assertNotDefined(e, n.localName)),
  4219. r[n.name] = r[n.localName] = e
  4220. },
  4221. r.prototype.removeNamedProperty = function(e) {
  4222. var t = e.ns,
  4223. n = this.propertiesByName;
  4224. delete n[t.name],
  4225. delete n[t.localName]
  4226. },
  4227. r.prototype.setBodyProperty = function(e, t) {
  4228. if (t && this.bodyProperty) throw new Error("body property defined multiple times (<" + this.bodyProperty.ns.name + ">, <" + e.ns.name + ">)");
  4229. this.bodyProperty = e
  4230. },
  4231. r.prototype.setIdProperty = function(e, t) {
  4232. if (t && this.idProperty) throw new Error("id property defined multiple times (<" + this.idProperty.ns.name + ">, <" + e.ns.name + ">)");
  4233. this.idProperty = e
  4234. },
  4235. r.prototype.assertNotDefined = function(e, t) {
  4236. var n = e.name,
  4237. r = this.propertiesByName[n];
  4238. if (r) throw new Error("property <" + n + "> already defined; override of <" + r.definedBy.ns.name + "#" + r.ns.name + "> by <" + e.definedBy.ns.name + "#" + e.ns.name + "> not allowed without redefines")
  4239. },
  4240. r.prototype.hasProperty = function(e) {
  4241. return this.propertiesByName[e]
  4242. },
  4243. r.prototype.addTrait = function(e, t) {
  4244. var n = this.allTypes;
  4245. n.indexOf(e) === -1 && (a(e.properties,
  4246. function(n) {
  4247. n = o({},
  4248. n, {
  4249. name: n.ns.localName,
  4250. inherited: t
  4251. }),
  4252. Object.defineProperty(n, "definedBy", {
  4253. value: e
  4254. });
  4255. var r = n.replaces,
  4256. i = n.redefines;
  4257. r || i ? this.redefineProperty(n, r || i, r) : (n.isBody && this.setBodyProperty(n), n.isId && this.setIdProperty(n), this.addProperty(n))
  4258. },
  4259. this), n.push(e))
  4260. }
  4261. },
  4262. {
  4263. 197 : 197,
  4264. 203 : 203,
  4265. 28 : 28,
  4266. 83 : 83
  4267. }],
  4268. 26 : [function(e, t, n) {
  4269. "use strict";
  4270. function r(e, t) {
  4271. this.model = e,
  4272. this.properties = t
  4273. }
  4274. var i = e(83),
  4275. o = e(24);
  4276. t.exports = r,
  4277. r.prototype.createType = function(e) {
  4278. function t(e) {
  4279. r.define(this, "$type", {
  4280. value: s,
  4281. enumerable: !0
  4282. }),
  4283. r.define(this, "$attrs", {
  4284. value: {}
  4285. }),
  4286. r.define(this, "$parent", {
  4287. writable: !0
  4288. }),
  4289. i(e,
  4290. function(e, t) {
  4291. this.set(t, e)
  4292. },
  4293. this)
  4294. }
  4295. var n = this.model,
  4296. r = this.properties,
  4297. a = Object.create(o.prototype);
  4298. i(e.properties,
  4299. function(e) {
  4300. e.isMany || void 0 === e.
  4301. default || (a[e.name] = e.
  4302. default)
  4303. }),
  4304. r.defineModel(a, n),
  4305. r.defineDescriptor(a, e);
  4306. var s = e.ns.name;
  4307. return t.prototype = a,
  4308. t.hasType = a.$instanceOf = this.model.hasType,
  4309. r.defineModel(t, n),
  4310. r.defineDescriptor(t, e),
  4311. t
  4312. }
  4313. },
  4314. {
  4315. 24 : 24,
  4316. 83 : 83
  4317. }],
  4318. 27 : [function(e, t, n) {
  4319. "use strict";
  4320. function r(e) {
  4321. this.properties = new u(this),
  4322. this.factory = new c(this, this.properties),
  4323. this.registry = new l(e, this.properties),
  4324. this.typeCache = {}
  4325. }
  4326. var i = e(194),
  4327. o = e(192),
  4328. a = e(83),
  4329. s = e(82),
  4330. c = e(26),
  4331. l = e(30),
  4332. u = e(29),
  4333. p = e(28).parseName;
  4334. t.exports = r,
  4335. r.prototype.create = function(e, t) {
  4336. var n = this.getType(e);
  4337. if (!n) throw new Error("unknown type <" + e + ">");
  4338. return new n(t)
  4339. },
  4340. r.prototype.getType = function(e) {
  4341. var t = this.typeCache,
  4342. n = i(e) ? e: e.ns.name,
  4343. r = t[n];
  4344. return r || (e = this.registry.getEffectiveDescriptor(n), r = t[n] = this.factory.createType(e)),
  4345. r
  4346. },
  4347. r.prototype.createAny = function(e, t, n) {
  4348. var r = p(e),
  4349. i = {
  4350. $type: e
  4351. },
  4352. s = {
  4353. name: e,
  4354. isGeneric: !0,
  4355. ns: {
  4356. prefix: r.prefix,
  4357. localName: r.localName,
  4358. uri: t
  4359. }
  4360. };
  4361. return this.properties.defineDescriptor(i, s),
  4362. this.properties.defineModel(i, this),
  4363. this.properties.define(i, "$parent", {
  4364. enumerable: !1,
  4365. writable: !0
  4366. }),
  4367. a(n,
  4368. function(e, t) {
  4369. o(e) && void 0 !== e.value ? i[e.name] = e.value: i[t] = e
  4370. }),
  4371. i
  4372. },
  4373. r.prototype.getPackage = function(e) {
  4374. return this.registry.getPackage(e)
  4375. },
  4376. r.prototype.getPackages = function() {
  4377. return this.registry.getPackages()
  4378. },
  4379. r.prototype.getElementDescriptor = function(e) {
  4380. return e.$descriptor
  4381. },
  4382. r.prototype.hasType = function(e, t) {
  4383. void 0 === t && (t = e, e = this);
  4384. var n = e.$model.getElementDescriptor(e);
  4385. return !! s(n.allTypes,
  4386. function(e) {
  4387. return e.name === t
  4388. })
  4389. },
  4390. r.prototype.getPropertyDescriptor = function(e, t) {
  4391. return this.getElementDescriptor(e).propertiesByName[t]
  4392. }
  4393. },
  4394. {
  4395. 192 : 192,
  4396. 194 : 194,
  4397. 26 : 26,
  4398. 28 : 28,
  4399. 29 : 29,
  4400. 30 : 30,
  4401. 82 : 82,
  4402. 83 : 83
  4403. }],
  4404. 28 : [function(e, t, n) {
  4405. "use strict";
  4406. t.exports.parseName = function(e, t) {
  4407. var n, r, i = e.split(/:/);
  4408. if (1 === i.length) n = e,
  4409. r = t;
  4410. else {
  4411. if (2 !== i.length) throw new Error("expected <prefix:localName> or <localName>, got " + e);
  4412. n = i[1],
  4413. r = i[0]
  4414. }
  4415. return e = (r ? r + ":": "") + n,
  4416. {
  4417. name: e,
  4418. prefix: r,
  4419. localName: n
  4420. }
  4421. }
  4422. },
  4423. {}],
  4424. 29 : [function(e, t, n) {
  4425. "use strict";
  4426. function r(e) {
  4427. this.model = e
  4428. }
  4429. function i(e) {
  4430. return "undefined" == typeof e
  4431. }
  4432. function o(e, t, n) {
  4433. Object.defineProperty(e, t.name, {
  4434. enumerable: !t.isReference,
  4435. writable: !0,
  4436. value: n,
  4437. configurable: !0
  4438. })
  4439. }
  4440. t.exports = r,
  4441. r.prototype.set = function(e, t, n) {
  4442. var r = this.model.getPropertyDescriptor(e, t),
  4443. a = r && r.name;
  4444. i(n) ? r ? delete e[a] : delete e.$attrs[t] : r ? a in e ? e[a] = n: o(e, r, n) : e.$attrs[t] = n
  4445. },
  4446. r.prototype.get = function(e, t) {
  4447. var n = this.model.getPropertyDescriptor(e, t);
  4448. if (!n) return e.$attrs[t];
  4449. var r = n.name;
  4450. return ! e[r] && n.isMany && o(e, n, []),
  4451. e[r]
  4452. },
  4453. r.prototype.define = function(e, t, n) {
  4454. Object.defineProperty(e, t, n)
  4455. },
  4456. r.prototype.defineDescriptor = function(e, t) {
  4457. this.define(e, "$descriptor", {
  4458. value: t
  4459. })
  4460. },
  4461. r.prototype.defineModel = function(e, t) {
  4462. this.define(e, "$model", {
  4463. value: t
  4464. })
  4465. }
  4466. },
  4467. {}],
  4468. 30 : [function(e, t, n) {
  4469. "use strict";
  4470. function r(e, t) {
  4471. this.packageMap = {},
  4472. this.typeMap = {},
  4473. this.packages = [],
  4474. this.properties = t,
  4475. o(e, this.registerPackage, this)
  4476. }
  4477. var i = e(197),
  4478. o = e(83),
  4479. a = e(31),
  4480. s = e(25),
  4481. c = e(28).parseName,
  4482. l = a.isBuiltIn;
  4483. t.exports = r,
  4484. r.prototype.getPackage = function(e) {
  4485. return this.packageMap[e]
  4486. },
  4487. r.prototype.getPackages = function() {
  4488. return this.packages
  4489. },
  4490. r.prototype.registerPackage = function(e) {
  4491. e = i({},
  4492. e),
  4493. o(e.types,
  4494. function(t) {
  4495. this.registerType(t, e)
  4496. },
  4497. this),
  4498. this.packageMap[e.uri] = this.packageMap[e.prefix] = e,
  4499. this.packages.push(e)
  4500. },
  4501. r.prototype.registerType = function(e, t) {
  4502. e = i({},
  4503. e, {
  4504. superClass: (e.superClass || []).slice(),
  4505. extends: (e.extends || []).slice(),
  4506. properties: (e.properties || []).slice()
  4507. });
  4508. var n = c(e.name, t.prefix),
  4509. r = n.name,
  4510. a = {};
  4511. o(e.properties,
  4512. function(e) {
  4513. var t = c(e.name, n.prefix),
  4514. r = t.name;
  4515. l(e.type) || (e.type = c(e.type, t.prefix).name),
  4516. i(e, {
  4517. ns: t,
  4518. name: r
  4519. }),
  4520. a[r] = e
  4521. }),
  4522. i(e, {
  4523. ns: n,
  4524. name: r,
  4525. propertiesByName: a
  4526. }),
  4527. o(e.extends,
  4528. function(e) {
  4529. var t = this.typeMap[e];
  4530. t.traits = t.traits || [],
  4531. t.traits.push(r)
  4532. },
  4533. this),
  4534. this.definePackage(e, t),
  4535. this.typeMap[r] = e
  4536. },
  4537. r.prototype.mapTypes = function(e, t, n) {
  4538. function r(e) {
  4539. return i(e, !0)
  4540. }
  4541. function i(n, r) {
  4542. var i = c(n, l(n) ? "": e.prefix);
  4543. s.mapTypes(i, t, r)
  4544. }
  4545. var a = l(e.name) ? {
  4546. name: e.name
  4547. }: this.typeMap[e.name],
  4548. s = this;
  4549. if (!a) throw new Error("unknown type <" + e.name + ">");
  4550. o(a.superClass, n ? r: i),
  4551. t(a, !n),
  4552. o(a.traits, r)
  4553. },
  4554. r.prototype.getEffectiveDescriptor = function(e) {
  4555. var t = c(e),
  4556. n = new s(t);
  4557. this.mapTypes(t,
  4558. function(e, t) {
  4559. n.addTrait(e, t)
  4560. });
  4561. var r = n.build();
  4562. return this.definePackage(r, r.allTypes[r.allTypes.length - 1].$pkg),
  4563. r
  4564. },
  4565. r.prototype.definePackage = function(e, t) {
  4566. this.properties.define(e, "$pkg", {
  4567. value: t
  4568. })
  4569. }
  4570. },
  4571. {
  4572. 197 : 197,
  4573. 25 : 25,
  4574. 28 : 28,
  4575. 31 : 31,
  4576. 83 : 83
  4577. }],
  4578. 31 : [function(e, t, n) {
  4579. "use strict";
  4580. var r = {
  4581. String: !0,
  4582. Boolean: !0,
  4583. Integer: !0,
  4584. Real: !0,
  4585. Element: !0
  4586. },
  4587. i = {
  4588. String: function(e) {
  4589. return e
  4590. },
  4591. Boolean: function(e) {
  4592. return "true" === e
  4593. },
  4594. Integer: function(e) {
  4595. return parseInt(e, 10)
  4596. },
  4597. Real: function(e) {
  4598. return parseFloat(e, 10)
  4599. }
  4600. };
  4601. t.exports.coerceType = function(e, t) {
  4602. var n = i[e];
  4603. return n ? n(t) : t
  4604. },
  4605. t.exports.isBuiltIn = function(e) {
  4606. return !! r[e]
  4607. },
  4608. t.exports.isSimple = function(e) {
  4609. return !! i[e]
  4610. }
  4611. },
  4612. {}],
  4613. 32 : [function(e, t, n) {
  4614. t.exports = {
  4615. name: "BPMN20",
  4616. uri: "http://www.omg.org/spec/BPMN/20100524/MODEL",
  4617. associations: [],
  4618. types: [{
  4619. name: "Interface",
  4620. superClass: ["RootElement"],
  4621. properties: [{
  4622. name: "name",
  4623. isAttr: !0,
  4624. type: "String"
  4625. },
  4626. {
  4627. name: "operations",
  4628. type: "Operation",
  4629. isMany: !0
  4630. },
  4631. {
  4632. name: "implementationRef",
  4633. type: "String",
  4634. isAttr: !0
  4635. }]
  4636. },
  4637. {
  4638. name: "Operation",
  4639. superClass: ["BaseElement"],
  4640. properties: [{
  4641. name: "name",
  4642. isAttr: !0,
  4643. type: "String"
  4644. },
  4645. {
  4646. name: "inMessageRef",
  4647. type: "Message",
  4648. isReference: !0
  4649. },
  4650. {
  4651. name: "outMessageRef",
  4652. type: "Message",
  4653. isReference: !0
  4654. },
  4655. {
  4656. name: "errorRef",
  4657. type: "Error",
  4658. isMany: !0,
  4659. isReference: !0
  4660. },
  4661. {
  4662. name: "implementationRef",
  4663. type: "String",
  4664. isAttr: !0
  4665. }]
  4666. },
  4667. {
  4668. name: "EndPoint",
  4669. superClass: ["RootElement"]
  4670. },
  4671. {
  4672. name: "Auditing",
  4673. superClass: ["BaseElement"]
  4674. },
  4675. {
  4676. name: "GlobalTask",
  4677. superClass: ["CallableElement"],
  4678. properties: [{
  4679. name: "resources",
  4680. type: "ResourceRole",
  4681. isMany: !0
  4682. }]
  4683. },
  4684. {
  4685. name: "Monitoring",
  4686. superClass: ["BaseElement"]
  4687. },
  4688. {
  4689. name: "Performer",
  4690. superClass: ["ResourceRole"]
  4691. },
  4692. {
  4693. name: "Process",
  4694. superClass: ["FlowElementsContainer", "CallableElement"],
  4695. properties: [{
  4696. name: "processType",
  4697. type: "ProcessType",
  4698. isAttr: !0
  4699. },
  4700. {
  4701. name: "isClosed",
  4702. isAttr: !0,
  4703. type: "Boolean"
  4704. },
  4705. {
  4706. name: "auditing",
  4707. type: "Auditing"
  4708. },
  4709. {
  4710. name: "monitoring",
  4711. type: "Monitoring"
  4712. },
  4713. {
  4714. name: "properties",
  4715. type: "Property",
  4716. isMany: !0
  4717. },
  4718. {
  4719. name: "laneSets",
  4720. type: "LaneSet",
  4721. isMany: !0,
  4722. replaces: "FlowElementsContainer#laneSets"
  4723. },
  4724. {
  4725. name: "flowElements",
  4726. type: "FlowElement",
  4727. isMany: !0,
  4728. replaces: "FlowElementsContainer#flowElements"
  4729. },
  4730. {
  4731. name: "artifacts",
  4732. type: "Artifact",
  4733. isMany: !0
  4734. },
  4735. {
  4736. name: "resources",
  4737. type: "ResourceRole",
  4738. isMany: !0
  4739. },
  4740. {
  4741. name: "correlationSubscriptions",
  4742. type: "CorrelationSubscription",
  4743. isMany: !0
  4744. },
  4745. {
  4746. name: "supports",
  4747. type: "Process",
  4748. isMany: !0,
  4749. isReference: !0
  4750. },
  4751. {
  4752. name: "definitionalCollaborationRef",
  4753. type: "Collaboration",
  4754. isAttr: !0,
  4755. isReference: !0
  4756. },
  4757. {
  4758. name: "isExecutable",
  4759. isAttr: !0,
  4760. type: "Boolean"
  4761. }]
  4762. },
  4763. {
  4764. name: "LaneSet",
  4765. superClass: ["BaseElement"],
  4766. properties: [{
  4767. name: "lanes",
  4768. type: "Lane",
  4769. isMany: !0
  4770. },
  4771. {
  4772. name: "name",
  4773. isAttr: !0,
  4774. type: "String"
  4775. }]
  4776. },
  4777. {
  4778. name: "Lane",
  4779. superClass: ["BaseElement"],
  4780. properties: [{
  4781. name: "name",
  4782. isAttr: !0,
  4783. type: "String"
  4784. },
  4785. {
  4786. name: "partitionElementRef",
  4787. type: "BaseElement",
  4788. isAttr: !0,
  4789. isReference: !0
  4790. },
  4791. {
  4792. name: "partitionElement",
  4793. type: "BaseElement"
  4794. },
  4795. {
  4796. name: "flowNodeRef",
  4797. type: "FlowNode",
  4798. isMany: !0,
  4799. isReference: !0
  4800. },
  4801. {
  4802. name: "childLaneSet",
  4803. type: "LaneSet",
  4804. xml: {
  4805. serialize: "xsi:type"
  4806. }
  4807. }]
  4808. },
  4809. {
  4810. name: "GlobalManualTask",
  4811. superClass: ["GlobalTask"]
  4812. },
  4813. {
  4814. name: "ManualTask",
  4815. superClass: ["Task"]
  4816. },
  4817. {
  4818. name: "UserTask",
  4819. superClass: ["Task"],
  4820. properties: [{
  4821. name: "renderings",
  4822. type: "Rendering",
  4823. isMany: !0
  4824. },
  4825. {
  4826. name: "implementation",
  4827. isAttr: !0,
  4828. type: "String"
  4829. }]
  4830. },
  4831. {
  4832. name: "Rendering",
  4833. superClass: ["BaseElement"]
  4834. },
  4835. {
  4836. name: "HumanPerformer",
  4837. superClass: ["Performer"]
  4838. },
  4839. {
  4840. name: "PotentialOwner",
  4841. superClass: ["HumanPerformer"]
  4842. },
  4843. {
  4844. name: "GlobalUserTask",
  4845. superClass: ["GlobalTask"],
  4846. properties: [{
  4847. name: "implementation",
  4848. isAttr: !0,
  4849. type: "String"
  4850. },
  4851. {
  4852. name: "renderings",
  4853. type: "Rendering",
  4854. isMany: !0
  4855. }]
  4856. },
  4857. {
  4858. name: "Gateway",
  4859. isAbstract: !0,
  4860. superClass: ["FlowNode"],
  4861. properties: [{
  4862. name: "gatewayDirection",
  4863. type: "GatewayDirection",
  4864. default:
  4865. "Unspecified",
  4866. isAttr: !0
  4867. }]
  4868. },
  4869. {
  4870. name: "EventBasedGateway",
  4871. superClass: ["Gateway"],
  4872. properties: [{
  4873. name: "instantiate",
  4874. default:
  4875. !1,
  4876. isAttr: !0,
  4877. type: "Boolean"
  4878. },
  4879. {
  4880. name: "eventGatewayType",
  4881. type: "EventBasedGatewayType",
  4882. isAttr: !0,
  4883. default:
  4884. "Exclusive"
  4885. }]
  4886. },
  4887. {
  4888. name: "ComplexGateway",
  4889. superClass: ["Gateway"],
  4890. properties: [{
  4891. name: "activationCondition",
  4892. type: "Expression",
  4893. xml: {
  4894. serialize: "xsi:type"
  4895. }
  4896. },
  4897. {
  4898. name: "default",
  4899. type: "SequenceFlow",
  4900. isAttr: !0,
  4901. isReference: !0
  4902. }]
  4903. },
  4904. {
  4905. name: "ExclusiveGateway",
  4906. superClass: ["Gateway"],
  4907. properties: [{
  4908. name: "default",
  4909. type: "SequenceFlow",
  4910. isAttr: !0,
  4911. isReference: !0
  4912. }]
  4913. },
  4914. {
  4915. name: "InclusiveGateway",
  4916. superClass: ["Gateway"],
  4917. properties: [{
  4918. name: "default",
  4919. type: "SequenceFlow",
  4920. isAttr: !0,
  4921. isReference: !0
  4922. }]
  4923. },
  4924. {
  4925. name: "ParallelGateway",
  4926. superClass: ["Gateway"]
  4927. },
  4928. {
  4929. name: "RootElement",
  4930. isAbstract: !0,
  4931. superClass: ["BaseElement"]
  4932. },
  4933. {
  4934. name: "Relationship",
  4935. superClass: ["BaseElement"],
  4936. properties: [{
  4937. name: "type",
  4938. isAttr: !0,
  4939. type: "String"
  4940. },
  4941. {
  4942. name: "direction",
  4943. type: "RelationshipDirection",
  4944. isAttr: !0
  4945. },
  4946. {
  4947. name: "source",
  4948. isMany: !0,
  4949. isReference: !0,
  4950. type: "Element"
  4951. },
  4952. {
  4953. name: "target",
  4954. isMany: !0,
  4955. isReference: !0,
  4956. type: "Element"
  4957. }]
  4958. },
  4959. {
  4960. name: "BaseElement",
  4961. isAbstract: !0,
  4962. properties: [{
  4963. name: "id",
  4964. isAttr: !0,
  4965. type: "String",
  4966. isId: !0
  4967. },
  4968. {
  4969. name: "documentation",
  4970. type: "Documentation",
  4971. isMany: !0
  4972. },
  4973. {
  4974. name: "extensionDefinitions",
  4975. type: "ExtensionDefinition",
  4976. isMany: !0,
  4977. isReference: !0
  4978. },
  4979. {
  4980. name: "extensionElements",
  4981. type: "ExtensionElements"
  4982. }]
  4983. },
  4984. {
  4985. name: "Extension",
  4986. properties: [{
  4987. name: "mustUnderstand",
  4988. default:
  4989. !1,
  4990. isAttr: !0,
  4991. type: "Boolean"
  4992. },
  4993. {
  4994. name: "definition",
  4995. type: "ExtensionDefinition"
  4996. }]
  4997. },
  4998. {
  4999. name: "ExtensionDefinition",
  5000. properties: [{
  5001. name: "name",
  5002. isAttr: !0,
  5003. type: "String"
  5004. },
  5005. {
  5006. name: "extensionAttributeDefinitions",
  5007. type: "ExtensionAttributeDefinition",
  5008. isMany: !0
  5009. }]
  5010. },
  5011. {
  5012. name: "ExtensionAttributeDefinition",
  5013. properties: [{
  5014. name: "name",
  5015. isAttr: !0,
  5016. type: "String"
  5017. },
  5018. {
  5019. name: "type",
  5020. isAttr: !0,
  5021. type: "String"
  5022. },
  5023. {
  5024. name: "isReference",
  5025. default:
  5026. !1,
  5027. isAttr: !0,
  5028. type: "Boolean"
  5029. },
  5030. {
  5031. name: "extensionDefinition",
  5032. type: "ExtensionDefinition",
  5033. isAttr: !0,
  5034. isReference: !0
  5035. }]
  5036. },
  5037. {
  5038. name: "ExtensionElements",
  5039. properties: [{
  5040. name: "valueRef",
  5041. isAttr: !0,
  5042. isReference: !0,
  5043. type: "Element"
  5044. },
  5045. {
  5046. name: "values",
  5047. type: "Element",
  5048. isMany: !0
  5049. },
  5050. {
  5051. name: "extensionAttributeDefinition",
  5052. type: "ExtensionAttributeDefinition",
  5053. isAttr: !0,
  5054. isReference: !0
  5055. }]
  5056. },
  5057. {
  5058. name: "Documentation",
  5059. superClass: ["BaseElement"],
  5060. properties: [{
  5061. name: "text",
  5062. type: "String",
  5063. isBody: !0
  5064. },
  5065. {
  5066. name: "textFormat",
  5067. default:
  5068. "text/plain",
  5069. isAttr: !0,
  5070. type: "String"
  5071. }]
  5072. },
  5073. {
  5074. name: "Event",
  5075. isAbstract: !0,
  5076. superClass: ["FlowNode", "InteractionNode"],
  5077. properties: [{
  5078. name: "properties",
  5079. type: "Property",
  5080. isMany: !0
  5081. }]
  5082. },
  5083. {
  5084. name: "IntermediateCatchEvent",
  5085. superClass: ["CatchEvent"]
  5086. },
  5087. {
  5088. name: "IntermediateThrowEvent",
  5089. superClass: ["ThrowEvent"]
  5090. },
  5091. {
  5092. name: "EndEvent",
  5093. superClass: ["ThrowEvent"]
  5094. },
  5095. {
  5096. name: "StartEvent",
  5097. superClass: ["CatchEvent"],
  5098. properties: [{
  5099. name: "isInterrupting",
  5100. default:
  5101. !0,
  5102. isAttr: !0,
  5103. type: "Boolean"
  5104. }]
  5105. },
  5106. {
  5107. name: "ThrowEvent",
  5108. isAbstract: !0,
  5109. superClass: ["Event"],
  5110. properties: [{
  5111. name: "dataInputs",
  5112. type: "DataInput",
  5113. isMany: !0
  5114. },
  5115. {
  5116. name: "dataInputAssociations",
  5117. type: "DataInputAssociation",
  5118. isMany: !0
  5119. },
  5120. {
  5121. name: "inputSet",
  5122. type: "InputSet"
  5123. },
  5124. {
  5125. name: "eventDefinitions",
  5126. type: "EventDefinition",
  5127. isMany: !0
  5128. },
  5129. {
  5130. name: "eventDefinitionRef",
  5131. type: "EventDefinition",
  5132. isMany: !0,
  5133. isReference: !0
  5134. }]
  5135. },
  5136. {
  5137. name: "CatchEvent",
  5138. isAbstract: !0,
  5139. superClass: ["Event"],
  5140. properties: [{
  5141. name: "parallelMultiple",
  5142. isAttr: !0,
  5143. type: "Boolean",
  5144. default:
  5145. !1
  5146. },
  5147. {
  5148. name: "dataOutputs",
  5149. type: "DataOutput",
  5150. isMany: !0
  5151. },
  5152. {
  5153. name: "dataOutputAssociations",
  5154. type: "DataOutputAssociation",
  5155. isMany: !0
  5156. },
  5157. {
  5158. name: "outputSet",
  5159. type: "OutputSet"
  5160. },
  5161. {
  5162. name: "eventDefinitions",
  5163. type: "EventDefinition",
  5164. isMany: !0
  5165. },
  5166. {
  5167. name: "eventDefinitionRef",
  5168. type: "EventDefinition",
  5169. isMany: !0,
  5170. isReference: !0
  5171. }]
  5172. },
  5173. {
  5174. name: "BoundaryEvent",
  5175. superClass: ["CatchEvent"],
  5176. properties: [{
  5177. name: "cancelActivity",
  5178. default:
  5179. !0,
  5180. isAttr: !0,
  5181. type: "Boolean"
  5182. },
  5183. {
  5184. name: "attachedToRef",
  5185. type: "Activity",
  5186. isAttr: !0,
  5187. isReference: !0
  5188. }]
  5189. },
  5190. {
  5191. name: "EventDefinition",
  5192. isAbstract: !0,
  5193. superClass: ["RootElement"]
  5194. },
  5195. {
  5196. name: "CancelEventDefinition",
  5197. superClass: ["EventDefinition"]
  5198. },
  5199. {
  5200. name: "ErrorEventDefinition",
  5201. superClass: ["EventDefinition"],
  5202. properties: [{
  5203. name: "errorRef",
  5204. type: "Error",
  5205. isAttr: !0,
  5206. isReference: !0
  5207. }]
  5208. },
  5209. {
  5210. name: "TerminateEventDefinition",
  5211. superClass: ["EventDefinition"]
  5212. },
  5213. {
  5214. name: "EscalationEventDefinition",
  5215. superClass: ["EventDefinition"],
  5216. properties: [{
  5217. name: "escalationRef",
  5218. type: "Escalation",
  5219. isAttr: !0,
  5220. isReference: !0
  5221. }]
  5222. },
  5223. {
  5224. name: "Escalation",
  5225. properties: [{
  5226. name: "structureRef",
  5227. type: "ItemDefinition",
  5228. isAttr: !0,
  5229. isReference: !0
  5230. },
  5231. {
  5232. name: "name",
  5233. isAttr: !0,
  5234. type: "String"
  5235. },
  5236. {
  5237. name: "escalationCode",
  5238. isAttr: !0,
  5239. type: "String"
  5240. }],
  5241. superClass: ["RootElement"]
  5242. },
  5243. {
  5244. name: "CompensateEventDefinition",
  5245. superClass: ["EventDefinition"],
  5246. properties: [{
  5247. name: "waitForCompletion",
  5248. isAttr: !0,
  5249. type: "Boolean"
  5250. },
  5251. {
  5252. name: "activityRef",
  5253. type: "Activity",
  5254. isAttr: !0,
  5255. isReference: !0
  5256. }]
  5257. },
  5258. {
  5259. name: "TimerEventDefinition",
  5260. superClass: ["EventDefinition"],
  5261. properties: [{
  5262. name: "timeDate",
  5263. type: "Expression",
  5264. xml: {
  5265. serialize: "xsi:type"
  5266. }
  5267. },
  5268. {
  5269. name: "timeCycle",
  5270. type: "Expression",
  5271. xml: {
  5272. serialize: "xsi:type"
  5273. }
  5274. },
  5275. {
  5276. name: "timeDuration",
  5277. type: "Expression",
  5278. xml: {
  5279. serialize: "xsi:type"
  5280. }
  5281. }]
  5282. },
  5283. {
  5284. name: "LinkEventDefinition",
  5285. superClass: ["EventDefinition"],
  5286. properties: [{
  5287. name: "name",
  5288. isAttr: !0,
  5289. type: "String"
  5290. },
  5291. {
  5292. name: "target",
  5293. type: "LinkEventDefinition",
  5294. isAttr: !0,
  5295. isReference: !0
  5296. },
  5297. {
  5298. name: "source",
  5299. type: "LinkEventDefinition",
  5300. isMany: !0,
  5301. isReference: !0
  5302. }]
  5303. },
  5304. {
  5305. name: "MessageEventDefinition",
  5306. superClass: ["EventDefinition"],
  5307. properties: [{
  5308. name: "messageRef",
  5309. type: "Message",
  5310. isAttr: !0,
  5311. isReference: !0
  5312. },
  5313. {
  5314. name: "operationRef",
  5315. type: "Operation",
  5316. isAttr: !0,
  5317. isReference: !0
  5318. }]
  5319. },
  5320. {
  5321. name: "ConditionalEventDefinition",
  5322. superClass: ["EventDefinition"],
  5323. properties: [{
  5324. name: "condition",
  5325. type: "Expression",
  5326. xml: {
  5327. serialize: "xsi:type"
  5328. }
  5329. }]
  5330. },
  5331. {
  5332. name: "SignalEventDefinition",
  5333. superClass: ["EventDefinition"],
  5334. properties: [{
  5335. name: "signalRef",
  5336. type: "Signal",
  5337. isAttr: !0,
  5338. isReference: !0
  5339. }]
  5340. },
  5341. {
  5342. name: "Signal",
  5343. superClass: ["RootElement"],
  5344. properties: [{
  5345. name: "structureRef",
  5346. type: "ItemDefinition",
  5347. isAttr: !0,
  5348. isReference: !0
  5349. },
  5350. {
  5351. name: "name",
  5352. isAttr: !0,
  5353. type: "String"
  5354. }]
  5355. },
  5356. {
  5357. name: "ImplicitThrowEvent",
  5358. superClass: ["ThrowEvent"]
  5359. },
  5360. {
  5361. name: "DataState",
  5362. superClass: ["BaseElement"],
  5363. properties: [{
  5364. name: "name",
  5365. isAttr: !0,
  5366. type: "String"
  5367. }]
  5368. },
  5369. {
  5370. name: "ItemAwareElement",
  5371. superClass: ["BaseElement"],
  5372. properties: [{
  5373. name: "itemSubjectRef",
  5374. type: "ItemDefinition",
  5375. isAttr: !0,
  5376. isReference: !0
  5377. },
  5378. {
  5379. name: "dataState",
  5380. type: "DataState"
  5381. }]
  5382. },
  5383. {
  5384. name: "DataAssociation",
  5385. superClass: ["BaseElement"],
  5386. properties: [{
  5387. name: "assignment",
  5388. type: "Assignment",
  5389. isMany: !0
  5390. },
  5391. {
  5392. name: "sourceRef",
  5393. type: "ItemAwareElement",
  5394. isMany: !0,
  5395. isReference: !0
  5396. },
  5397. {
  5398. name: "targetRef",
  5399. type: "ItemAwareElement",
  5400. isReference: !0
  5401. },
  5402. {
  5403. name: "transformation",
  5404. type: "FormalExpression",
  5405. xml: {
  5406. serialize: "property"
  5407. }
  5408. }]
  5409. },
  5410. {
  5411. name: "DataInput",
  5412. superClass: ["ItemAwareElement"],
  5413. properties: [{
  5414. name: "name",
  5415. isAttr: !0,
  5416. type: "String"
  5417. },
  5418. {
  5419. name: "isCollection",
  5420. default:
  5421. !1,
  5422. isAttr: !0,
  5423. type: "Boolean"
  5424. },
  5425. {
  5426. name: "inputSetRef",
  5427. type: "InputSet",
  5428. isVirtual: !0,
  5429. isMany: !0,
  5430. isReference: !0
  5431. },
  5432. {
  5433. name: "inputSetWithOptional",
  5434. type: "InputSet",
  5435. isVirtual: !0,
  5436. isMany: !0,
  5437. isReference: !0
  5438. },
  5439. {
  5440. name: "inputSetWithWhileExecuting",
  5441. type: "InputSet",
  5442. isVirtual: !0,
  5443. isMany: !0,
  5444. isReference: !0
  5445. }]
  5446. },
  5447. {
  5448. name: "DataOutput",
  5449. superClass: ["ItemAwareElement"],
  5450. properties: [{
  5451. name: "name",
  5452. isAttr: !0,
  5453. type: "String"
  5454. },
  5455. {
  5456. name: "isCollection",
  5457. default:
  5458. !1,
  5459. isAttr: !0,
  5460. type: "Boolean"
  5461. },
  5462. {
  5463. name: "outputSetRef",
  5464. type: "OutputSet",
  5465. isVirtual: !0,
  5466. isMany: !0,
  5467. isReference: !0
  5468. },
  5469. {
  5470. name: "outputSetWithOptional",
  5471. type: "OutputSet",
  5472. isVirtual: !0,
  5473. isMany: !0,
  5474. isReference: !0
  5475. },
  5476. {
  5477. name: "outputSetWithWhileExecuting",
  5478. type: "OutputSet",
  5479. isVirtual: !0,
  5480. isMany: !0,
  5481. isReference: !0
  5482. }]
  5483. },
  5484. {
  5485. name: "InputSet",
  5486. superClass: ["BaseElement"],
  5487. properties: [{
  5488. name: "name",
  5489. isAttr: !0,
  5490. type: "String"
  5491. },
  5492. {
  5493. name: "dataInputRefs",
  5494. type: "DataInput",
  5495. isMany: !0,
  5496. isReference: !0
  5497. },
  5498. {
  5499. name: "optionalInputRefs",
  5500. type: "DataInput",
  5501. isMany: !0,
  5502. isReference: !0
  5503. },
  5504. {
  5505. name: "whileExecutingInputRefs",
  5506. type: "DataInput",
  5507. isMany: !0,
  5508. isReference: !0
  5509. },
  5510. {
  5511. name: "outputSetRefs",
  5512. type: "OutputSet",
  5513. isMany: !0,
  5514. isReference: !0
  5515. }]
  5516. },
  5517. {
  5518. name: "OutputSet",
  5519. superClass: ["BaseElement"],
  5520. properties: [{
  5521. name: "dataOutputRefs",
  5522. type: "DataOutput",
  5523. isMany: !0,
  5524. isReference: !0
  5525. },
  5526. {
  5527. name: "name",
  5528. isAttr: !0,
  5529. type: "String"
  5530. },
  5531. {
  5532. name: "inputSetRefs",
  5533. type: "InputSet",
  5534. isMany: !0,
  5535. isReference: !0
  5536. },
  5537. {
  5538. name: "optionalOutputRefs",
  5539. type: "DataOutput",
  5540. isMany: !0,
  5541. isReference: !0
  5542. },
  5543. {
  5544. name: "whileExecutingOutputRefs",
  5545. type: "DataOutput",
  5546. isMany: !0,
  5547. isReference: !0
  5548. }]
  5549. },
  5550. {
  5551. name: "Property",
  5552. superClass: ["ItemAwareElement"],
  5553. properties: [{
  5554. name: "name",
  5555. isAttr: !0,
  5556. type: "String"
  5557. }]
  5558. },
  5559. {
  5560. name: "DataInputAssociation",
  5561. superClass: ["DataAssociation"]
  5562. },
  5563. {
  5564. name: "DataOutputAssociation",
  5565. superClass: ["DataAssociation"]
  5566. },
  5567. {
  5568. name: "InputOutputSpecification",
  5569. superClass: ["BaseElement"],
  5570. properties: [{
  5571. name: "dataInputs",
  5572. type: "DataInput",
  5573. isMany: !0
  5574. },
  5575. {
  5576. name: "dataOutputs",
  5577. type: "DataOutput",
  5578. isMany: !0
  5579. },
  5580. {
  5581. name: "inputSets",
  5582. type: "InputSet",
  5583. isMany: !0
  5584. },
  5585. {
  5586. name: "outputSets",
  5587. type: "OutputSet",
  5588. isMany: !0
  5589. }]
  5590. },
  5591. {
  5592. name: "DataObject",
  5593. superClass: ["FlowElement", "ItemAwareElement"],
  5594. properties: [{
  5595. name: "isCollection",
  5596. default:
  5597. !1,
  5598. isAttr: !0,
  5599. type: "Boolean"
  5600. }]
  5601. },
  5602. {
  5603. name: "InputOutputBinding",
  5604. properties: [{
  5605. name: "inputDataRef",
  5606. type: "InputSet",
  5607. isAttr: !0,
  5608. isReference: !0
  5609. },
  5610. {
  5611. name: "outputDataRef",
  5612. type: "OutputSet",
  5613. isAttr: !0,
  5614. isReference: !0
  5615. },
  5616. {
  5617. name: "operationRef",
  5618. type: "Operation",
  5619. isAttr: !0,
  5620. isReference: !0
  5621. }]
  5622. },
  5623. {
  5624. name: "Assignment",
  5625. superClass: ["BaseElement"],
  5626. properties: [{
  5627. name: "from",
  5628. type: "Expression",
  5629. xml: {
  5630. serialize: "xsi:type"
  5631. }
  5632. },
  5633. {
  5634. name: "to",
  5635. type: "Expression",
  5636. xml: {
  5637. serialize: "xsi:type"
  5638. }
  5639. }]
  5640. },
  5641. {
  5642. name: "DataStore",
  5643. superClass: ["RootElement", "ItemAwareElement"],
  5644. properties: [{
  5645. name: "name",
  5646. isAttr: !0,
  5647. type: "String"
  5648. },
  5649. {
  5650. name: "capacity",
  5651. isAttr: !0,
  5652. type: "Integer"
  5653. },
  5654. {
  5655. name: "isUnlimited",
  5656. default:
  5657. !0,
  5658. isAttr: !0,
  5659. type: "Boolean"
  5660. }]
  5661. },
  5662. {
  5663. name: "DataStoreReference",
  5664. superClass: ["ItemAwareElement", "FlowElement"],
  5665. properties: [{
  5666. name: "dataStoreRef",
  5667. type: "DataStore",
  5668. isAttr: !0,
  5669. isReference: !0
  5670. }]
  5671. },
  5672. {
  5673. name: "DataObjectReference",
  5674. superClass: ["ItemAwareElement", "FlowElement"],
  5675. properties: [{
  5676. name: "dataObjectRef",
  5677. type: "DataObject",
  5678. isAttr: !0,
  5679. isReference: !0
  5680. }]
  5681. },
  5682. {
  5683. name: "ConversationLink",
  5684. superClass: ["BaseElement"],
  5685. properties: [{
  5686. name: "sourceRef",
  5687. type: "InteractionNode",
  5688. isAttr: !0,
  5689. isReference: !0
  5690. },
  5691. {
  5692. name: "targetRef",
  5693. type: "InteractionNode",
  5694. isAttr: !0,
  5695. isReference: !0
  5696. },
  5697. {
  5698. name: "name",
  5699. isAttr: !0,
  5700. type: "String"
  5701. }]
  5702. },
  5703. {
  5704. name: "ConversationAssociation",
  5705. superClass: ["BaseElement"],
  5706. properties: [{
  5707. name: "innerConversationNodeRef",
  5708. type: "ConversationNode",
  5709. isAttr: !0,
  5710. isReference: !0
  5711. },
  5712. {
  5713. name: "outerConversationNodeRef",
  5714. type: "ConversationNode",
  5715. isAttr: !0,
  5716. isReference: !0
  5717. }]
  5718. },
  5719. {
  5720. name: "CallConversation",
  5721. superClass: ["ConversationNode"],
  5722. properties: [{
  5723. name: "calledCollaborationRef",
  5724. type: "Collaboration",
  5725. isAttr: !0,
  5726. isReference: !0
  5727. },
  5728. {
  5729. name: "participantAssociations",
  5730. type: "ParticipantAssociation",
  5731. isMany: !0
  5732. }]
  5733. },
  5734. {
  5735. name: "Conversation",
  5736. superClass: ["ConversationNode"]
  5737. },
  5738. {
  5739. name: "SubConversation",
  5740. superClass: ["ConversationNode"],
  5741. properties: [{
  5742. name: "conversationNodes",
  5743. type: "ConversationNode",
  5744. isMany: !0
  5745. }]
  5746. },
  5747. {
  5748. name: "ConversationNode",
  5749. isAbstract: !0,
  5750. superClass: ["InteractionNode", "BaseElement"],
  5751. properties: [{
  5752. name: "name",
  5753. isAttr: !0,
  5754. type: "String"
  5755. },
  5756. {
  5757. name: "participantRefs",
  5758. type: "Participant",
  5759. isMany: !0,
  5760. isReference: !0
  5761. },
  5762. {
  5763. name: "messageFlowRefs",
  5764. type: "MessageFlow",
  5765. isMany: !0,
  5766. isReference: !0
  5767. },
  5768. {
  5769. name: "correlationKeys",
  5770. type: "CorrelationKey",
  5771. isMany: !0
  5772. }]
  5773. },
  5774. {
  5775. name: "GlobalConversation",
  5776. superClass: ["Collaboration"]
  5777. },
  5778. {
  5779. name: "PartnerEntity",
  5780. superClass: ["RootElement"],
  5781. properties: [{
  5782. name: "name",
  5783. isAttr: !0,
  5784. type: "String"
  5785. },
  5786. {
  5787. name: "participantRef",
  5788. type: "Participant",
  5789. isMany: !0,
  5790. isReference: !0
  5791. }]
  5792. },
  5793. {
  5794. name: "PartnerRole",
  5795. superClass: ["RootElement"],
  5796. properties: [{
  5797. name: "name",
  5798. isAttr: !0,
  5799. type: "String"
  5800. },
  5801. {
  5802. name: "participantRef",
  5803. type: "Participant",
  5804. isMany: !0,
  5805. isReference: !0
  5806. }]
  5807. },
  5808. {
  5809. name: "CorrelationProperty",
  5810. superClass: ["RootElement"],
  5811. properties: [{
  5812. name: "correlationPropertyRetrievalExpression",
  5813. type: "CorrelationPropertyRetrievalExpression",
  5814. isMany: !0
  5815. },
  5816. {
  5817. name: "name",
  5818. isAttr: !0,
  5819. type: "String"
  5820. },
  5821. {
  5822. name: "type",
  5823. type: "ItemDefinition",
  5824. isAttr: !0,
  5825. isReference: !0
  5826. }]
  5827. },
  5828. {
  5829. name: "Error",
  5830. superClass: ["RootElement"],
  5831. properties: [{
  5832. name: "structureRef",
  5833. type: "ItemDefinition",
  5834. isAttr: !0,
  5835. isReference: !0
  5836. },
  5837. {
  5838. name: "name",
  5839. isAttr: !0,
  5840. type: "String"
  5841. },
  5842. {
  5843. name: "errorCode",
  5844. isAttr: !0,
  5845. type: "String"
  5846. }]
  5847. },
  5848. {
  5849. name: "CorrelationKey",
  5850. superClass: ["BaseElement"],
  5851. properties: [{
  5852. name: "correlationPropertyRef",
  5853. type: "CorrelationProperty",
  5854. isMany: !0,
  5855. isReference: !0
  5856. },
  5857. {
  5858. name: "name",
  5859. isAttr: !0,
  5860. type: "String"
  5861. }]
  5862. },
  5863. {
  5864. name: "Expression",
  5865. superClass: ["BaseElement"],
  5866. isAbstract: !0
  5867. },
  5868. {
  5869. name: "FormalExpression",
  5870. superClass: ["Expression"],
  5871. properties: [{
  5872. name: "language",
  5873. isAttr: !0,
  5874. type: "String"
  5875. },
  5876. {
  5877. name: "body",
  5878. type: "String",
  5879. isBody: !0
  5880. },
  5881. {
  5882. name: "evaluatesToTypeRef",
  5883. type: "ItemDefinition",
  5884. isAttr: !0,
  5885. isReference: !0
  5886. }]
  5887. },
  5888. {
  5889. name: "Message",
  5890. superClass: ["RootElement"],
  5891. properties: [{
  5892. name: "name",
  5893. isAttr: !0,
  5894. type: "String"
  5895. },
  5896. {
  5897. name: "itemRef",
  5898. type: "ItemDefinition",
  5899. isAttr: !0,
  5900. isReference: !0
  5901. }]
  5902. },
  5903. {
  5904. name: "ItemDefinition",
  5905. superClass: ["RootElement"],
  5906. properties: [{
  5907. name: "itemKind",
  5908. type: "ItemKind",
  5909. isAttr: !0
  5910. },
  5911. {
  5912. name: "structureRef",
  5913. type: "String",
  5914. isAttr: !0
  5915. },
  5916. {
  5917. name: "isCollection",
  5918. default:
  5919. !1,
  5920. isAttr: !0,
  5921. type: "Boolean"
  5922. },
  5923. {
  5924. name: "import",
  5925. type: "Import",
  5926. isAttr: !0,
  5927. isReference: !0
  5928. }]
  5929. },
  5930. {
  5931. name: "FlowElement",
  5932. isAbstract: !0,
  5933. superClass: ["BaseElement"],
  5934. properties: [{
  5935. name: "name",
  5936. isAttr: !0,
  5937. type: "String"
  5938. },
  5939. {
  5940. name: "auditing",
  5941. type: "Auditing"
  5942. },
  5943. {
  5944. name: "monitoring",
  5945. type: "Monitoring"
  5946. },
  5947. {
  5948. name: "categoryValueRef",
  5949. type: "CategoryValue",
  5950. isMany: !0,
  5951. isReference: !0
  5952. }]
  5953. },
  5954. {
  5955. name: "SequenceFlow",
  5956. superClass: ["FlowElement"],
  5957. properties: [{
  5958. name: "isImmediate",
  5959. isAttr: !0,
  5960. type: "Boolean"
  5961. },
  5962. {
  5963. name: "conditionExpression",
  5964. type: "Expression",
  5965. xml: {
  5966. serialize: "xsi:type"
  5967. }
  5968. },
  5969. {
  5970. name: "sourceRef",
  5971. type: "FlowNode",
  5972. isAttr: !0,
  5973. isReference: !0
  5974. },
  5975. {
  5976. name: "targetRef",
  5977. type: "FlowNode",
  5978. isAttr: !0,
  5979. isReference: !0
  5980. }]
  5981. },
  5982. {
  5983. name: "FlowElementsContainer",
  5984. isAbstract: !0,
  5985. superClass: ["BaseElement"],
  5986. properties: [{
  5987. name: "laneSets",
  5988. type: "LaneSet",
  5989. isMany: !0
  5990. },
  5991. {
  5992. name: "flowElements",
  5993. type: "FlowElement",
  5994. isMany: !0
  5995. }]
  5996. },
  5997. {
  5998. name: "CallableElement",
  5999. isAbstract: !0,
  6000. superClass: ["RootElement"],
  6001. properties: [{
  6002. name: "name",
  6003. isAttr: !0,
  6004. type: "String"
  6005. },
  6006. {
  6007. name: "ioSpecification",
  6008. type: "InputOutputSpecification",
  6009. xml: {
  6010. serialize: "property"
  6011. }
  6012. },
  6013. {
  6014. name: "supportedInterfaceRef",
  6015. type: "Interface",
  6016. isMany: !0,
  6017. isReference: !0
  6018. },
  6019. {
  6020. name: "ioBinding",
  6021. type: "InputOutputBinding",
  6022. isMany: !0,
  6023. xml: {
  6024. serialize: "property"
  6025. }
  6026. }]
  6027. },
  6028. {
  6029. name: "FlowNode",
  6030. isAbstract: !0,
  6031. superClass: ["FlowElement"],
  6032. properties: [{
  6033. name: "incoming",
  6034. type: "SequenceFlow",
  6035. isMany: !0,
  6036. isReference: !0
  6037. },
  6038. {
  6039. name: "outgoing",
  6040. type: "SequenceFlow",
  6041. isMany: !0,
  6042. isReference: !0
  6043. },
  6044. {
  6045. name: "lanes",
  6046. type: "Lane",
  6047. isVirtual: !0,
  6048. isMany: !0,
  6049. isReference: !0
  6050. }]
  6051. },
  6052. {
  6053. name: "CorrelationPropertyRetrievalExpression",
  6054. superClass: ["BaseElement"],
  6055. properties: [{
  6056. name: "messagePath",
  6057. type: "FormalExpression"
  6058. },
  6059. {
  6060. name: "messageRef",
  6061. type: "Message",
  6062. isAttr: !0,
  6063. isReference: !0
  6064. }]
  6065. },
  6066. {
  6067. name: "CorrelationPropertyBinding",
  6068. superClass: ["BaseElement"],
  6069. properties: [{
  6070. name: "dataPath",
  6071. type: "FormalExpression"
  6072. },
  6073. {
  6074. name: "correlationPropertyRef",
  6075. type: "CorrelationProperty",
  6076. isAttr: !0,
  6077. isReference: !0
  6078. }]
  6079. },
  6080. {
  6081. name: "Resource",
  6082. superClass: ["RootElement"],
  6083. properties: [{
  6084. name: "name",
  6085. isAttr: !0,
  6086. type: "String"
  6087. },
  6088. {
  6089. name: "resourceParameters",
  6090. type: "ResourceParameter",
  6091. isMany: !0
  6092. }]
  6093. },
  6094. {
  6095. name: "ResourceParameter",
  6096. superClass: ["BaseElement"],
  6097. properties: [{
  6098. name: "name",
  6099. isAttr: !0,
  6100. type: "String"
  6101. },
  6102. {
  6103. name: "isRequired",
  6104. isAttr: !0,
  6105. type: "Boolean"
  6106. },
  6107. {
  6108. name: "type",
  6109. type: "ItemDefinition",
  6110. isAttr: !0,
  6111. isReference: !0
  6112. }]
  6113. },
  6114. {
  6115. name: "CorrelationSubscription",
  6116. superClass: ["BaseElement"],
  6117. properties: [{
  6118. name: "correlationKeyRef",
  6119. type: "CorrelationKey",
  6120. isAttr: !0,
  6121. isReference: !0
  6122. },
  6123. {
  6124. name: "correlationPropertyBinding",
  6125. type: "CorrelationPropertyBinding",
  6126. isMany: !0
  6127. }]
  6128. },
  6129. {
  6130. name: "MessageFlow",
  6131. superClass: ["BaseElement"],
  6132. properties: [{
  6133. name: "name",
  6134. isAttr: !0,
  6135. type: "String"
  6136. },
  6137. {
  6138. name: "sourceRef",
  6139. type: "InteractionNode",
  6140. isAttr: !0,
  6141. isReference: !0
  6142. },
  6143. {
  6144. name: "targetRef",
  6145. type: "InteractionNode",
  6146. isAttr: !0,
  6147. isReference: !0
  6148. },
  6149. {
  6150. name: "messageRef",
  6151. type: "Message",
  6152. isAttr: !0,
  6153. isReference: !0
  6154. }]
  6155. },
  6156. {
  6157. name: "MessageFlowAssociation",
  6158. superClass: ["BaseElement"],
  6159. properties: [{
  6160. name: "innerMessageFlowRef",
  6161. type: "MessageFlow",
  6162. isAttr: !0,
  6163. isReference: !0
  6164. },
  6165. {
  6166. name: "outerMessageFlowRef",
  6167. type: "MessageFlow",
  6168. isAttr: !0,
  6169. isReference: !0
  6170. }]
  6171. },
  6172. {
  6173. name: "InteractionNode",
  6174. isAbstract: !0,
  6175. properties: [{
  6176. name: "incomingConversationLinks",
  6177. type: "ConversationLink",
  6178. isVirtual: !0,
  6179. isMany: !0,
  6180. isReference: !0
  6181. },
  6182. {
  6183. name: "outgoingConversationLinks",
  6184. type: "ConversationLink",
  6185. isVirtual: !0,
  6186. isMany: !0,
  6187. isReference: !0
  6188. }]
  6189. },
  6190. {
  6191. name: "Participant",
  6192. superClass: ["InteractionNode", "BaseElement"],
  6193. properties: [{
  6194. name: "name",
  6195. isAttr: !0,
  6196. type: "String"
  6197. },
  6198. {
  6199. name: "interfaceRef",
  6200. type: "Interface",
  6201. isMany: !0,
  6202. isReference: !0
  6203. },
  6204. {
  6205. name: "participantMultiplicity",
  6206. type: "ParticipantMultiplicity"
  6207. },
  6208. {
  6209. name: "endPointRefs",
  6210. type: "EndPoint",
  6211. isMany: !0,
  6212. isReference: !0
  6213. },
  6214. {
  6215. name: "processRef",
  6216. type: "Process",
  6217. isAttr: !0,
  6218. isReference: !0
  6219. }]
  6220. },
  6221. {
  6222. name: "ParticipantAssociation",
  6223. superClass: ["BaseElement"],
  6224. properties: [{
  6225. name: "innerParticipantRef",
  6226. type: "Participant",
  6227. isAttr: !0,
  6228. isReference: !0
  6229. },
  6230. {
  6231. name: "outerParticipantRef",
  6232. type: "Participant",
  6233. isAttr: !0,
  6234. isReference: !0
  6235. }]
  6236. },
  6237. {
  6238. name: "ParticipantMultiplicity",
  6239. properties: [{
  6240. name: "minimum",
  6241. default:
  6242. 0,
  6243. isAttr: !0,
  6244. type: "Integer"
  6245. },
  6246. {
  6247. name: "maximum",
  6248. default:
  6249. 1,
  6250. isAttr: !0,
  6251. type: "Integer"
  6252. }]
  6253. },
  6254. {
  6255. name: "Collaboration",
  6256. superClass: ["RootElement"],
  6257. properties: [{
  6258. name: "name",
  6259. isAttr: !0,
  6260. type: "String"
  6261. },
  6262. {
  6263. name: "isClosed",
  6264. isAttr: !0,
  6265. type: "Boolean"
  6266. },
  6267. {
  6268. name: "participants",
  6269. type: "Participant",
  6270. isMany: !0
  6271. },
  6272. {
  6273. name: "messageFlows",
  6274. type: "MessageFlow",
  6275. isMany: !0
  6276. },
  6277. {
  6278. name: "artifacts",
  6279. type: "Artifact",
  6280. isMany: !0
  6281. },
  6282. {
  6283. name: "conversations",
  6284. type: "ConversationNode",
  6285. isMany: !0
  6286. },
  6287. {
  6288. name: "conversationAssociations",
  6289. type: "ConversationAssociation"
  6290. },
  6291. {
  6292. name: "participantAssociations",
  6293. type: "ParticipantAssociation",
  6294. isMany: !0
  6295. },
  6296. {
  6297. name: "messageFlowAssociations",
  6298. type: "MessageFlowAssociation",
  6299. isMany: !0
  6300. },
  6301. {
  6302. name: "correlationKeys",
  6303. type: "CorrelationKey",
  6304. isMany: !0
  6305. },
  6306. {
  6307. name: "choreographyRef",
  6308. type: "Choreography",
  6309. isMany: !0,
  6310. isReference: !0
  6311. },
  6312. {
  6313. name: "conversationLinks",
  6314. type: "ConversationLink",
  6315. isMany: !0
  6316. }]
  6317. },
  6318. {
  6319. name: "ChoreographyActivity",
  6320. isAbstract: !0,
  6321. superClass: ["FlowNode"],
  6322. properties: [{
  6323. name: "participantRefs",
  6324. type: "Participant",
  6325. isMany: !0,
  6326. isReference: !0
  6327. },
  6328. {
  6329. name: "initiatingParticipantRef",
  6330. type: "Participant",
  6331. isAttr: !0,
  6332. isReference: !0
  6333. },
  6334. {
  6335. name: "correlationKeys",
  6336. type: "CorrelationKey",
  6337. isMany: !0
  6338. },
  6339. {
  6340. name: "loopType",
  6341. type: "ChoreographyLoopType",
  6342. default:
  6343. "None",
  6344. isAttr: !0
  6345. }]
  6346. },
  6347. {
  6348. name: "CallChoreography",
  6349. superClass: ["ChoreographyActivity"],
  6350. properties: [{
  6351. name: "calledChoreographyRef",
  6352. type: "Choreography",
  6353. isAttr: !0,
  6354. isReference: !0
  6355. },
  6356. {
  6357. name: "participantAssociations",
  6358. type: "ParticipantAssociation",
  6359. isMany: !0
  6360. }]
  6361. },
  6362. {
  6363. name: "SubChoreography",
  6364. superClass: ["ChoreographyActivity", "FlowElementsContainer"],
  6365. properties: [{
  6366. name: "artifacts",
  6367. type: "Artifact",
  6368. isMany: !0
  6369. }]
  6370. },
  6371. {
  6372. name: "ChoreographyTask",
  6373. superClass: ["ChoreographyActivity"],
  6374. properties: [{
  6375. name: "messageFlowRef",
  6376. type: "MessageFlow",
  6377. isMany: !0,
  6378. isReference: !0
  6379. }]
  6380. },
  6381. {
  6382. name: "Choreography",
  6383. superClass: ["FlowElementsContainer", "Collaboration"]
  6384. },
  6385. {
  6386. name: "GlobalChoreographyTask",
  6387. superClass: ["Choreography"],
  6388. properties: [{
  6389. name: "initiatingParticipantRef",
  6390. type: "Participant",
  6391. isAttr: !0,
  6392. isReference: !0
  6393. }]
  6394. },
  6395. {
  6396. name: "TextAnnotation",
  6397. superClass: ["Artifact"],
  6398. properties: [{
  6399. name: "text",
  6400. type: "String"
  6401. },
  6402. {
  6403. name: "textFormat",
  6404. default:
  6405. "text/plain",
  6406. isAttr: !0,
  6407. type: "String"
  6408. }]
  6409. },
  6410. {
  6411. name: "Group",
  6412. superClass: ["Artifact"],
  6413. properties: [{
  6414. name: "categoryValueRef",
  6415. type: "CategoryValue",
  6416. isAttr: !0,
  6417. isReference: !0
  6418. }]
  6419. },
  6420. {
  6421. name: "Association",
  6422. superClass: ["Artifact"],
  6423. properties: [{
  6424. name: "associationDirection",
  6425. type: "AssociationDirection",
  6426. isAttr: !0
  6427. },
  6428. {
  6429. name: "sourceRef",
  6430. type: "BaseElement",
  6431. isAttr: !0,
  6432. isReference: !0
  6433. },
  6434. {
  6435. name: "targetRef",
  6436. type: "BaseElement",
  6437. isAttr: !0,
  6438. isReference: !0
  6439. }]
  6440. },
  6441. {
  6442. name: "Category",
  6443. superClass: ["RootElement"],
  6444. properties: [{
  6445. name: "categoryValue",
  6446. type: "CategoryValue",
  6447. isMany: !0
  6448. },
  6449. {
  6450. name: "name",
  6451. isAttr: !0,
  6452. type: "String"
  6453. }]
  6454. },
  6455. {
  6456. name: "Artifact",
  6457. isAbstract: !0,
  6458. superClass: ["BaseElement"]
  6459. },
  6460. {
  6461. name: "CategoryValue",
  6462. superClass: ["BaseElement"],
  6463. properties: [{
  6464. name: "categorizedFlowElements",
  6465. type: "FlowElement",
  6466. isVirtual: !0,
  6467. isMany: !0,
  6468. isReference: !0
  6469. },
  6470. {
  6471. name: "value",
  6472. isAttr: !0,
  6473. type: "String"
  6474. }]
  6475. },
  6476. {
  6477. name: "Activity",
  6478. isAbstract: !0,
  6479. superClass: ["FlowNode"],
  6480. properties: [{
  6481. name: "isForCompensation",
  6482. default:
  6483. !1,
  6484. isAttr: !0,
  6485. type: "Boolean"
  6486. },
  6487. {
  6488. name: "default",
  6489. type: "SequenceFlow",
  6490. isAttr: !0,
  6491. isReference: !0
  6492. },
  6493. {
  6494. name: "ioSpecification",
  6495. type: "InputOutputSpecification",
  6496. xml: {
  6497. serialize: "property"
  6498. }
  6499. },
  6500. {
  6501. name: "boundaryEventRefs",
  6502. type: "BoundaryEvent",
  6503. isMany: !0,
  6504. isReference: !0
  6505. },
  6506. {
  6507. name: "properties",
  6508. type: "Property",
  6509. isMany: !0
  6510. },
  6511. {
  6512. name: "dataInputAssociations",
  6513. type: "DataInputAssociation",
  6514. isMany: !0
  6515. },
  6516. {
  6517. name: "dataOutputAssociations",
  6518. type: "DataOutputAssociation",
  6519. isMany: !0
  6520. },
  6521. {
  6522. name: "startQuantity",
  6523. default:
  6524. 1,
  6525. isAttr: !0,
  6526. type: "Integer"
  6527. },
  6528. {
  6529. name: "resources",
  6530. type: "ResourceRole",
  6531. isMany: !0
  6532. },
  6533. {
  6534. name: "completionQuantity",
  6535. default:
  6536. 1,
  6537. isAttr: !0,
  6538. type: "Integer"
  6539. },
  6540. {
  6541. name: "loopCharacteristics",
  6542. type: "LoopCharacteristics"
  6543. }]
  6544. },
  6545. {
  6546. name: "ServiceTask",
  6547. superClass: ["Task"],
  6548. properties: [{
  6549. name: "implementation",
  6550. isAttr: !0,
  6551. type: "String"
  6552. },
  6553. {
  6554. name: "operationRef",
  6555. type: "Operation",
  6556. isAttr: !0,
  6557. isReference: !0
  6558. }]
  6559. },
  6560. {
  6561. name: "SubProcess",
  6562. superClass: ["Activity", "FlowElementsContainer", "InteractionNode"],
  6563. properties: [{
  6564. name: "triggeredByEvent",
  6565. default:
  6566. !1,
  6567. isAttr: !0,
  6568. type: "Boolean"
  6569. },
  6570. {
  6571. name: "artifacts",
  6572. type: "Artifact",
  6573. isMany: !0
  6574. }]
  6575. },
  6576. {
  6577. name: "LoopCharacteristics",
  6578. isAbstract: !0,
  6579. superClass: ["BaseElement"]
  6580. },
  6581. {
  6582. name: "MultiInstanceLoopCharacteristics",
  6583. superClass: ["LoopCharacteristics"],
  6584. properties: [{
  6585. name: "isSequential",
  6586. default:
  6587. !1,
  6588. isAttr: !0,
  6589. type: "Boolean"
  6590. },
  6591. {
  6592. name: "behavior",
  6593. type: "MultiInstanceBehavior",
  6594. default:
  6595. "All",
  6596. isAttr: !0
  6597. },
  6598. {
  6599. name: "loopCardinality",
  6600. type: "Expression",
  6601. xml: {
  6602. serialize: "xsi:type"
  6603. }
  6604. },
  6605. {
  6606. name: "loopDataInputRef",
  6607. type: "ItemAwareElement",
  6608. isReference: !0
  6609. },
  6610. {
  6611. name: "loopDataOutputRef",
  6612. type: "ItemAwareElement",
  6613. isReference: !0
  6614. },
  6615. {
  6616. name: "inputDataItem",
  6617. type: "DataInput",
  6618. xml: {
  6619. serialize: "property"
  6620. }
  6621. },
  6622. {
  6623. name: "outputDataItem",
  6624. type: "DataOutput",
  6625. xml: {
  6626. serialize: "property"
  6627. }
  6628. },
  6629. {
  6630. name: "complexBehaviorDefinition",
  6631. type: "ComplexBehaviorDefinition",
  6632. isMany: !0
  6633. },
  6634. {
  6635. name: "completionCondition",
  6636. type: "Expression",
  6637. xml: {
  6638. serialize: "xsi:type"
  6639. }
  6640. },
  6641. {
  6642. name: "oneBehaviorEventRef",
  6643. type: "EventDefinition",
  6644. isAttr: !0,
  6645. isReference: !0
  6646. },
  6647. {
  6648. name: "noneBehaviorEventRef",
  6649. type: "EventDefinition",
  6650. isAttr: !0,
  6651. isReference: !0
  6652. }]
  6653. },
  6654. {
  6655. name: "StandardLoopCharacteristics",
  6656. superClass: ["LoopCharacteristics"],
  6657. properties: [{
  6658. name: "testBefore",
  6659. default:
  6660. !1,
  6661. isAttr: !0,
  6662. type: "Boolean"
  6663. },
  6664. {
  6665. name: "loopCondition",
  6666. type: "Expression",
  6667. xml: {
  6668. serialize: "xsi:type"
  6669. }
  6670. },
  6671. {
  6672. name: "loopMaximum",
  6673. type: "Expression",
  6674. xml: {
  6675. serialize: "xsi:type"
  6676. }
  6677. }]
  6678. },
  6679. {
  6680. name: "CallActivity",
  6681. superClass: ["Activity"],
  6682. properties: [{
  6683. name: "calledElement",
  6684. type: "String",
  6685. isAttr: !0
  6686. }]
  6687. },
  6688. {
  6689. name: "Task",
  6690. superClass: ["Activity", "InteractionNode"]
  6691. },
  6692. {
  6693. name: "SendTask",
  6694. superClass: ["Task"],
  6695. properties: [{
  6696. name: "implementation",
  6697. isAttr: !0,
  6698. type: "String"
  6699. },
  6700. {
  6701. name: "operationRef",
  6702. type: "Operation",
  6703. isAttr: !0,
  6704. isReference: !0
  6705. },
  6706. {
  6707. name: "messageRef",
  6708. type: "Message",
  6709. isAttr: !0,
  6710. isReference: !0
  6711. }]
  6712. },
  6713. {
  6714. name: "ReceiveTask",
  6715. superClass: ["Task"],
  6716. properties: [{
  6717. name: "implementation",
  6718. isAttr: !0,
  6719. type: "String"
  6720. },
  6721. {
  6722. name: "instantiate",
  6723. default:
  6724. !1,
  6725. isAttr: !0,
  6726. type: "Boolean"
  6727. },
  6728. {
  6729. name: "operationRef",
  6730. type: "Operation",
  6731. isAttr: !0,
  6732. isReference: !0
  6733. },
  6734. {
  6735. name: "messageRef",
  6736. type: "Message",
  6737. isAttr: !0,
  6738. isReference: !0
  6739. }]
  6740. },
  6741. {
  6742. name: "ScriptTask",
  6743. superClass: ["Task"],
  6744. properties: [{
  6745. name: "scriptFormat",
  6746. isAttr: !0,
  6747. type: "String"
  6748. },
  6749. {
  6750. name: "script",
  6751. type: "String"
  6752. }]
  6753. },
  6754. {
  6755. name: "BusinessRuleTask",
  6756. superClass: ["Task"],
  6757. properties: [{
  6758. name: "implementation",
  6759. isAttr: !0,
  6760. type: "String"
  6761. }]
  6762. },
  6763. {
  6764. name: "AdHocSubProcess",
  6765. superClass: ["SubProcess"],
  6766. properties: [{
  6767. name: "completionCondition",
  6768. type: "Expression",
  6769. xml: {
  6770. serialize: "xsi:type"
  6771. }
  6772. },
  6773. {
  6774. name: "ordering",
  6775. type: "AdHocOrdering",
  6776. isAttr: !0
  6777. },
  6778. {
  6779. name: "cancelRemainingInstances",
  6780. default:
  6781. !0,
  6782. isAttr: !0,
  6783. type: "Boolean"
  6784. }]
  6785. },
  6786. {
  6787. name: "Transaction",
  6788. superClass: ["SubProcess"],
  6789. properties: [{
  6790. name: "protocol",
  6791. isAttr: !0,
  6792. type: "String"
  6793. },
  6794. {
  6795. name: "method",
  6796. isAttr: !0,
  6797. type: "String"
  6798. }]
  6799. },
  6800. {
  6801. name: "GlobalScriptTask",
  6802. superClass: ["GlobalTask"],
  6803. properties: [{
  6804. name: "scriptLanguage",
  6805. isAttr: !0,
  6806. type: "String"
  6807. },
  6808. {
  6809. name: "script",
  6810. isAttr: !0,
  6811. type: "String"
  6812. }]
  6813. },
  6814. {
  6815. name: "GlobalBusinessRuleTask",
  6816. superClass: ["GlobalTask"],
  6817. properties: [{
  6818. name: "implementation",
  6819. isAttr: !0,
  6820. type: "String"
  6821. }]
  6822. },
  6823. {
  6824. name: "ComplexBehaviorDefinition",
  6825. superClass: ["BaseElement"],
  6826. properties: [{
  6827. name: "condition",
  6828. type: "FormalExpression"
  6829. },
  6830. {
  6831. name: "event",
  6832. type: "ImplicitThrowEvent"
  6833. }]
  6834. },
  6835. {
  6836. name: "ResourceRole",
  6837. superClass: ["BaseElement"],
  6838. properties: [{
  6839. name: "resourceRef",
  6840. type: "Resource",
  6841. isReference: !0
  6842. },
  6843. {
  6844. name: "resourceParameterBindings",
  6845. type: "ResourceParameterBinding",
  6846. isMany: !0
  6847. },
  6848. {
  6849. name: "resourceAssignmentExpression",
  6850. type: "ResourceAssignmentExpression"
  6851. },
  6852. {
  6853. name: "name",
  6854. isAttr: !0,
  6855. type: "String"
  6856. }]
  6857. },
  6858. {
  6859. name: "ResourceParameterBinding",
  6860. properties: [{
  6861. name: "expression",
  6862. type: "Expression",
  6863. xml: {
  6864. serialize: "xsi:type"
  6865. }
  6866. },
  6867. {
  6868. name: "parameterRef",
  6869. type: "ResourceParameter",
  6870. isAttr: !0,
  6871. isReference: !0
  6872. }]
  6873. },
  6874. {
  6875. name: "ResourceAssignmentExpression",
  6876. properties: [{
  6877. name: "expression",
  6878. type: "Expression",
  6879. xml: {
  6880. serialize: "xsi:type"
  6881. }
  6882. }],
  6883. superClass: ["BaseElement"]
  6884. },
  6885. {
  6886. name: "Import",
  6887. properties: [{
  6888. name: "importType",
  6889. isAttr: !0,
  6890. type: "String"
  6891. },
  6892. {
  6893. name: "location",
  6894. isAttr: !0,
  6895. type: "String"
  6896. },
  6897. {
  6898. name: "namespace",
  6899. isAttr: !0,
  6900. type: "String"
  6901. }]
  6902. },
  6903. {
  6904. name: "Definitions",
  6905. superClass: ["BaseElement"],
  6906. properties: [{
  6907. name: "name",
  6908. isAttr: !0,
  6909. type: "String"
  6910. },
  6911. {
  6912. name: "targetNamespace",
  6913. isAttr: !0,
  6914. type: "String"
  6915. },
  6916. {
  6917. name: "expressionLanguage",
  6918. default:
  6919. "http://www.w3.org/1999/XPath",
  6920. isAttr: !0,
  6921. type: "String"
  6922. },
  6923. {
  6924. name: "typeLanguage",
  6925. default:
  6926. "http://www.w3.org/2001/XMLSchema",
  6927. isAttr: !0,
  6928. type: "String"
  6929. },
  6930. {
  6931. name: "imports",
  6932. type: "Import",
  6933. isMany: !0
  6934. },
  6935. {
  6936. name: "extensions",
  6937. type: "Extension",
  6938. isMany: !0
  6939. },
  6940. {
  6941. name: "rootElements",
  6942. type: "RootElement",
  6943. isMany: !0
  6944. },
  6945. {
  6946. name: "diagrams",
  6947. isMany: !0,
  6948. type: "bpmndi:BPMNDiagram"
  6949. },
  6950. {
  6951. name: "exporter",
  6952. isAttr: !0,
  6953. type: "String"
  6954. },
  6955. {
  6956. name: "relationships",
  6957. type: "Relationship",
  6958. isMany: !0
  6959. },
  6960. {
  6961. name: "exporterVersion",
  6962. isAttr: !0,
  6963. type: "String"
  6964. }]
  6965. }],
  6966. emumerations: [{
  6967. name: "ProcessType",
  6968. literalValues: [{
  6969. name: "None"
  6970. },
  6971. {
  6972. name: "Public"
  6973. },
  6974. {
  6975. name: "Private"
  6976. }]
  6977. },
  6978. {
  6979. name: "GatewayDirection",
  6980. literalValues: [{
  6981. name: "Unspecified"
  6982. },
  6983. {
  6984. name: "Converging"
  6985. },
  6986. {
  6987. name: "Diverging"
  6988. },
  6989. {
  6990. name: "Mixed"
  6991. }]
  6992. },
  6993. {
  6994. name: "EventBasedGatewayType",
  6995. literalValues: [{
  6996. name: "Parallel"
  6997. },
  6998. {
  6999. name: "Exclusive"
  7000. }]
  7001. },
  7002. {
  7003. name: "RelationshipDirection",
  7004. literalValues: [{
  7005. name: "None"
  7006. },
  7007. {
  7008. name: "Forward"
  7009. },
  7010. {
  7011. name: "Backward"
  7012. },
  7013. {
  7014. name: "Both"
  7015. }]
  7016. },
  7017. {
  7018. name: "ItemKind",
  7019. literalValues: [{
  7020. name: "Physical"
  7021. },
  7022. {
  7023. name: "Information"
  7024. }]
  7025. },
  7026. {
  7027. name: "ChoreographyLoopType",
  7028. literalValues: [{
  7029. name: "None"
  7030. },
  7031. {
  7032. name: "Standard"
  7033. },
  7034. {
  7035. name: "MultiInstanceSequential"
  7036. },
  7037. {
  7038. name: "MultiInstanceParallel"
  7039. }]
  7040. },
  7041. {
  7042. name: "AssociationDirection",
  7043. literalValues: [{
  7044. name: "None"
  7045. },
  7046. {
  7047. name: "One"
  7048. },
  7049. {
  7050. name: "Both"
  7051. }]
  7052. },
  7053. {
  7054. name: "MultiInstanceBehavior",
  7055. literalValues: [{
  7056. name: "None"
  7057. },
  7058. {
  7059. name: "One"
  7060. },
  7061. {
  7062. name: "All"
  7063. },
  7064. {
  7065. name: "Complex"
  7066. }]
  7067. },
  7068. {
  7069. name: "AdHocOrdering",
  7070. literalValues: [{
  7071. name: "Parallel"
  7072. },
  7073. {
  7074. name: "Sequential"
  7075. }]
  7076. }],
  7077. prefix: "bpmn",
  7078. xml: {
  7079. tagAlias: "lowerCase",
  7080. typePrefix: "t"
  7081. }
  7082. }
  7083. },
  7084. {}],
  7085. 33 : [function(e, t, n) {
  7086. t.exports = {
  7087. name: "BPMNDI",
  7088. uri: "http://www.omg.org/spec/BPMN/20100524/DI",
  7089. types: [{
  7090. name: "BPMNDiagram",
  7091. properties: [{
  7092. name: "plane",
  7093. type: "BPMNPlane",
  7094. redefines: "di:Diagram#rootElement"
  7095. },
  7096. {
  7097. name: "labelStyle",
  7098. type: "BPMNLabelStyle",
  7099. isMany: !0
  7100. }],
  7101. superClass: ["di:Diagram"]
  7102. },
  7103. {
  7104. name: "BPMNPlane",
  7105. properties: [{
  7106. name: "bpmnElement",
  7107. isAttr: !0,
  7108. isReference: !0,
  7109. type: "bpmn:BaseElement",
  7110. redefines: "di:DiagramElement#modelElement"
  7111. }],
  7112. superClass: ["di:Plane"]
  7113. },
  7114. {
  7115. name: "BPMNShape",
  7116. properties: [{
  7117. name: "bpmnElement",
  7118. isAttr: !0,
  7119. isReference: !0,
  7120. type: "bpmn:BaseElement",
  7121. redefines: "di:DiagramElement#modelElement"
  7122. },
  7123. {
  7124. name: "isHorizontal",
  7125. isAttr: !0,
  7126. type: "Boolean"
  7127. },
  7128. {
  7129. name: "isExpanded",
  7130. isAttr: !0,
  7131. type: "Boolean"
  7132. },
  7133. {
  7134. name: "isMarkerVisible",
  7135. isAttr: !0,
  7136. type: "Boolean"
  7137. },
  7138. {
  7139. name: "label",
  7140. type: "BPMNLabel"
  7141. },
  7142. {
  7143. name: "isMessageVisible",
  7144. isAttr: !0,
  7145. type: "Boolean"
  7146. },
  7147. {
  7148. name: "participantBandKind",
  7149. type: "ParticipantBandKind",
  7150. isAttr: !0
  7151. },
  7152. {
  7153. name: "choreographyActivityShape",
  7154. type: "BPMNShape",
  7155. isAttr: !0,
  7156. isReference: !0
  7157. }],
  7158. superClass: ["di:LabeledShape"]
  7159. },
  7160. {
  7161. name: "BPMNEdge",
  7162. properties: [{
  7163. name: "label",
  7164. type: "BPMNLabel"
  7165. },
  7166. {
  7167. name: "bpmnElement",
  7168. isAttr: !0,
  7169. isReference: !0,
  7170. type: "bpmn:BaseElement",
  7171. redefines: "di:DiagramElement#modelElement"
  7172. },
  7173. {
  7174. name: "sourceElement",
  7175. isAttr: !0,
  7176. isReference: !0,
  7177. type: "di:DiagramElement",
  7178. redefines: "di:Edge#source"
  7179. },
  7180. {
  7181. name: "targetElement",
  7182. isAttr: !0,
  7183. isReference: !0,
  7184. type: "di:DiagramElement",
  7185. redefines: "di:Edge#target"
  7186. },
  7187. {
  7188. name: "messageVisibleKind",
  7189. type: "MessageVisibleKind",
  7190. isAttr: !0,
  7191. default:
  7192. "initiating"
  7193. }],
  7194. superClass: ["di:LabeledEdge"]
  7195. },
  7196. {
  7197. name: "BPMNLabel",
  7198. properties: [{
  7199. name: "labelStyle",
  7200. type: "BPMNLabelStyle",
  7201. isAttr: !0,
  7202. isReference: !0,
  7203. redefines: "di:DiagramElement#style"
  7204. }],
  7205. superClass: ["di:Label"]
  7206. },
  7207. {
  7208. name: "BPMNLabelStyle",
  7209. properties: [{
  7210. name: "font",
  7211. type: "dc:Font"
  7212. }],
  7213. superClass: ["di:Style"]
  7214. }],
  7215. emumerations: [{
  7216. name: "ParticipantBandKind",
  7217. literalValues: [{
  7218. name: "top_initiating"
  7219. },
  7220. {
  7221. name: "middle_initiating"
  7222. },
  7223. {
  7224. name: "bottom_initiating"
  7225. },
  7226. {
  7227. name: "top_non_initiating"
  7228. },
  7229. {
  7230. name: "middle_non_initiating"
  7231. },
  7232. {
  7233. name: "bottom_non_initiating"
  7234. }]
  7235. },
  7236. {
  7237. name: "MessageVisibleKind",
  7238. literalValues: [{
  7239. name: "initiating"
  7240. },
  7241. {
  7242. name: "non_initiating"
  7243. }]
  7244. }],
  7245. associations: [],
  7246. prefix: "bpmndi"
  7247. }
  7248. },
  7249. {}],
  7250. 34 : [function(e, t, n) {
  7251. t.exports = {
  7252. name: "DC",
  7253. uri: "http://www.omg.org/spec/DD/20100524/DC",
  7254. types: [{
  7255. name: "Boolean"
  7256. },
  7257. {
  7258. name: "Integer"
  7259. },
  7260. {
  7261. name: "Real"
  7262. },
  7263. {
  7264. name: "String"
  7265. },
  7266. {
  7267. name: "Font",
  7268. properties: [{
  7269. name: "name",
  7270. type: "String",
  7271. isAttr: !0
  7272. },
  7273. {
  7274. name: "size",
  7275. type: "Real",
  7276. isAttr: !0
  7277. },
  7278. {
  7279. name: "isBold",
  7280. type: "Boolean",
  7281. isAttr: !0
  7282. },
  7283. {
  7284. name: "isItalic",
  7285. type: "Boolean",
  7286. isAttr: !0
  7287. },
  7288. {
  7289. name: "isUnderline",
  7290. type: "Boolean",
  7291. isAttr: !0
  7292. },
  7293. {
  7294. name: "isStrikeThrough",
  7295. type: "Boolean",
  7296. isAttr: !0
  7297. }]
  7298. },
  7299. {
  7300. name: "Point",
  7301. properties: [{
  7302. name: "x",
  7303. type: "Real",
  7304. default:
  7305. "0",
  7306. isAttr: !0
  7307. },
  7308. {
  7309. name: "y",
  7310. type: "Real",
  7311. default:
  7312. "0",
  7313. isAttr: !0
  7314. }]
  7315. },
  7316. {
  7317. name: "Bounds",
  7318. properties: [{
  7319. name: "x",
  7320. type: "Real",
  7321. default:
  7322. "0",
  7323. isAttr: !0
  7324. },
  7325. {
  7326. name: "y",
  7327. type: "Real",
  7328. default:
  7329. "0",
  7330. isAttr: !0
  7331. },
  7332. {
  7333. name: "width",
  7334. type: "Real",
  7335. isAttr: !0
  7336. },
  7337. {
  7338. name: "height",
  7339. type: "Real",
  7340. isAttr: !0
  7341. }]
  7342. }],
  7343. prefix: "dc",
  7344. associations: []
  7345. }
  7346. },
  7347. {}],
  7348. 35 : [function(e, t, n) {
  7349. t.exports = {
  7350. name: "DI",
  7351. uri: "http://www.omg.org/spec/DD/20100524/DI",
  7352. types: [{
  7353. name: "DiagramElement",
  7354. isAbstract: !0,
  7355. properties: [{
  7356. name: "id",
  7357. type: "String",
  7358. isAttr: !0,
  7359. isId: !0
  7360. },
  7361. {
  7362. name: "extension",
  7363. type: "Extension"
  7364. },
  7365. {
  7366. name: "owningDiagram",
  7367. type: "Diagram",
  7368. isReadOnly: !0,
  7369. isVirtual: !0,
  7370. isReference: !0
  7371. },
  7372. {
  7373. name: "owningElement",
  7374. type: "DiagramElement",
  7375. isReadOnly: !0,
  7376. isVirtual: !0,
  7377. isReference: !0
  7378. },
  7379. {
  7380. name: "modelElement",
  7381. isReadOnly: !0,
  7382. isVirtual: !0,
  7383. isReference: !0,
  7384. type: "Element"
  7385. },
  7386. {
  7387. name: "style",
  7388. type: "Style",
  7389. isReadOnly: !0,
  7390. isVirtual: !0,
  7391. isReference: !0
  7392. },
  7393. {
  7394. name: "ownedElement",
  7395. type: "DiagramElement",
  7396. isReadOnly: !0,
  7397. isVirtual: !0,
  7398. isMany: !0
  7399. }]
  7400. },
  7401. {
  7402. name: "Node",
  7403. isAbstract: !0,
  7404. superClass: ["DiagramElement"]
  7405. },
  7406. {
  7407. name: "Edge",
  7408. isAbstract: !0,
  7409. superClass: ["DiagramElement"],
  7410. properties: [{
  7411. name: "source",
  7412. type: "DiagramElement",
  7413. isReadOnly: !0,
  7414. isVirtual: !0,
  7415. isReference: !0
  7416. },
  7417. {
  7418. name: "target",
  7419. type: "DiagramElement",
  7420. isReadOnly: !0,
  7421. isVirtual: !0,
  7422. isReference: !0
  7423. },
  7424. {
  7425. name: "waypoint",
  7426. isUnique: !1,
  7427. isMany: !0,
  7428. type: "dc:Point",
  7429. xml: {
  7430. serialize: "xsi:type"
  7431. }
  7432. }]
  7433. },
  7434. {
  7435. name: "Diagram",
  7436. isAbstract: !0,
  7437. properties: [{
  7438. name: "id",
  7439. type: "String",
  7440. isAttr: !0,
  7441. isId: !0
  7442. },
  7443. {
  7444. name: "rootElement",
  7445. type: "DiagramElement",
  7446. isReadOnly: !0,
  7447. isVirtual: !0
  7448. },
  7449. {
  7450. name: "name",
  7451. isAttr: !0,
  7452. type: "String"
  7453. },
  7454. {
  7455. name: "documentation",
  7456. isAttr: !0,
  7457. type: "String"
  7458. },
  7459. {
  7460. name: "resolution",
  7461. isAttr: !0,
  7462. type: "Real"
  7463. },
  7464. {
  7465. name: "ownedStyle",
  7466. type: "Style",
  7467. isReadOnly: !0,
  7468. isVirtual: !0,
  7469. isMany: !0
  7470. }]
  7471. },
  7472. {
  7473. name: "Shape",
  7474. isAbstract: !0,
  7475. superClass: ["Node"],
  7476. properties: [{
  7477. name: "bounds",
  7478. type: "dc:Bounds"
  7479. }]
  7480. },
  7481. {
  7482. name: "Plane",
  7483. isAbstract: !0,
  7484. superClass: ["Node"],
  7485. properties: [{
  7486. name: "planeElement",
  7487. type: "DiagramElement",
  7488. subsettedProperty: "DiagramElement-ownedElement",
  7489. isMany: !0
  7490. }]
  7491. },
  7492. {
  7493. name: "LabeledEdge",
  7494. isAbstract: !0,
  7495. superClass: ["Edge"],
  7496. properties: [{
  7497. name: "ownedLabel",
  7498. type: "Label",
  7499. isReadOnly: !0,
  7500. subsettedProperty: "DiagramElement-ownedElement",
  7501. isVirtual: !0,
  7502. isMany: !0
  7503. }]
  7504. },
  7505. {
  7506. name: "LabeledShape",
  7507. isAbstract: !0,
  7508. superClass: ["Shape"],
  7509. properties: [{
  7510. name: "ownedLabel",
  7511. type: "Label",
  7512. isReadOnly: !0,
  7513. subsettedProperty: "DiagramElement-ownedElement",
  7514. isVirtual: !0,
  7515. isMany: !0
  7516. }]
  7517. },
  7518. {
  7519. name: "Label",
  7520. isAbstract: !0,
  7521. superClass: ["Node"],
  7522. properties: [{
  7523. name: "bounds",
  7524. type: "dc:Bounds"
  7525. }]
  7526. },
  7527. {
  7528. name: "Style",
  7529. isAbstract: !0,
  7530. properties: [{
  7531. name: "id",
  7532. type: "String",
  7533. isAttr: !0,
  7534. isId: !0
  7535. }]
  7536. },
  7537. {
  7538. name: "Extension",
  7539. properties: [{
  7540. name: "values",
  7541. type: "Element",
  7542. isMany: !0
  7543. }]
  7544. }],
  7545. associations: [],
  7546. prefix: "di",
  7547. xml: {
  7548. tagAlias: "lowerCase"
  7549. }
  7550. }
  7551. },
  7552. {}],
  7553. 36 : [function(e, t, n) {
  7554. t.exports = e(37)
  7555. },
  7556. {
  7557. 37 : 37
  7558. }],
  7559. 37 : [function(e, t, n) {
  7560. "use strict";
  7561. function r(e) {
  7562. function t(e) {
  7563. return i.indexOf(e) >= 0
  7564. }
  7565. function n(e) {
  7566. i.push(e)
  7567. }
  7568. function r(e) {
  7569. t(e) || ((e.__depends__ || []).forEach(r), t(e) || (n(e), (e.__init__ || []).forEach(function(e) {
  7570. o.push(e)
  7571. })))
  7572. }
  7573. var i = [],
  7574. o = [];
  7575. e.forEach(r);
  7576. var s = new a.Injector(i);
  7577. return o.forEach(function(e) {
  7578. try {
  7579. s["string" == typeof e ? "get": "invoke"](e)
  7580. } catch(e) {
  7581. throw console.error("Failed to instantiate component"),
  7582. console.error(e.stack),
  7583. e
  7584. }
  7585. }),
  7586. s
  7587. }
  7588. function i(t) {
  7589. t = t || {};
  7590. var n = {
  7591. config: ["value", t]
  7592. },
  7593. i = e(43),
  7594. o = [n, i].concat(t.modules || []);
  7595. return r(o)
  7596. }
  7597. function o(e, t) {
  7598. this.injector = t = t || i(e),
  7599. this.get = t.get,
  7600. this.invoke = t.invoke,
  7601. this.get("eventBus").fire("diagram.init")
  7602. }
  7603. var a = e(71);
  7604. t.exports = o,
  7605. o.prototype.destroy = function() {
  7606. this.get("eventBus").fire("diagram.destroy")
  7607. },
  7608. o.prototype.clear = function() {
  7609. this.get("eventBus").fire("diagram.clear")
  7610. }
  7611. },
  7612. {
  7613. 43 : 43,
  7614. 71 : 71
  7615. }],
  7616. 38 : [function(e, t, n) {
  7617. "use strict";
  7618. function r(e, t) {
  7619. return Math.round(e * t) / t
  7620. }
  7621. function i(e) {
  7622. return l(e) ? e + "px": e
  7623. }
  7624. function o(e) {
  7625. e = u({},
  7626. {
  7627. width: "100%",
  7628. height: "100%"
  7629. },
  7630. e);
  7631. var t = e.container || document.body,
  7632. n = document.createElement("div");
  7633. return n.setAttribute("class", "djs-container"),
  7634. u(n.style, {
  7635. position: "relative",
  7636. overflow: "hidden",
  7637. width: i(e.width),
  7638. height: i(e.height)
  7639. }),
  7640. t.appendChild(n),
  7641. n
  7642. }
  7643. function a(e, t) {
  7644. return e.group().attr({
  7645. class: t
  7646. })
  7647. }
  7648. function s(e, t, n, r) {
  7649. this._eventBus = t,
  7650. this._elementRegistry = r,
  7651. this._graphicsFactory = n,
  7652. this._init(e || {})
  7653. }
  7654. function c(e, t) {
  7655. var n = "matrix(" + t.a + "," + t.b + "," + t.c + "," + t.d + "," + t.e + "," + t.f + ")";
  7656. e.setAttribute("transform", n)
  7657. }
  7658. var l = e(191),
  7659. u = e(197),
  7660. p = e(83),
  7661. f = e(80),
  7662. h = e(91),
  7663. d = e(61),
  7664. m = e(62),
  7665. y = e(76),
  7666. g = "base",
  7667. v = {
  7668. shape: ["x", "y", "width", "height"],
  7669. connection: ["waypoints"]
  7670. };
  7671. s.$inject = ["config.canvas", "eventBus", "graphicsFactory", "elementRegistry"],
  7672. t.exports = s,
  7673. s.prototype._init = function(e) {
  7674. var t = this._eventBus,
  7675. n = this._container = o(e),
  7676. r = this._svg = y.createSnapAt("100%", "100%", n),
  7677. i = this._viewport = a(r, "viewport");
  7678. this._layers = {},
  7679. e.deferUpdate !== !1 && (this._viewboxChanged = h(this._viewboxChanged, 300)),
  7680. t.on("diagram.init",
  7681. function() {
  7682. t.fire("canvas.init", {
  7683. svg: r,
  7684. viewport: i
  7685. }),
  7686. this.resized()
  7687. },
  7688. this),
  7689. t.on("diagram.destroy", 500, this._destroy, this),
  7690. t.on("diagram.clear", 500, this._clear, this)
  7691. },
  7692. s.prototype._destroy = function(e) {
  7693. this._eventBus.fire("canvas.destroy", {
  7694. svg: this._svg,
  7695. viewport: this._viewport
  7696. });
  7697. var t = this._container.parentNode;
  7698. t && t.removeChild(this._container),
  7699. delete this._svg,
  7700. delete this._container,
  7701. delete this._layers,
  7702. delete this._rootElement,
  7703. delete this._viewport
  7704. },
  7705. s.prototype._clear = function() {
  7706. var e = this,
  7707. t = this._elementRegistry.getAll();
  7708. t.forEach(function(t) {
  7709. var n = m.getType(t);
  7710. "root" === n ? e.setRootElement(null, !0) : e._removeElement(t, n)
  7711. }),
  7712. delete this._cachedViewbox
  7713. },
  7714. s.prototype.getDefaultLayer = function() {
  7715. return this.getLayer(g)
  7716. },
  7717. s.prototype.getLayer = function(e) {
  7718. if (!e) throw new Error("must specify a name");
  7719. var t = this._layers[e];
  7720. return t || (t = this._layers[e] = a(this._viewport, "layer-" + e)),
  7721. t
  7722. },
  7723. s.prototype.getContainer = function() {
  7724. return this._container
  7725. },
  7726. s.prototype._updateMarker = function(e, t, n) {
  7727. var r;
  7728. e.id || (e = this._elementRegistry.get(e)),
  7729. r = this._elementRegistry._elements[e.id],
  7730. r && (p([r.gfx, r.secondaryGfx],
  7731. function(e) {
  7732. e && e[n ? "addClass": "removeClass"](t)
  7733. }), this._eventBus.fire("element.marker.update", {
  7734. element: e,
  7735. gfx: r.gfx,
  7736. marker: t,
  7737. add: !!n
  7738. }))
  7739. },
  7740. s.prototype.addMarker = function(e, t) {
  7741. this._updateMarker(e, t, !0)
  7742. },
  7743. s.prototype.removeMarker = function(e, t) {
  7744. this._updateMarker(e, t, !1)
  7745. },
  7746. s.prototype.hasMarker = function(e, t) {
  7747. e.id || (e = this._elementRegistry.get(e));
  7748. var n = this.getGraphics(e);
  7749. return n && n.hasClass(t)
  7750. },
  7751. s.prototype.toggleMarker = function(e, t) {
  7752. this.hasMarker(e, t) ? this.removeMarker(e, t) : this.addMarker(e, t)
  7753. },
  7754. s.prototype.getRootElement = function() {
  7755. return this._rootElement || this.setRootElement({
  7756. id: "__implicitroot",
  7757. children: []
  7758. }),
  7759. this._rootElement
  7760. },
  7761. s.prototype.setRootElement = function(e, t) {
  7762. e && this._ensureValid("root", e);
  7763. var n = this._rootElement,
  7764. r = this._elementRegistry,
  7765. i = this._eventBus;
  7766. if (n) {
  7767. if (!t) throw new Error("rootElement already set, need to specify override");
  7768. i.fire("root.remove", {
  7769. element: n
  7770. }),
  7771. i.fire("root.removed", {
  7772. element: n
  7773. }),
  7774. r.remove(n)
  7775. }
  7776. if (e) {
  7777. var o = this.getDefaultLayer();
  7778. i.fire("root.add", {
  7779. element: e
  7780. }),
  7781. r.add(e, o, this._svg),
  7782. i.fire("root.added", {
  7783. element: e,
  7784. gfx: o
  7785. })
  7786. }
  7787. return this._rootElement = e,
  7788. e
  7789. },
  7790. s.prototype._ensureValid = function(e, t) {
  7791. if (!t.id) throw new Error("element must have an id");
  7792. if (this._elementRegistry.get(t.id)) throw new Error("element with id " + t.id + " already exists");
  7793. var n = v[e],
  7794. r = f(n,
  7795. function(e) {
  7796. return "undefined" != typeof t[e]
  7797. });
  7798. if (!r) throw new Error("must supply { " + n.join(", ") + " } with " + e)
  7799. },
  7800. s.prototype._setParent = function(e, t, n) {
  7801. d.add(t.children, e, n),
  7802. e.parent = t
  7803. },
  7804. s.prototype._addElement = function(e, t, n, r) {
  7805. n = n || this.getRootElement();
  7806. var i = this._eventBus,
  7807. o = this._graphicsFactory;
  7808. this._ensureValid(e, t),
  7809. i.fire(e + ".add", {
  7810. element: t,
  7811. parent: n
  7812. }),
  7813. this._setParent(t, n, r);
  7814. var a = o.create(e, t);
  7815. return this._elementRegistry.add(t, a),
  7816. o.update(e, t, a),
  7817. i.fire(e + ".added", {
  7818. element: t,
  7819. gfx: a
  7820. }),
  7821. t
  7822. },
  7823. s.prototype.addShape = function(e, t, n) {
  7824. return this._addElement("shape", e, t, n)
  7825. },
  7826. s.prototype.addConnection = function(e, t, n) {
  7827. return this._addElement("connection", e, t, n)
  7828. },
  7829. s.prototype._removeElement = function(e, t) {
  7830. var n = this._elementRegistry,
  7831. r = this._graphicsFactory,
  7832. i = this._eventBus;
  7833. if (e = n.get(e.id || e)) return i.fire(t + ".remove", {
  7834. element: e
  7835. }),
  7836. r.remove(e),
  7837. d.remove(e.parent && e.parent.children, e),
  7838. e.parent = null,
  7839. i.fire(t + ".removed", {
  7840. element: e
  7841. }),
  7842. n.remove(e),
  7843. e
  7844. },
  7845. s.prototype.removeShape = function(e) {
  7846. return this._removeElement(e, "shape")
  7847. },
  7848. s.prototype.removeConnection = function(e) {
  7849. return this._removeElement(e, "connection")
  7850. },
  7851. s.prototype.getGraphics = function(e, t) {
  7852. return this._elementRegistry.getGraphics(e, t)
  7853. },
  7854. s.prototype._changeViewbox = function(e) {
  7855. this._eventBus.fire("canvas.viewbox.changing"),
  7856. e.apply(this),
  7857. this._cachedViewbox = null,
  7858. this._viewboxChanged()
  7859. },
  7860. s.prototype._viewboxChanged = function() {
  7861. this._eventBus.fire("canvas.viewbox.changed", {
  7862. viewbox: this.viewbox()
  7863. })
  7864. },
  7865. s.prototype.viewbox = function(e) {
  7866. if (void 0 === e && this._cachedViewbox) return this._cachedViewbox;
  7867. var t, n, i, o, a, s = this._viewport,
  7868. c = this.getSize();
  7869. return e ? (this._changeViewbox(function() {
  7870. i = Math.min(c.width / e.width, c.height / e.height),
  7871. n = (new y.Matrix).scale(i).translate( - e.x, -e.y),
  7872. s.transform(n)
  7873. }), e) : (t = this.getDefaultLayer().getBBox(!0), n = s.transform().localMatrix, i = r(n.a, 1e3), o = r( - n.e || 0, 1e3), a = r( - n.f || 0, 1e3), e = this._cachedViewbox = {
  7874. x: o ? o / i: 0,
  7875. y: a ? a / i: 0,
  7876. width: c.width / i,
  7877. height: c.height / i,
  7878. scale: i,
  7879. inner: {
  7880. width: t.width,
  7881. height: t.height,
  7882. x: t.x,
  7883. y: t.y
  7884. },
  7885. outer: c
  7886. })
  7887. },
  7888. s.prototype.scroll = function(e) {
  7889. var t = this._viewport.node,
  7890. n = t.getCTM();
  7891. return e && this._changeViewbox(function() {
  7892. e = u({
  7893. dx: 0,
  7894. dy: 0
  7895. },
  7896. e || {}),
  7897. n = this._svg.node.createSVGMatrix().translate(e.dx, e.dy).multiply(n),
  7898. c(t, n)
  7899. }),
  7900. {
  7901. x: n.e,
  7902. y: n.f
  7903. }
  7904. },
  7905. s.prototype.zoom = function(e, t) {
  7906. if (!e) return this.viewbox(e).scale;
  7907. if ("fit-viewport" === e) return this._fitViewport(t);
  7908. var n, i;
  7909. return this._changeViewbox(function() {
  7910. "object" != typeof t && (n = this.viewbox().outer, t = {
  7911. x: n.width / 2,
  7912. y: n.height / 2
  7913. }),
  7914. i = this._setZoom(e, t)
  7915. }),
  7916. r(i.a, 1e3)
  7917. },
  7918. s.prototype._fitViewport = function(e) {
  7919. var t, n, r = this.viewbox(),
  7920. i = r.outer,
  7921. o = r.inner;
  7922. return o.x >= 0 && o.y >= 0 && o.x + o.width <= i.width && o.y + o.height <= i.height && !e ? n = {
  7923. x: 0,
  7924. y: 0,
  7925. width: Math.max(o.width + o.x, i.width),
  7926. height: Math.max(o.height + o.y, i.height)
  7927. }: (t = Math.min(1, i.width / o.width, i.height / o.height), n = {
  7928. x: o.x + (e ? o.width / 2 - i.width / t / 2 : 0),
  7929. y: o.y + (e ? o.height / 2 - i.height / t / 2 : 0),
  7930. width: i.width / t,
  7931. height: i.height / t
  7932. }),
  7933. this.viewbox(n),
  7934. this.viewbox(!1).scale
  7935. },
  7936. s.prototype._setZoom = function(e, t) {
  7937. var n, r, i, o, a, s = this._svg.node,
  7938. l = this._viewport.node,
  7939. p = s.createSVGMatrix(),
  7940. f = s.createSVGPoint();
  7941. i = l.getCTM();
  7942. var h = i.a;
  7943. return t ? (n = u(f, t), r = n.matrixTransform(i.inverse()), o = p.translate(r.x, r.y).scale(1 / h * e).translate( - r.x, -r.y), a = i.multiply(o)) : a = p.scale(e),
  7944. c(this._viewport.node, a),
  7945. a
  7946. },
  7947. s.prototype.getSize = function() {
  7948. return {
  7949. width: this._container.clientWidth,
  7950. height: this._container.clientHeight
  7951. }
  7952. },
  7953. s.prototype.getAbsoluteBBox = function(e) {
  7954. var t, n = this.viewbox();
  7955. if (e.waypoints) {
  7956. var r = this.getGraphics(e),
  7957. i = r.getBBox(!0);
  7958. t = r.getBBox(),
  7959. t.x -= i.x,
  7960. t.y -= i.y,
  7961. t.width += 2 * i.x,
  7962. t.height += 2 * i.y
  7963. } else t = e;
  7964. var o = t.x * n.scale - n.x * n.scale,
  7965. a = t.y * n.scale - n.y * n.scale,
  7966. s = t.width * n.scale,
  7967. c = t.height * n.scale;
  7968. return {
  7969. x: o,
  7970. y: a,
  7971. width: s,
  7972. height: c
  7973. }
  7974. },
  7975. s.prototype.resized = function() {
  7976. delete this._cachedViewbox,
  7977. this._eventBus.fire("canvas.resized")
  7978. }
  7979. },
  7980. {
  7981. 191 : 191,
  7982. 197 : 197,
  7983. 61 : 61,
  7984. 62 : 62,
  7985. 76 : 76,
  7986. 80 : 80,
  7987. 83 : 83,
  7988. 91 : 91
  7989. }],
  7990. 39 : [function(e, t, n) {
  7991. "use strict";
  7992. function r() {
  7993. this._uid = 12
  7994. }
  7995. var i = e(60),
  7996. o = e(197);
  7997. t.exports = r,
  7998. r.prototype.createRoot = function(e) {
  7999. return this.create("root", e)
  8000. },
  8001. r.prototype.createLabel = function(e) {
  8002. return this.create("label", e)
  8003. },
  8004. r.prototype.createShape = function(e) {
  8005. return this.create("shape", e)
  8006. },
  8007. r.prototype.createConnection = function(e) {
  8008. return this.create("connection", e)
  8009. },
  8010. r.prototype.create = function(e, t) {
  8011. return t = o({},
  8012. t || {}),
  8013. t.id || (t.id = e + "_" + this._uid++),
  8014. i.create(e, t)
  8015. }
  8016. },
  8017. {
  8018. 197 : 197,
  8019. 60 : 60
  8020. }],
  8021. 40 : [function(e, t, n) {
  8022. "use strict";
  8023. function r() {
  8024. this._elements = {}
  8025. }
  8026. var i = "data-element-id";
  8027. t.exports = r,
  8028. r.prototype.add = function(e, t, n) {
  8029. var r = e.id;
  8030. this._validateId(r),
  8031. t.attr(i, r),
  8032. n && n.attr(i, r),
  8033. this._elements[r] = {
  8034. element: e,
  8035. gfx: t,
  8036. secondaryGfx: n
  8037. }
  8038. },
  8039. r.prototype.remove = function(e) {
  8040. var t = this._elements,
  8041. n = e.id || e,
  8042. r = n && t[n];
  8043. r && (r.gfx.attr(i, ""), r.secondaryGfx && r.secondaryGfx.attr(i, ""), delete t[n])
  8044. },
  8045. r.prototype.updateId = function(e, t) {
  8046. this._validateId(t),
  8047. "string" == typeof e && (e = this.get(e));
  8048. var n = this.getGraphics(e),
  8049. r = this.getGraphics(e, !0);
  8050. this.remove(e),
  8051. e.id = t,
  8052. this.add(e, n, r)
  8053. },
  8054. r.prototype.get = function(e) {
  8055. var t;
  8056. t = "string" == typeof e ? e: e && e.attr(i);
  8057. var n = this._elements[t];
  8058. return n && n.element
  8059. },
  8060. r.prototype.filter = function(e) {
  8061. var t = [];
  8062. return this.forEach(function(n, r) {
  8063. e(n, r) && t.push(n)
  8064. }),
  8065. t
  8066. },
  8067. r.prototype.getAll = function() {
  8068. return this.filter(function(e) {
  8069. return e
  8070. })
  8071. },
  8072. r.prototype.forEach = function(e) {
  8073. var t = this._elements;
  8074. Object.keys(t).forEach(function(n) {
  8075. var r = t[n],
  8076. i = r.element,
  8077. o = r.gfx;
  8078. return e(i, o)
  8079. })
  8080. },
  8081. r.prototype.getGraphics = function(e, t) {
  8082. var n = e.id || e,
  8083. r = this._elements[n];
  8084. return r && (t ? r.secondaryGfx: r.gfx)
  8085. },
  8086. r.prototype._validateId = function(e) {
  8087. if (!e) throw new Error("element must have an id");
  8088. if (this._elements[e]) throw new Error("element with id " + e + " already added")
  8089. }
  8090. },
  8091. {}],
  8092. 41 : [function(e, t, n) {
  8093. "use strict";
  8094. function r() {
  8095. this._listeners = {},
  8096. this.on("diagram.destroy", 1, this._destroy, this)
  8097. }
  8098. function i() {}
  8099. function o(e, t) {
  8100. return e.apply(null, t)
  8101. }
  8102. var a = e(189),
  8103. s = e(188),
  8104. c = e(191),
  8105. l = e(90),
  8106. u = e(197),
  8107. p = "__fn",
  8108. f = 1e3,
  8109. h = Array.prototype.slice;
  8110. t.exports = r,
  8111. r.prototype.on = function(e, t, n, r) {
  8112. if (e = s(e) ? e: [e], a(t) && (r = n, n = t, t = f), !c(t)) throw new Error("priority must be a number");
  8113. var i = n;
  8114. r && (i = l(n, r), i[p] = n[p] || n);
  8115. var o = this,
  8116. u = {
  8117. priority: t,
  8118. callback: i
  8119. };
  8120. e.forEach(function(e) {
  8121. o._addListener(e, u)
  8122. })
  8123. },
  8124. r.prototype.once = function(e, t, n, r) {
  8125. function i() {
  8126. return o.off(e, i),
  8127. n.apply(r, arguments)
  8128. }
  8129. var o = this;
  8130. if (a(t) && (r = n, n = t, t = f), !c(t)) throw new Error("priority must be a number");
  8131. i[p] = n,
  8132. this.on(e, t, i)
  8133. },
  8134. r.prototype.off = function(e, t) {
  8135. var n, r, i, o = this._getListeners(e);
  8136. if (t) for (i = o.length - 1; n = o[i]; i--) r = n.callback,
  8137. r !== t && r[p] !== t || o.splice(i, 1);
  8138. else o.length = 0
  8139. },
  8140. r.prototype.fire = function(e, t) {
  8141. var n, r, o, a;
  8142. if (a = h.call(arguments), "object" == typeof e && (n = e, e = n.type), !e) throw new Error("no event type specified");
  8143. if (r = this._listeners[e]) {
  8144. t instanceof i ? n = t: (n = new i, n.init(t)),
  8145. a[0] = n;
  8146. var s = n.type;
  8147. e !== s && (n.type = e);
  8148. try {
  8149. o = this._invokeListeners(n, a, r)
  8150. } finally {
  8151. e !== s && (n.type = s)
  8152. }
  8153. return void 0 === o && n.defaultPrevented && (o = !1),
  8154. o
  8155. }
  8156. },
  8157. r.prototype.handleError = function(e) {
  8158. return this.fire("error", {
  8159. error: e
  8160. }) === !1
  8161. },
  8162. r.prototype._destroy = function() {
  8163. this._listeners = {}
  8164. },
  8165. r.prototype._invokeListeners = function(e, t, n) {
  8166. var r, i, o;
  8167. for (r = 0; (i = n[r]) && !e.cancelBubble; r++) o = this._invokeListener(e, t, i);
  8168. return o
  8169. },
  8170. r.prototype._invokeListener = function(e, t, n) {
  8171. var r;
  8172. try {
  8173. r = o(n.callback, t),
  8174. void 0 !== r && (e.returnValue = r, e.stopPropagation()),
  8175. r === !1 && e.preventDefault()
  8176. } catch(e) {
  8177. if (!this.handleError(e)) throw console.error("unhandled error in event listener"),
  8178. console.error(e.stack),
  8179. e
  8180. }
  8181. return r
  8182. },
  8183. r.prototype._addListener = function(e, t) {
  8184. var n, r, i = this._getListeners(e);
  8185. for (r = 0; n = i[r]; r++) if (n.priority < t.priority) return void i.splice(r, 0, t);
  8186. i.push(t)
  8187. },
  8188. r.prototype._getListeners = function(e) {
  8189. var t = this._listeners[e];
  8190. return t || (this._listeners[e] = t = []),
  8191. t
  8192. },
  8193. t.exports.Event = i,
  8194. i.prototype.stopPropagation = function() {
  8195. this.cancelBubble = !0
  8196. },
  8197. i.prototype.preventDefault = function() {
  8198. this.defaultPrevented = !0
  8199. },
  8200. i.prototype.init = function(e) {
  8201. u(this, e || {})
  8202. }
  8203. },
  8204. {
  8205. 188 : 188,
  8206. 189 : 189,
  8207. 191 : 191,
  8208. 197 : 197,
  8209. 90 : 90
  8210. }],
  8211. 42 : [function(e, t, n) {
  8212. "use strict";
  8213. function r(e, t) {
  8214. this._eventBus = e,
  8215. this._elementRegistry = t
  8216. }
  8217. var i = e(83),
  8218. o = e(87),
  8219. a = e(64),
  8220. s = e(210);
  8221. r.$inject = ["eventBus", "elementRegistry"],
  8222. t.exports = r,
  8223. r.prototype._getChildren = function(e) {
  8224. var t, n = this._elementRegistry.getGraphics(e);
  8225. return e.parent ? (t = a.getChildren(n), t || (t = n.parent().group().attr("class", "djs-children"))) : t = n,
  8226. t
  8227. },
  8228. r.prototype._clear = function(e) {
  8229. var t = a.getVisual(e);
  8230. return s(t.node),
  8231. t
  8232. },
  8233. r.prototype._createContainer = function(e, t) {
  8234. var n = t.group().attr("class", "djs-group"),
  8235. r = n.group().attr("class", "djs-element djs-" + e);
  8236. return r.group().attr("class", "djs-visual"),
  8237. r
  8238. },
  8239. r.prototype.create = function(e, t) {
  8240. var n = this._getChildren(t.parent);
  8241. return this._createContainer(e, n)
  8242. },
  8243. r.prototype.updateContainments = function(e) {
  8244. var t, n = this,
  8245. r = this._elementRegistry;
  8246. t = o(e,
  8247. function(e, t) {
  8248. return t.parent && (e[t.parent.id] = t.parent),
  8249. e
  8250. },
  8251. {}),
  8252. i(t,
  8253. function(e) {
  8254. var t = n._getChildren(e),
  8255. o = e.children;
  8256. o && i(o.slice().reverse(),
  8257. function(e) {
  8258. var n = r.getGraphics(e);
  8259. n.parent().prependTo(t)
  8260. })
  8261. })
  8262. },
  8263. r.prototype.drawShape = function(e, t) {
  8264. var n = this._eventBus;
  8265. return n.fire("render.shape", {
  8266. gfx: e,
  8267. element: t
  8268. })
  8269. },
  8270. r.prototype.getShapePath = function(e) {
  8271. var t = this._eventBus;
  8272. return t.fire("render.getShapePath", e)
  8273. },
  8274. r.prototype.drawConnection = function(e, t) {
  8275. var n = this._eventBus;
  8276. return n.fire("render.connection", {
  8277. gfx: e,
  8278. element: t
  8279. })
  8280. },
  8281. r.prototype.getConnectionPath = function(e) {
  8282. var t = this._eventBus;
  8283. return t.fire("render.getConnectionPath", e)
  8284. },
  8285. r.prototype.update = function(e, t, n) {
  8286. if (t.parent) {
  8287. var r = this._clear(n);
  8288. if ("shape" === e) this.drawShape(r, t),
  8289. n.translate(t.x, t.y);
  8290. else {
  8291. if ("connection" !== e) throw new Error("unknown type: " + e);
  8292. this.drawConnection(r, t)
  8293. }
  8294. n.attr("display", t.hidden ? "none": "block")
  8295. }
  8296. },
  8297. r.prototype.remove = function(e) {
  8298. var t = this._elementRegistry.getGraphics(e);
  8299. t.parent().remove()
  8300. }
  8301. },
  8302. {
  8303. 210 : 210,
  8304. 64 : 64,
  8305. 83 : 83,
  8306. 87 : 87
  8307. }],
  8308. 43 : [function(e, t, n) {
  8309. t.exports = {
  8310. __depends__: [e(47)],
  8311. __init__: ["canvas"],
  8312. canvas: ["type", e(38)],
  8313. elementRegistry: ["type", e(40)],
  8314. elementFactory: ["type", e(39)],
  8315. eventBus: ["type", e(41)],
  8316. graphicsFactory: ["type", e(42)]
  8317. }
  8318. },
  8319. {
  8320. 38 : 38,
  8321. 39 : 39,
  8322. 40 : 40,
  8323. 41 : 41,
  8324. 42 : 42,
  8325. 47 : 47
  8326. }],
  8327. 44 : [function(e, t, n) {
  8328. "use strict";
  8329. function r(e, t) {
  8330. var n = this;
  8331. t = t || i,
  8332. e.on(["render.shape", "render.connection"], t,
  8333. function(e, t) {
  8334. var r = e.type,
  8335. i = t.element,
  8336. o = t.gfx;
  8337. if (n.canRender(i)) return "render.shape" === r ? n.drawShape(o, i) : n.drawConnection(o, i)
  8338. }),
  8339. e.on(["render.getShapePath", "render.getConnectionPath"], t,
  8340. function(e, t) {
  8341. if (n.canRender(t)) return "render.getShapePath" === e.type ? n.getShapePath(t) : n.getConnectionPath(t)
  8342. })
  8343. }
  8344. var i = 1e3;
  8345. r.prototype.canRender = function() {},
  8346. r.prototype.drawShape = function() {},
  8347. r.prototype.drawConnection = function() {},
  8348. r.prototype.getShapePath = function() {},
  8349. r.prototype.getConnectionPath = function() {},
  8350. t.exports = r
  8351. },
  8352. {}],
  8353. 45 : [function(e, t, n) {
  8354. "use strict";
  8355. function r(e, t) {
  8356. o.call(this, e, l),
  8357. this.CONNECTION_STYLE = t.style(["no-fill"], {
  8358. strokeWidth: 5,
  8359. stroke: "fuchsia"
  8360. }),
  8361. this.SHAPE_STYLE = t.style({
  8362. fill: "white",
  8363. stroke: "fuchsia",
  8364. strokeWidth: 2
  8365. })
  8366. }
  8367. var i = e(77),
  8368. o = e(44),
  8369. a = e(68),
  8370. s = a.componentsToPath,
  8371. c = a.createLine,
  8372. l = 1;
  8373. i(r, o),
  8374. r.prototype.canRender = function() {
  8375. return ! 0
  8376. },
  8377. r.prototype.drawShape = function(e, t) {
  8378. return e.rect(0, 0, t.width || 0, t.height || 0).attr(this.SHAPE_STYLE)
  8379. },
  8380. r.prototype.drawConnection = function(e, t) {
  8381. return c(t.waypoints, this.CONNECTION_STYLE).appendTo(e)
  8382. },
  8383. r.prototype.getShapePath = function(e) {
  8384. var t = e.x,
  8385. n = e.y,
  8386. r = e.width,
  8387. i = e.height,
  8388. o = [["M", t, n], ["l", r, 0], ["l", 0, i], ["l", -r, 0], ["z"]];
  8389. return s(o)
  8390. },
  8391. r.prototype.getConnectionPath = function(e) {
  8392. var t, n, r = e.waypoints,
  8393. i = [];
  8394. for (t = 0; n = r[t]; t++) n = n.original || n,
  8395. i.push([0 === t ? "M": "L", n.x, n.y]);
  8396. return s(i)
  8397. },
  8398. r.$inject = ["eventBus", "styles"],
  8399. t.exports = r
  8400. },
  8401. {
  8402. 44 : 44,
  8403. 68 : 68,
  8404. 77 : 77
  8405. }],
  8406. 46 : [function(e, t, n) {
  8407. "use strict";
  8408. function r() {
  8409. var e = {
  8410. "no-fill": {
  8411. fill: "none"
  8412. },
  8413. "no-border": {
  8414. strokeOpacity: 0
  8415. },
  8416. "no-events": {
  8417. pointerEvents: "none"
  8418. }
  8419. },
  8420. t = this;
  8421. this.cls = function(e, t, n) {
  8422. var r = this.style(t, n);
  8423. return o(r, {
  8424. class: e
  8425. })
  8426. },
  8427. this.style = function(t, n) {
  8428. i(t) || n || (n = t, t = []);
  8429. var r = a(t,
  8430. function(t, n) {
  8431. return o(t, e[n] || {})
  8432. },
  8433. {});
  8434. return n ? o(r, n) : r
  8435. },
  8436. this.computeStyle = function(e, n, r) {
  8437. return i(n) || (r = n, n = []),
  8438. t.style(n || [], o({},
  8439. r, e || {}))
  8440. }
  8441. }
  8442. var i = e(188),
  8443. o = e(197),
  8444. a = e(87);
  8445. t.exports = r
  8446. },
  8447. {
  8448. 188 : 188,
  8449. 197 : 197,
  8450. 87 : 87
  8451. }],
  8452. 47 : [function(e, t, n) {
  8453. t.exports = {
  8454. __init__: ["defaultRenderer"],
  8455. defaultRenderer: ["type", e(45)],
  8456. styles: ["type", e(46)]
  8457. }
  8458. },
  8459. {
  8460. 45 : 45,
  8461. 46 : 46
  8462. }],
  8463. 48 : [function(e, t, n) {
  8464. "use strict";
  8465. function r(e, t, n) {
  8466. function r(n, r, i) {
  8467. if (a(r)) {
  8468. var o, c, l;
  8469. i ? c = t.getGraphics(i) : (o = r.delegateTarget || r.target, o && (c = new s(o), i = t.get(c))),
  8470. c && i && (l = e.fire(n, {
  8471. element: i,
  8472. gfx: c,
  8473. originalEvent: r
  8474. }), l === !1 && (r.stopPropagation(), r.preventDefault()))
  8475. }
  8476. }
  8477. function c(e) {
  8478. var t = v[e];
  8479. return t || (t = v[e] = function(t) {
  8480. r(e, t)
  8481. }),
  8482. t
  8483. }
  8484. function f(e, t, n) {
  8485. var i = x[e];
  8486. if (!i) throw new Error("unmapped DOM event name <" + e + ">");
  8487. return r(i, t, n)
  8488. }
  8489. function h(e, t, n) {
  8490. var r = c(n);
  8491. r.$delegate = o.bind(e, b, t, r)
  8492. }
  8493. function d(e, t, n) {
  8494. o.unbind(e, t, c(n).$delegate)
  8495. }
  8496. function m(e) {
  8497. i(x,
  8498. function(t, n) {
  8499. h(e.node, n, t)
  8500. })
  8501. }
  8502. function y(e) {
  8503. i(x,
  8504. function(t, n) {
  8505. d(e.node, n, t)
  8506. })
  8507. }
  8508. var g = n.cls("djs-hit", ["no-fill", "no-border"], {
  8509. stroke: "white",
  8510. strokeWidth: 15
  8511. }),
  8512. v = {},
  8513. x = {
  8514. mouseover: "element.hover",
  8515. mouseout: "element.out",
  8516. click: "element.click",
  8517. dblclick: "element.dblclick",
  8518. mousedown: "element.mousedown",
  8519. mouseup: "element.mouseup"
  8520. },
  8521. b = "svg, .djs-element";
  8522. e.on("canvas.destroy",
  8523. function(e) {
  8524. y(e.svg)
  8525. }),
  8526. e.on("canvas.init",
  8527. function(e) {
  8528. m(e.svg)
  8529. }),
  8530. e.on(["shape.added", "connection.added"],
  8531. function(e) {
  8532. var t, n = e.element,
  8533. r = e.gfx;
  8534. t = n.waypoints ? l(n.waypoints) : s.create("rect", {
  8535. x: 0,
  8536. y: 0,
  8537. width: n.width,
  8538. height: n.height
  8539. }),
  8540. t.attr(g).appendTo(r.node)
  8541. }),
  8542. e.on("shape.changed", p,
  8543. function(e) {
  8544. var t = e.element,
  8545. n = e.gfx,
  8546. r = n.select(".djs-hit");
  8547. r.attr({
  8548. width: t.width,
  8549. height: t.height
  8550. })
  8551. }),
  8552. e.on("connection.changed",
  8553. function(e) {
  8554. var t = e.element,
  8555. n = e.gfx,
  8556. r = n.select(".djs-hit");
  8557. u(r, t.waypoints)
  8558. }),
  8559. this.fire = r,
  8560. this.triggerMouseEvent = f,
  8561. this.mouseHandler = c,
  8562. this.registerEvent = h,
  8563. this.unregisterEvent = d
  8564. }
  8565. var i = e(83),
  8566. o = e(211),
  8567. a = e(66).isPrimaryButton,
  8568. s = e(76),
  8569. c = e(68),
  8570. l = c.createLine,
  8571. u = c.updateLine,
  8572. p = 500;
  8573. r.$inject = ["eventBus", "elementRegistry", "styles"],
  8574. t.exports = r
  8575. },
  8576. {
  8577. 211 : 211,
  8578. 66 : 66,
  8579. 68 : 68,
  8580. 76 : 76,
  8581. 83 : 83
  8582. }],
  8583. 49 : [function(e, t, n) {
  8584. t.exports = {
  8585. __init__: ["interactionEvents"],
  8586. interactionEvents: ["type", e(48)]
  8587. }
  8588. },
  8589. {
  8590. 48 : 48
  8591. }],
  8592. 50 : [function(e, t, n) {
  8593. "use strict";
  8594. function r(e, t, n) {
  8595. function r(e, t) {
  8596. return e.rect(10, 10, 0, 0).attr(i)
  8597. }
  8598. this.offset = 6;
  8599. var i = t.cls("djs-outline", ["no-fill"]),
  8600. a = this;
  8601. e.on(["shape.added", "shape.changed"], o,
  8602. function(e) {
  8603. var t = e.element,
  8604. n = e.gfx,
  8605. i = n.select(".djs-outline");
  8606. i || (i = r(n, t)),
  8607. a.updateShapeOutline(i, t)
  8608. }),
  8609. e.on(["connection.added", "connection.changed"],
  8610. function(e) {
  8611. var t = e.element,
  8612. n = e.gfx,
  8613. i = n.select(".djs-outline");
  8614. i || (i = r(n, t)),
  8615. a.updateConnectionOutline(i, t)
  8616. })
  8617. }
  8618. var i = e(62).getBBox,
  8619. o = 500;
  8620. r.prototype.updateShapeOutline = function(e, t) {
  8621. e.attr({
  8622. x: -this.offset,
  8623. y: -this.offset,
  8624. width: t.width + 2 * this.offset,
  8625. height: t.height + 2 * this.offset
  8626. })
  8627. },
  8628. r.prototype.updateConnectionOutline = function(e, t) {
  8629. var n = i(t);
  8630. e.attr({
  8631. x: n.x - this.offset,
  8632. y: n.y - this.offset,
  8633. width: n.width + 2 * this.offset,
  8634. height: n.height + 2 * this.offset
  8635. })
  8636. },
  8637. r.$inject = ["eventBus", "styles", "elementRegistry"],
  8638. t.exports = r
  8639. },
  8640. {
  8641. 62 : 62
  8642. }],
  8643. 51 : [function(e, t, n) {
  8644. "use strict";
  8645. t.exports = {
  8646. __init__: ["outline"],
  8647. outline: ["type", e(50)]
  8648. }
  8649. },
  8650. {
  8651. 50 : 50
  8652. }],
  8653. 52 : [function(e, t, n) {
  8654. "use strict";
  8655. function r(e) {
  8656. var t = d('<div class="djs-overlay-container" style="position: absolute; width: 0; height: 0;" />');
  8657. return e.insertBefore(t, e.firstChild),
  8658. t
  8659. }
  8660. function i(e, t, n) {
  8661. u(e.style, {
  8662. left: t + "px",
  8663. top: n + "px"
  8664. })
  8665. }
  8666. function o(e, t) {
  8667. e.style.display = t === !1 ? "none": ""
  8668. }
  8669. function a(e, t, n) {
  8670. this._eventBus = e,
  8671. this._canvas = t,
  8672. this._elementRegistry = n,
  8673. this._ids = b,
  8674. this._overlayDefaults = {
  8675. show: {
  8676. minZoom: .7,
  8677. maxZoom: 5
  8678. }
  8679. },
  8680. this._overlays = {},
  8681. this._overlayContainers = [],
  8682. this._overlayRoot = r(t.getContainer()),
  8683. this._init()
  8684. }
  8685. var s = e(188),
  8686. c = e(194),
  8687. l = e(192),
  8688. u = e(197),
  8689. p = e(83),
  8690. f = e(82),
  8691. h = e(81),
  8692. d = e(212),
  8693. m = e(209),
  8694. y = e(208),
  8695. g = e(215),
  8696. v = e(210),
  8697. x = e(62).getBBox,
  8698. b = new(e(65))("ov");
  8699. a.$inject = ["eventBus", "canvas", "elementRegistry"],
  8700. t.exports = a,
  8701. a.prototype.get = function(e) {
  8702. if (c(e) && (e = {
  8703. id: e
  8704. }), c(e.element) && (e.element = this._elementRegistry.get(e.element)), e.element) {
  8705. var t = this._getOverlayContainer(e.element, !0);
  8706. return t ? e.type ? h(t.overlays, {
  8707. type: e.type
  8708. }) : t.overlays.slice() : []
  8709. }
  8710. return e.type ? h(this._overlays, {
  8711. type: e.type
  8712. }) : e.id ? this._overlays[e.id] : null
  8713. },
  8714. a.prototype.add = function(e, t, n) {
  8715. if (l(t) && (n = t, t = null), e.id || (e = this._elementRegistry.get(e)), !n.position) throw new Error("must specifiy overlay position");
  8716. if (!n.html) throw new Error("must specifiy overlay html");
  8717. if (!e) throw new Error("invalid element specified");
  8718. var r = this._ids.next();
  8719. return n = u({},
  8720. this._overlayDefaults, n, {
  8721. id: r,
  8722. type: t,
  8723. element: e,
  8724. html: n.html
  8725. }),
  8726. this._addOverlay(n),
  8727. r
  8728. },
  8729. a.prototype.remove = function(e) {
  8730. var t = this.get(e) || [];
  8731. s(t) || (t = [t]);
  8732. var n = this;
  8733. p(t,
  8734. function(e) {
  8735. var t = n._getOverlayContainer(e.element, !0);
  8736. if (e && (g(e.html), g(e.htmlContainer), delete e.htmlContainer, delete e.element, delete n._overlays[e.id]), t) {
  8737. var r = t.overlays.indexOf(e);
  8738. r !== -1 && t.overlays.splice(r, 1)
  8739. }
  8740. })
  8741. },
  8742. a.prototype.show = function() {
  8743. o(this._overlayRoot)
  8744. },
  8745. a.prototype.hide = function() {
  8746. o(this._overlayRoot, !1)
  8747. },
  8748. a.prototype.clear = function() {
  8749. this._overlays = {},
  8750. this._overlayContainers = [],
  8751. v(this._overlayRoot)
  8752. },
  8753. a.prototype._updateOverlayContainer = function(e) {
  8754. var t = e.element,
  8755. n = e.html,
  8756. r = t.x,
  8757. o = t.y;
  8758. if (t.waypoints) {
  8759. var a = x(t);
  8760. r = a.x,
  8761. o = a.y
  8762. }
  8763. i(n, r, o),
  8764. y(e.html, "data-container-id", t.id)
  8765. },
  8766. a.prototype._updateOverlay = function(e) {
  8767. var t = e.position,
  8768. n = e.htmlContainer,
  8769. r = e.element,
  8770. o = t.left,
  8771. a = t.top;
  8772. if (void 0 !== t.right) {
  8773. var s;
  8774. s = r.waypoints ? x(r).width: r.width,
  8775. o = t.right * -1 + s
  8776. }
  8777. if (void 0 !== t.bottom) {
  8778. var c;
  8779. c = r.waypoints ? x(r).height: r.height,
  8780. a = t.bottom * -1 + c
  8781. }
  8782. i(n, o || 0, a || 0)
  8783. },
  8784. a.prototype._createOverlayContainer = function(e) {
  8785. var t = d('<div class="djs-overlays" style="position: absolute" />');
  8786. this._overlayRoot.appendChild(t);
  8787. var n = {
  8788. html: t,
  8789. element: e,
  8790. overlays: []
  8791. };
  8792. return this._updateOverlayContainer(n),
  8793. this._overlayContainers.push(n),
  8794. n
  8795. },
  8796. a.prototype._updateRoot = function(e) {
  8797. var t = e.scale || 1,
  8798. n = e.scale || 1,
  8799. r = "matrix(" + t + ",0,0," + n + "," + -1 * e.x * t + "," + -1 * e.y * n + ")";
  8800. this._overlayRoot.style.transform = r,
  8801. this._overlayRoot.style["-ms-transform"] = r,
  8802. this._overlayRoot.style["-webkit-transform"] = r
  8803. },
  8804. a.prototype._getOverlayContainer = function(e, t) {
  8805. var n = f(this._overlayContainers,
  8806. function(t) {
  8807. return t.element === e
  8808. });
  8809. return n || t ? n: this._createOverlayContainer(e)
  8810. },
  8811. a.prototype._addOverlay = function(e) {
  8812. var t, n, r = e.id,
  8813. i = e.element,
  8814. o = e.html;
  8815. o.get && (o = o.get(0)),
  8816. c(o) && (o = d(o)),
  8817. n = this._getOverlayContainer(i),
  8818. t = d('<div class="djs-overlay" data-overlay-id="' + r + '" style="position: absolute">'),
  8819. t.appendChild(o),
  8820. e.type && m(t).add("djs-overlay-" + e.type),
  8821. e.htmlContainer = t,
  8822. n.overlays.push(e),
  8823. n.html.appendChild(t),
  8824. this._overlays[r] = e,
  8825. this._updateOverlay(e),
  8826. this._updateOverlayVisibilty(e, this._canvas.viewbox())
  8827. },
  8828. a.prototype._updateOverlayVisibilty = function(e, t) {
  8829. var n = e.show,
  8830. r = e.htmlContainer,
  8831. i = !0;
  8832. n && ((n.minZoom > t.scale || n.maxZoom < t.scale) && (i = !1), o(r, i))
  8833. },
  8834. a.prototype._updateOverlaysVisibilty = function(e) {
  8835. var t = this;
  8836. p(this._overlays,
  8837. function(n) {
  8838. t._updateOverlayVisibilty(n, e)
  8839. })
  8840. },
  8841. a.prototype._init = function() {
  8842. function e(e) {
  8843. n._updateRoot(e),
  8844. n._updateOverlaysVisibilty(e),
  8845. n.show()
  8846. }
  8847. var t = this._eventBus,
  8848. n = this;
  8849. t.on("canvas.viewbox.changing",
  8850. function(e) {
  8851. n.hide()
  8852. }),
  8853. t.on("canvas.viewbox.changed",
  8854. function(t) {
  8855. e(t.viewbox)
  8856. }),
  8857. t.on(["shape.remove", "connection.remove"],
  8858. function(e) {
  8859. var t = e.element,
  8860. r = n.get({
  8861. element: t
  8862. });
  8863. p(r,
  8864. function(e) {
  8865. n.remove(e.id)
  8866. });
  8867. var i = n._getOverlayContainer(t);
  8868. if (i) {
  8869. g(i.html);
  8870. var o = n._overlayContainers.indexOf(i);
  8871. o !== -1 && n._overlayContainers.splice(o, 1)
  8872. }
  8873. }),
  8874. t.on(["element.changed"],
  8875. function(e) {
  8876. var t = e.element,
  8877. r = n._getOverlayContainer(t, !0);
  8878. r && (p(r.overlays,
  8879. function(e) {
  8880. n._updateOverlay(e)
  8881. }), n._updateOverlayContainer(r))
  8882. }),
  8883. t.on("element.marker.update",
  8884. function(e) {
  8885. var t = n._getOverlayContainer(e.element, !0);
  8886. t && m(t.html)[e.add ? "add": "remove"](e.marker)
  8887. }),
  8888. t.on("diagram.clear", this.clear, this)
  8889. }
  8890. },
  8891. {
  8892. 188 : 188,
  8893. 192 : 192,
  8894. 194 : 194,
  8895. 197 : 197,
  8896. 208 : 208,
  8897. 209 : 209,
  8898. 210 : 210,
  8899. 212 : 212,
  8900. 215 : 215,
  8901. 62 : 62,
  8902. 65 : 65,
  8903. 81 : 81,
  8904. 82 : 82,
  8905. 83 : 83
  8906. }],
  8907. 53 : [function(e, t, n) {
  8908. t.exports = {
  8909. __init__: ["overlays"],
  8910. overlays: ["type", e(52)]
  8911. }
  8912. },
  8913. {
  8914. 52 : 52
  8915. }],
  8916. 54 : [function(e, t, n) {
  8917. "use strict";
  8918. function r(e) {
  8919. this._eventBus = e,
  8920. this._selectedElements = [];
  8921. var t = this;
  8922. e.on(["shape.remove", "connection.remove"],
  8923. function(e) {
  8924. var n = e.element;
  8925. t.deselect(n)
  8926. }),
  8927. e.on(["diagram.clear"],
  8928. function(e) {
  8929. t.select(null)
  8930. })
  8931. }
  8932. var i = e(188),
  8933. o = e(83);
  8934. r.$inject = ["eventBus"],
  8935. t.exports = r,
  8936. r.prototype.deselect = function(e) {
  8937. var t = this._selectedElements,
  8938. n = t.indexOf(e);
  8939. if (n !== -1) {
  8940. var r = t.slice();
  8941. t.splice(n, 1),
  8942. this._eventBus.fire("selection.changed", {
  8943. oldSelection: r,
  8944. newSelection: t
  8945. })
  8946. }
  8947. },
  8948. r.prototype.get = function() {
  8949. return this._selectedElements
  8950. },
  8951. r.prototype.isSelected = function(e) {
  8952. return this._selectedElements.indexOf(e) !== -1
  8953. },
  8954. r.prototype.select = function(e, t) {
  8955. var n = this._selectedElements,
  8956. r = n.slice();
  8957. i(e) || (e = e ? [e] : []),
  8958. t ? o(e,
  8959. function(e) {
  8960. n.indexOf(e) === -1 && n.push(e)
  8961. }) : this._selectedElements = n = e.slice(),
  8962. this._eventBus.fire("selection.changed", {
  8963. oldSelection: r,
  8964. newSelection: n
  8965. })
  8966. }
  8967. },
  8968. {
  8969. 188 : 188,
  8970. 83 : 83
  8971. }],
  8972. 55 : [function(e, t, n) {
  8973. "use strict";
  8974. function r(e, t, n, r) {
  8975. e.on("create.end", 500,
  8976. function(e) {
  8977. e.context.canExecute && t.select(e.context.shape)
  8978. }),
  8979. e.on("connect.end", 500,
  8980. function(e) {
  8981. e.context.canExecute && e.context.target && t.select(e.context.target)
  8982. }),
  8983. e.on("shape.move.end", 500,
  8984. function(e) {
  8985. var n = e.previousSelection || [],
  8986. i = r.get(e.context.shape.id),
  8987. a = o(n,
  8988. function(e) {
  8989. return i.id === e.id
  8990. });
  8991. a || t.select(i)
  8992. }),
  8993. e.on("element.click",
  8994. function(e) {
  8995. var r = e.element;
  8996. r === n.getRootElement() && (r = null);
  8997. var o = t.isSelected(r),
  8998. a = t.get().length > 1,
  8999. s = i(e);
  9000. return o && a ? s ? t.deselect(r) : t.select(r) : void(o ? t.deselect(r) : t.select(r, s))
  9001. })
  9002. }
  9003. var i = e(66).hasPrimaryModifier,
  9004. o = e(82);
  9005. r.$inject = ["eventBus", "selection", "canvas", "elementRegistry"],
  9006. t.exports = r
  9007. },
  9008. {
  9009. 66 : 66,
  9010. 82 : 82
  9011. }],
  9012. 56 : [function(e, t, n) {
  9013. "use strict";
  9014. function r(e, t, n, r, s) {
  9015. function c(e, n) {
  9016. t.addMarker(e, n)
  9017. }
  9018. function l(e, n) {
  9019. t.removeMarker(e, n)
  9020. }
  9021. this._multiSelectionBox = null,
  9022. e.on("element.hover",
  9023. function(e) {
  9024. c(e.element, o)
  9025. }),
  9026. e.on("element.out",
  9027. function(e) {
  9028. l(e.element, o)
  9029. }),
  9030. e.on("selection.changed",
  9031. function(e) {
  9032. function t(e) {
  9033. l(e, a)
  9034. }
  9035. function n(e) {
  9036. c(e, a)
  9037. }
  9038. var r = e.oldSelection,
  9039. o = e.newSelection;
  9040. i(r,
  9041. function(e) {
  9042. o.indexOf(e) === -1 && t(e)
  9043. }),
  9044. i(o,
  9045. function(e) {
  9046. r.indexOf(e) === -1 && n(e)
  9047. })
  9048. })
  9049. }
  9050. var i = e(83),
  9051. o = "hover",
  9052. a = "selected";
  9053. r.$inject = ["eventBus", "canvas", "selection", "graphicsFactory", "styles"],
  9054. t.exports = r
  9055. },
  9056. {
  9057. 83 : 83
  9058. }],
  9059. 57 : [function(e, t, n) {
  9060. t.exports = {
  9061. __init__: ["selectionVisuals", "selectionBehavior"],
  9062. __depends__: [e(49), e(51)],
  9063. selection: ["type", e(54)],
  9064. selectionVisuals: ["type", e(56)],
  9065. selectionBehavior: ["type", e(55)]
  9066. }
  9067. },
  9068. {
  9069. 49 : 49,
  9070. 51 : 51,
  9071. 54 : 54,
  9072. 55 : 55,
  9073. 56 : 56
  9074. }],
  9075. 58 : [function(e, t, n) {
  9076. t.exports = {
  9077. translate: ["value", e(59)]
  9078. }
  9079. },
  9080. {
  9081. 59 : 59
  9082. }],
  9083. 59 : [function(e, t, n) {
  9084. "use strict";
  9085. t.exports = function(e, t) {
  9086. return t = t || {},
  9087. e.replace(/{([^}]+)}/g,
  9088. function(e, n) {
  9089. return t[n] || "{" + n + "}"
  9090. })
  9091. }
  9092. },
  9093. {}],
  9094. 60 : [function(e, t, n) {
  9095. "use strict";
  9096. function r() {
  9097. Object.defineProperty(this, "businessObject", {
  9098. writable: !0
  9099. }),
  9100. p.bind(this, "parent"),
  9101. f.bind(this, "label"),
  9102. d.bind(this, "outgoing"),
  9103. m.bind(this, "incoming")
  9104. }
  9105. function i() {
  9106. r.call(this),
  9107. p.bind(this, "children"),
  9108. h.bind(this, "host"),
  9109. h.bind(this, "attachers")
  9110. }
  9111. function o() {
  9112. i.call(this)
  9113. }
  9114. function a() {
  9115. i.call(this),
  9116. f.bind(this, "labelTarget")
  9117. }
  9118. function s() {
  9119. r.call(this),
  9120. d.bind(this, "source"),
  9121. m.bind(this, "target")
  9122. }
  9123. var c = e(197),
  9124. l = e(77),
  9125. u = e(224),
  9126. p = new u({
  9127. name: "children",
  9128. enumerable: !0,
  9129. collection: !0
  9130. },
  9131. {
  9132. name: "parent"
  9133. }),
  9134. f = new u({
  9135. name: "label",
  9136. enumerable: !0
  9137. },
  9138. {
  9139. name: "labelTarget"
  9140. }),
  9141. h = new u({
  9142. name: "attachers",
  9143. collection: !0
  9144. },
  9145. {
  9146. name: "host"
  9147. }),
  9148. d = new u({
  9149. name: "outgoing",
  9150. collection: !0
  9151. },
  9152. {
  9153. name: "source"
  9154. }),
  9155. m = new u({
  9156. name: "incoming",
  9157. collection: !0
  9158. },
  9159. {
  9160. name: "target"
  9161. });
  9162. l(i, r),
  9163. l(o, i),
  9164. l(a, i),
  9165. l(s, r);
  9166. var y = {
  9167. connection: s,
  9168. shape: i,
  9169. label: a,
  9170. root: o
  9171. };
  9172. t.exports.create = function(e, t) {
  9173. var n = y[e];
  9174. if (!n) throw new Error("unknown type: <" + e + ">");
  9175. return c(new n, t)
  9176. },
  9177. t.exports.Base = r,
  9178. t.exports.Root = o,
  9179. t.exports.Shape = i,
  9180. t.exports.Connection = s,
  9181. t.exports.Label = a
  9182. },
  9183. {
  9184. 197 : 197,
  9185. 224 : 224,
  9186. 77 : 77
  9187. }],
  9188. 61 : [function(e, t, n) {
  9189. "use strict";
  9190. t.exports.remove = function(e, t) {
  9191. if (!e || !t) return - 1;
  9192. var n = e.indexOf(t);
  9193. return n !== -1 && e.splice(n, 1),
  9194. n
  9195. },
  9196. t.exports.add = function(e, t, n) {
  9197. if (e && t) {
  9198. "number" != typeof n && (n = -1);
  9199. var r = e.indexOf(t);
  9200. if (r !== -1) {
  9201. if (r === n) return;
  9202. if (n === -1) return;
  9203. e.splice(r, 1)
  9204. }
  9205. n !== -1 ? e.splice(n, 0, t) : e.push(t)
  9206. }
  9207. },
  9208. t.exports.indexOf = function(e, t) {
  9209. return e && t ? e.indexOf(t) : -1
  9210. }
  9211. },
  9212. {}],
  9213. 62 : [function(e, t, n) {
  9214. "use strict";
  9215. function r(e, t, n) {
  9216. var r = !n || e.indexOf(t) === -1;
  9217. return r && e.push(t),
  9218. r
  9219. }
  9220. function i(e, t, n) {
  9221. n = n || 0,
  9222. f(e) || (e = [e]),
  9223. m(e,
  9224. function(e, r) {
  9225. var o = t(e, r, n);
  9226. f(o) && o.length && i(o, t, n + 1)
  9227. })
  9228. }
  9229. function o(e, t, n) {
  9230. var o = [],
  9231. a = [];
  9232. return i(e,
  9233. function(e, i, s) {
  9234. r(o, e, t);
  9235. var c = e.children;
  9236. if ((n === -1 || s < n) && c && r(a, c, t)) return c
  9237. }),
  9238. o
  9239. }
  9240. function a(e, t) {
  9241. return o(e, !t, 1)
  9242. }
  9243. function s(e, t) {
  9244. return o(e, !t, -1)
  9245. }
  9246. function c(e) {
  9247. function t(e) {
  9248. r[e.source.id] && r[e.target.id] && (r[e.id] = e),
  9249. o[e.source.id] && o[e.target.id] && (c[e.id] = s[e.id] = e),
  9250. a[e.id] = e
  9251. }
  9252. function n(e) {
  9253. return s[e.id] = e,
  9254. e.waypoints ? void(c[e.id] = a[e.id] = e) : (o[e.id] = e, m(e.incoming, t), m(e.outgoing, t), e.children)
  9255. }
  9256. var r = d(e,
  9257. function(e) {
  9258. return e.id
  9259. }),
  9260. o = {},
  9261. a = {},
  9262. s = {},
  9263. c = {};
  9264. return i(e, n),
  9265. {
  9266. allShapes: o,
  9267. allConnections: a,
  9268. topLevel: r,
  9269. enclosedConnections: c,
  9270. enclosedElements: s
  9271. }
  9272. }
  9273. function l(e, t) {
  9274. t = !!t,
  9275. f(e) || (e = [e]);
  9276. var n, r, i, o;
  9277. return m(e,
  9278. function(e) {
  9279. var a = e;
  9280. e.waypoints && !t && (a = l(e.waypoints, !0));
  9281. var s = a.x,
  9282. c = a.y,
  9283. u = a.height || 0,
  9284. p = a.width || 0; (s < n || void 0 === n) && (n = s),
  9285. (c < r || void 0 === r) && (r = c),
  9286. (s + p > i || void 0 === i) && (i = s + p),
  9287. (c + u > o || void 0 === o) && (o = c + u)
  9288. }),
  9289. {
  9290. x: n,
  9291. y: r,
  9292. height: o - r,
  9293. width: i - n
  9294. }
  9295. }
  9296. function u(e, t) {
  9297. var n = {};
  9298. return m(e,
  9299. function(e) {
  9300. var r = e;
  9301. r.waypoints && (r = l(r)),
  9302. !h(t.y) && r.x > t.x && (n[e.id] = e),
  9303. !h(t.x) && r.y > t.y && (n[e.id] = e),
  9304. r.x > t.x && r.y > t.y && (h(t.width) && h(t.height) && r.width + r.x < t.width + t.x && r.height + r.y < t.height + t.y ? n[e.id] = e: h(t.width) && h(t.height) || (n[e.id] = e))
  9305. }),
  9306. n
  9307. }
  9308. function p(e) {
  9309. return "waypoints" in e ? "connection": "x" in e ? "shape": "root"
  9310. }
  9311. var f = e(188),
  9312. h = e(191),
  9313. d = e(84),
  9314. m = e(83);
  9315. t.exports.add = r,
  9316. t.exports.eachElement = i,
  9317. t.exports.selfAndDirectChildren = a,
  9318. t.exports.selfAndAllChildren = s,
  9319. t.exports.getBBox = l,
  9320. t.exports.getEnclosedElements = u,
  9321. t.exports.getClosure = c,
  9322. t.exports.getType = p
  9323. },
  9324. {
  9325. 188 : 188,
  9326. 191 : 191,
  9327. 83 : 83,
  9328. 84 : 84
  9329. }],
  9330. 63 : [function(e, t, n) {
  9331. "use strict";
  9332. function r(e) {
  9333. return e && e.preventDefault()
  9334. }
  9335. function i(e, t) {
  9336. e && (e.stopPropagation && e.stopPropagation(), t && e.stopImmediatePropagation && e.stopImmediatePropagation())
  9337. }
  9338. function o(e) {
  9339. return e.originalEvent || e.srcEvent
  9340. }
  9341. function a(e, t) {
  9342. c(e, t),
  9343. s(e)
  9344. }
  9345. function s(e) {
  9346. r(e),
  9347. r(o(e))
  9348. }
  9349. function c(e, t) {
  9350. i(e, t),
  9351. i(o(e), t)
  9352. }
  9353. function l(e) {
  9354. return e.pointers && e.pointers.length && (e = e.pointers[0]),
  9355. e.touches && e.touches.length && (e = e.touches[0]),
  9356. e ? {
  9357. x: e.clientX,
  9358. y: e.clientY
  9359. }: null
  9360. }
  9361. t.exports.getOriginal = o,
  9362. t.exports.stopEvent = a,
  9363. t.exports.preventDefault = s,
  9364. t.exports.stopPropagation = c,
  9365. t.exports.toPoint = l
  9366. },
  9367. {}],
  9368. 64 : [function(e, t, n) {
  9369. "use strict";
  9370. function r(e) {
  9371. return e.select(".djs-visual")
  9372. }
  9373. function i(e) {
  9374. return e.parent().children()[1]
  9375. }
  9376. function o(e) {
  9377. return r(e).select("*").getBBox()
  9378. }
  9379. t.exports.getVisual = r,
  9380. t.exports.getChildren = i,
  9381. t.exports.getBBox = o
  9382. },
  9383. {}],
  9384. 65 : [function(e, t, n) {
  9385. "use strict";
  9386. function r(e) {
  9387. this._counter = 0,
  9388. this._prefix = (e ? e + "-": "") + Math.floor(1e9 * Math.random()) + "-"
  9389. }
  9390. t.exports = r,
  9391. r.prototype.next = function() {
  9392. return this._prefix + ++this._counter
  9393. }
  9394. },
  9395. {}],
  9396. 66 : [function(e, t, n) {
  9397. "use strict";
  9398. function r(e) {
  9399. return ! (i(e) || e).button
  9400. }
  9401. var i = e(63).getOriginal,
  9402. o = e(67).isMac;
  9403. t.exports.isPrimaryButton = r,
  9404. t.exports.isMac = o,
  9405. t.exports.hasPrimaryModifier = function(e) {
  9406. var t = i(e) || e;
  9407. return !! r(e) && (o() ? t.metaKey: t.ctrlKey)
  9408. },
  9409. t.exports.hasSecondaryModifier = function(e) {
  9410. var t = i(e) || e;
  9411. return r(e) && t.shiftKey
  9412. }
  9413. },
  9414. {
  9415. 63 : 63,
  9416. 67 : 67
  9417. }],
  9418. 67 : [function(e, t, n) {
  9419. "use strict";
  9420. t.exports.isMac = function() {
  9421. return /mac/i.test(navigator.platform)
  9422. }
  9423. },
  9424. {}],
  9425. 68 : [function(e, t, n) {
  9426. "use strict";
  9427. function r(e) {
  9428. for (var t, n = "",
  9429. r = 0; t = e[r]; r++) n += t.x + "," + t.y + " ";
  9430. return n
  9431. }
  9432. var i = e(76);
  9433. t.exports.componentsToPath = function(e) {
  9434. return e.join(",").replace(/,?([A-z]),?/g, "$1")
  9435. },
  9436. t.exports.toSVGPoints = r,
  9437. t.exports.createLine = function(e, t) {
  9438. return i.create("polyline", {
  9439. points: r(e)
  9440. }).attr(t || {})
  9441. },
  9442. t.exports.updateLine = function(e, t) {
  9443. return e.attr({
  9444. points: r(t)
  9445. })
  9446. }
  9447. },
  9448. {
  9449. 76 : 76
  9450. }],
  9451. 69 : [function(e, t, n) {
  9452. "use strict";
  9453. function r(e) {
  9454. var t = e.split("-");
  9455. return {
  9456. horizontal: t[0] || "center",
  9457. vertical: t[1] || "top"
  9458. }
  9459. }
  9460. function i(e) {
  9461. return p(e) ? f({
  9462. top: 0,
  9463. left: 0,
  9464. right: 0,
  9465. bottom: 0
  9466. },
  9467. e) : {
  9468. top: e,
  9469. left: e,
  9470. right: e,
  9471. bottom: e
  9472. }
  9473. }
  9474. function o(e, t) {
  9475. return t.textContent = e,
  9476. h(t.getBBox(), ["width", "height"])
  9477. }
  9478. function a(e, t, n) {
  9479. for (var r, i = e.shift(), a = i;;) {
  9480. if (r = o(a, n), r.width = a ? r.width: 0, " " === a || "" === a || r.width < Math.round(t) || a.length < 4) return s(e, a, i, r);
  9481. a = l(a, r.width, t)
  9482. }
  9483. }
  9484. function s(e, t, n, r) {
  9485. if (t.length < n.length) {
  9486. var i = e[0] || "",
  9487. o = n.slice(t.length).trim();
  9488. i = /-\s*$/.test(o) ? o + i.replace(/^\s+/, "") : o + " " + i,
  9489. e[0] = i
  9490. }
  9491. return {
  9492. width: r.width,
  9493. height: r.height,
  9494. text: t
  9495. }
  9496. }
  9497. function c(e, t) {
  9498. var n, r = e.split(/(\s|-)/g),
  9499. i = [],
  9500. o = 0;
  9501. if (r.length > 1) for (; n = r.shift();) {
  9502. if (! (n.length + o < t)) {
  9503. "-" === n && i.pop();
  9504. break
  9505. }
  9506. i.push(n),
  9507. o += n.length
  9508. }
  9509. return i.join("")
  9510. }
  9511. function l(e, t, n) {
  9512. var r = Math.max(e.length * (n / t), 1),
  9513. i = c(e, r);
  9514. return i || (i = e.slice(0, Math.max(Math.round(r - 1), 1))),
  9515. i
  9516. }
  9517. function u(e) {
  9518. this._config = f({},
  9519. {
  9520. size: x,
  9521. padding: v,
  9522. style: {},
  9523. align: "center-top"
  9524. },
  9525. e || {})
  9526. }
  9527. var p = e(192),
  9528. f = e(197),
  9529. h = e(203),
  9530. d = e(83),
  9531. m = e(87),
  9532. y = e(200),
  9533. g = e(76),
  9534. v = 0,
  9535. x = {
  9536. width: 150,
  9537. height: 50
  9538. };
  9539. u.prototype.createText = function(e, t, n) {
  9540. for (var o = y({},
  9541. this._config.size, n.box || {}), s = y({},
  9542. this._config.style, n.style || {}), c = r(n.align || this._config.align), l = i(void 0 !== n.padding ? n.padding: this._config.padding), u = t.split(/\r?\n/g), p = [], f = o.width - l.left - l.right, h = e.paper.text(0, 0, "").attr(s).node; u.length;) p.push(a(u, f, h));
  9543. var v, x, b = m(p,
  9544. function(e, t, n) {
  9545. return e + t.height
  9546. },
  9547. 0);
  9548. switch (c.vertical) {
  9549. case "middle":
  9550. v = (o.height - b) / 2 - p[0].height / 4;
  9551. break;
  9552. default:
  9553. v = l.top
  9554. }
  9555. var E = e.text().attr(s);
  9556. return d(p,
  9557. function(e) {
  9558. switch (v += e.height, c.horizontal) {
  9559. case "left":
  9560. x = l.left;
  9561. break;
  9562. case "right":
  9563. x = f - l.right - e.width;
  9564. break;
  9565. default:
  9566. x = Math.max((f - e.width) / 2 + l.left, 0)
  9567. }
  9568. var t = g.create("tspan", {
  9569. x: x,
  9570. y: v
  9571. }).node;
  9572. t.textContent = e.text,
  9573. E.append(t)
  9574. }),
  9575. h.parentNode.removeChild(h),
  9576. E
  9577. },
  9578. t.exports = u
  9579. },
  9580. {
  9581. 192 : 192,
  9582. 197 : 197,
  9583. 200 : 200,
  9584. 203 : 203,
  9585. 76 : 76,
  9586. 83 : 83,
  9587. 87 : 87
  9588. }],
  9589. 70 : [function(e, t, n) {
  9590. var r = function(e) {
  9591. return "[object Array]" === Object.prototype.toString.call(e)
  9592. },
  9593. i = function() {
  9594. var e = Array.prototype.slice.call(arguments);
  9595. 1 === e.length && r(e[0]) && (e = e[0]);
  9596. var t = e.pop();
  9597. return t.$inject = e,
  9598. t
  9599. },
  9600. o = /^function\s*[^\(]*\(\s*([^\)]*)\)/m,
  9601. a = /\/\*([^\*]*)\*\//m,
  9602. s = function(e) {
  9603. if ("function" != typeof e) throw new Error('Cannot annotate "' + e + '". Expected a function!');
  9604. var t = e.toString().match(o);
  9605. return t[1] && t[1].split(",").map(function(e) {
  9606. return t = e.match(a),
  9607. t ? t[1].trim() : e.trim()
  9608. }) || []
  9609. };
  9610. n.annotate = i,
  9611. n.parse = s,
  9612. n.isArray = r
  9613. },
  9614. {}],
  9615. 71 : [function(e, t, n) {
  9616. t.exports = {
  9617. annotate: e(70).annotate,
  9618. Module: e(73),
  9619. Injector: e(72)
  9620. }
  9621. },
  9622. {
  9623. 70 : 70,
  9624. 72 : 72,
  9625. 73 : 73
  9626. }],
  9627. 72 : [function(e, t, n) {
  9628. var r = e(73),
  9629. i = e(70).parse,
  9630. o = e(70).annotate,
  9631. a = e(70).isArray,
  9632. s = function(e, t) {
  9633. t = t || {
  9634. get: function(e, t) {
  9635. if (n.push(e), t === !1) return null;
  9636. throw p('No provider for "' + e + '"!')
  9637. }
  9638. };
  9639. var n = [],
  9640. c = this._providers = Object.create(t._providers || null),
  9641. l = this._instances = Object.create(null),
  9642. u = l.injector = this,
  9643. p = function(e) {
  9644. var t = n.join(" -> ");
  9645. return n.length = 0,
  9646. new Error(t ? e + " (Resolving: " + t + ")": e)
  9647. },
  9648. f = function(e, r) {
  9649. if (!c[e] && e.indexOf(".") !== -1) {
  9650. for (var i = e.split("."), o = f(i.shift()); i.length;) o = o[i.shift()];
  9651. return o
  9652. }
  9653. if (Object.hasOwnProperty.call(l, e)) return l[e];
  9654. if (Object.hasOwnProperty.call(c, e)) {
  9655. if (n.indexOf(e) !== -1) throw n.push(e),
  9656. p("Cannot resolve circular dependency!");
  9657. return n.push(e),
  9658. l[e] = c[e][0](c[e][1]),
  9659. n.pop(),
  9660. l[e]
  9661. }
  9662. return t.get(e, r)
  9663. },
  9664. h = function(e) {
  9665. var t = Object.create(e.prototype),
  9666. n = d(e, t);
  9667. return "object" == typeof n ? n: t
  9668. },
  9669. d = function(e, t) {
  9670. if ("function" != typeof e) {
  9671. if (!a(e)) throw new Error('Cannot invoke "' + e + '". Expected a function!');
  9672. e = o(e.slice())
  9673. }
  9674. var n = e.$inject && e.$inject || i(e),
  9675. r = n.map(function(e) {
  9676. return f(e)
  9677. });
  9678. return e.apply(t, r)
  9679. },
  9680. m = function(e) {
  9681. return o(function(t) {
  9682. return e.get(t)
  9683. })
  9684. },
  9685. y = function(e, t) {
  9686. if (t && t.length) {
  9687. var n, r, i, o, a = Object.create(null),
  9688. l = Object.create(null),
  9689. p = [],
  9690. f = [],
  9691. h = [];
  9692. for (var d in c) n = c[d],
  9693. t.indexOf(d) !== -1 && ("private" === n[2] ? (r = p.indexOf(n[3]), r === -1 ? (i = n[3].createChild([], t), o = m(i), p.push(n[3]), f.push(i), h.push(o), a[d] = [o, d, "private", i]) : a[d] = [h[r], d, "private", f[r]]) : a[d] = [n[2], n[1]], l[d] = !0),
  9694. "factory" !== n[2] && "type" !== n[2] || !n[1].$scope || t.forEach(function(e) {
  9695. n[1].$scope.indexOf(e) !== -1 && (a[d] = [n[2], n[1]], l[e] = !0)
  9696. });
  9697. t.forEach(function(e) {
  9698. if (!l[e]) throw new Error('No provider for "' + e + '". Cannot use provider from the parent!')
  9699. }),
  9700. e.unshift(a)
  9701. }
  9702. return new s(e, u)
  9703. },
  9704. g = {
  9705. factory: d,
  9706. type: h,
  9707. value: function(e) {
  9708. return e
  9709. }
  9710. };
  9711. e.forEach(function(e) {
  9712. function t(e, t) {
  9713. return "value" !== e && a(t) && (t = o(t.slice())),
  9714. t
  9715. }
  9716. if (e instanceof r) e.forEach(function(e) {
  9717. var n = e[0],
  9718. r = e[1],
  9719. i = e[2];
  9720. c[n] = [g[r], t(r, i), r]
  9721. });
  9722. else if ("object" == typeof e) if (e.__exports__) {
  9723. var n = Object.keys(e).reduce(function(t, n) {
  9724. return "__" !== n.substring(0, 2) && (t[n] = e[n]),
  9725. t
  9726. },
  9727. Object.create(null)),
  9728. i = new s((e.__modules__ || []).concat([n]), u),
  9729. l = o(function(e) {
  9730. return i.get(e)
  9731. });
  9732. e.__exports__.forEach(function(e) {
  9733. c[e] = [l, e, "private", i]
  9734. })
  9735. } else Object.keys(e).forEach(function(n) {
  9736. if ("private" === e[n][2]) return void(c[n] = e[n]);
  9737. var r = e[n][0],
  9738. i = e[n][1];
  9739. c[n] = [g[r], t(r, i), r]
  9740. })
  9741. }),
  9742. this.get = f,
  9743. this.invoke = d,
  9744. this.instantiate = h,
  9745. this.createChild = y
  9746. };
  9747. t.exports = s
  9748. },
  9749. {
  9750. 70 : 70,
  9751. 73 : 73
  9752. }],
  9753. 73 : [function(e, t, n) {
  9754. var r = function() {
  9755. var e = [];
  9756. this.factory = function(t, n) {
  9757. return e.push([t, "factory", n]),
  9758. this
  9759. },
  9760. this.value = function(t, n) {
  9761. return e.push([t, "value", n]),
  9762. this
  9763. },
  9764. this.type = function(t, n) {
  9765. return e.push([t, "type", n]),
  9766. this
  9767. },
  9768. this.forEach = function(t) {
  9769. e.forEach(t)
  9770. }
  9771. };
  9772. t.exports = r
  9773. },
  9774. {}],
  9775. 74 : [function(t, n, r) { !
  9776. function(t) {
  9777. var r, i, o = "0.4.2",
  9778. a = "hasOwnProperty",
  9779. s = /[\.\/]/,
  9780. c = /\s*,\s*/,
  9781. l = "*",
  9782. u = function(e, t) {
  9783. return e - t
  9784. },
  9785. p = {
  9786. n: {}
  9787. },
  9788. f = function() {
  9789. for (var e = 0,
  9790. t = this.length; e < t; e++) if ("undefined" != typeof this[e]) return this[e]
  9791. },
  9792. h = function() {
  9793. for (var e = this.length; --e;) if ("undefined" != typeof this[e]) return this[e]
  9794. },
  9795. d = function(e, t) {
  9796. e = String(e);
  9797. var n, o = i,
  9798. a = Array.prototype.slice.call(arguments, 2),
  9799. s = d.listeners(e),
  9800. c = 0,
  9801. l = [],
  9802. p = {},
  9803. m = [],
  9804. y = r;
  9805. m.firstDefined = f,
  9806. m.lastDefined = h,
  9807. r = e,
  9808. i = 0;
  9809. for (var g = 0,
  9810. v = s.length; g < v; g++)"zIndex" in s[g] && (l.push(s[g].zIndex), s[g].zIndex < 0 && (p[s[g].zIndex] = s[g]));
  9811. for (l.sort(u); l[c] < 0;) if (n = p[l[c++]], m.push(n.apply(t, a)), i) return i = o,
  9812. m;
  9813. for (g = 0; g < v; g++) if (n = s[g], "zIndex" in n) if (n.zIndex == l[c]) {
  9814. if (m.push(n.apply(t, a)), i) break;
  9815. do
  9816. if (c++, n = p[l[c]], n && m.push(n.apply(t, a)), i) break;
  9817. while (n)
  9818. } else p[n.zIndex] = n;
  9819. else if (m.push(n.apply(t, a)), i) break;
  9820. return i = o,
  9821. r = y,
  9822. m
  9823. };
  9824. d._events = p,
  9825. d.listeners = function(e) {
  9826. var t, n, r, i, o, a, c, u, f = e.split(s),
  9827. h = p,
  9828. d = [h],
  9829. m = [];
  9830. for (i = 0, o = f.length; i < o; i++) {
  9831. for (u = [], a = 0, c = d.length; a < c; a++) for (h = d[a].n, n = [h[f[i]], h[l]], r = 2; r--;) t = n[r],
  9832. t && (u.push(t), m = m.concat(t.f || []));
  9833. d = u
  9834. }
  9835. return m
  9836. },
  9837. d.on = function(e, t) {
  9838. if (e = String(e), "function" != typeof t) return function() {};
  9839. for (var n = e.split(c), r = 0, i = n.length; r < i; r++) !
  9840. function(e) {
  9841. for (var n, r = e.split(s), i = p, o = 0, a = r.length; o < a; o++) i = i.n,
  9842. i = i.hasOwnProperty(r[o]) && i[r[o]] || (i[r[o]] = {
  9843. n: {}
  9844. });
  9845. for (i.f = i.f || [], o = 0, a = i.f.length; o < a; o++) if (i.f[o] == t) {
  9846. n = !0;
  9847. break
  9848. } ! n && i.f.push(t)
  9849. } (n[r]);
  9850. return function(e) { + e == +e && (t.zIndex = +e)
  9851. }
  9852. },
  9853. d.f = function(e) {
  9854. var t = [].slice.call(arguments, 1);
  9855. return function() {
  9856. d.apply(null, [e, null].concat(t).concat([].slice.call(arguments, 0)))
  9857. }
  9858. },
  9859. d.stop = function() {
  9860. i = 1
  9861. },
  9862. d.nt = function(e) {
  9863. return e ? new RegExp("(?:\\.|\\/|^)" + e + "(?:\\.|\\/|$)").test(r) : r
  9864. },
  9865. d.nts = function() {
  9866. return r.split(s)
  9867. },
  9868. d.off = d.unbind = function(e, t) {
  9869. if (!e) return void(d._events = p = {
  9870. n: {}
  9871. });
  9872. var n = e.split(c);
  9873. if (n.length > 1) for (var r = 0,
  9874. i = n.length; r < i; r++) d.off(n[r], t);
  9875. else {
  9876. n = e.split(s);
  9877. var o, u, f, r, i, h, m, y = [p];
  9878. for (r = 0, i = n.length; r < i; r++) for (h = 0; h < y.length; h += f.length - 2) {
  9879. if (f = [h, 1], o = y[h].n, n[r] != l) o[n[r]] && f.push(o[n[r]]);
  9880. else for (u in o) o[a](u) && f.push(o[u]);
  9881. y.splice.apply(y, f)
  9882. }
  9883. for (r = 0, i = y.length; r < i; r++) for (o = y[r]; o.n;) {
  9884. if (t) {
  9885. if (o.f) {
  9886. for (h = 0, m = o.f.length; h < m; h++) if (o.f[h] == t) {
  9887. o.f.splice(h, 1);
  9888. break
  9889. } ! o.f.length && delete o.f
  9890. }
  9891. for (u in o.n) if (o.n[a](u) && o.n[u].f) {
  9892. var g = o.n[u].f;
  9893. for (h = 0, m = g.length; h < m; h++) if (g[h] == t) {
  9894. g.splice(h, 1);
  9895. break
  9896. } ! g.length && delete o.n[u].f
  9897. }
  9898. } else {
  9899. delete o.f;
  9900. for (u in o.n) o.n[a](u) && o.n[u].f && delete o.n[u].f
  9901. }
  9902. o = o.n
  9903. }
  9904. }
  9905. },
  9906. d.once = function(e, t) {
  9907. var n = function() {
  9908. return d.unbind(e, n),
  9909. t.apply(this, arguments)
  9910. };
  9911. return d.on(e, n)
  9912. },
  9913. d.version = o,
  9914. d.toString = function() {
  9915. return "You are running Eve " + o
  9916. },
  9917. "undefined" != typeof n && n.exports ? n.exports = d: "function" == typeof e && e.amd ? e("eve", [],
  9918. function() {
  9919. return d
  9920. }) : t.eve = d
  9921. } (this)
  9922. },
  9923. {}],
  9924. 75 : [function(t, n, r) { !
  9925. function(i, o) {
  9926. if ("function" == typeof e && e.amd) e(["eve"],
  9927. function(e) {
  9928. return o(i, e)
  9929. });
  9930. else if ("undefined" != typeof r) {
  9931. var a = t(74);
  9932. n.exports = o(i, a)
  9933. } else o(i, i.eve)
  9934. } (window || this,
  9935. function(e, t) {
  9936. var n = function(t) {
  9937. var n = {},
  9938. r = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame ||
  9939. function(e) {
  9940. setTimeout(e, 16)
  9941. },
  9942. i = Array.isArray ||
  9943. function(e) {
  9944. return e instanceof Array || "[object Array]" == Object.prototype.toString.call(e)
  9945. },
  9946. o = 0,
  9947. a = "M" + ( + new Date).toString(36),
  9948. s = function() {
  9949. return a + (o++).toString(36)
  9950. },
  9951. c = Date.now ||
  9952. function() {
  9953. return + new Date
  9954. },
  9955. l = function(e) {
  9956. var t = this;
  9957. if (null == e) return t.s;
  9958. var n = t.s - e;
  9959. t.b += t.dur * n,
  9960. t.B += t.dur * n,
  9961. t.s = e
  9962. },
  9963. u = function(e) {
  9964. var t = this;
  9965. return null == e ? t.spd: void(t.spd = e)
  9966. },
  9967. p = function(e) {
  9968. var t = this;
  9969. return null == e ? t.dur: (t.s = t.s * e / t.dur, void(t.dur = e))
  9970. },
  9971. f = function() {
  9972. var e = this;
  9973. delete n[e.id],
  9974. e.update(),
  9975. t("mina.stop." + e.id, e)
  9976. },
  9977. h = function() {
  9978. var e = this;
  9979. e.pdif || (delete n[e.id], e.update(), e.pdif = e.get() - e.b)
  9980. },
  9981. d = function() {
  9982. var e = this;
  9983. e.pdif && (e.b = e.get() - e.pdif, delete e.pdif, n[e.id] = e)
  9984. },
  9985. m = function() {
  9986. var e, t = this;
  9987. if (i(t.start)) {
  9988. e = [];
  9989. for (var n = 0,
  9990. r = t.start.length; n < r; n++) e[n] = +t.start[n] + (t.end[n] - t.start[n]) * t.easing(t.s)
  9991. } else e = +t.start + (t.end - t.start) * t.easing(t.s);
  9992. t.set(e)
  9993. },
  9994. y = function() {
  9995. var e = 0;
  9996. for (var i in n) if (n.hasOwnProperty(i)) {
  9997. var o = n[i],
  9998. a = o.get();
  9999. e++,
  10000. o.s = (a - o.b) / (o.dur / o.spd),
  10001. o.s >= 1 && (delete n[i], o.s = 1, e--,
  10002. function(e) {
  10003. setTimeout(function() {
  10004. t("mina.finish." + e.id, e)
  10005. })
  10006. } (o)),
  10007. o.update()
  10008. }
  10009. e && r(y)
  10010. },
  10011. g = function(e, t, i, o, a, c, v) {
  10012. var x = {
  10013. id: s(),
  10014. start: e,
  10015. end: t,
  10016. b: i,
  10017. s: 0,
  10018. dur: o - i,
  10019. spd: 1,
  10020. get: a,
  10021. set: c,
  10022. easing: v || g.linear,
  10023. status: l,
  10024. speed: u,
  10025. duration: p,
  10026. stop: f,
  10027. pause: h,
  10028. resume: d,
  10029. update: m
  10030. };
  10031. n[x.id] = x;
  10032. var b, E = 0;
  10033. for (b in n) if (n.hasOwnProperty(b) && (E++, 2 == E)) break;
  10034. return 1 == E && r(y),
  10035. x
  10036. };
  10037. return g.time = c,
  10038. g.getById = function(e) {
  10039. return n[e] || null
  10040. },
  10041. g.linear = function(e) {
  10042. return e
  10043. },
  10044. g.easeout = function(e) {
  10045. return Math.pow(e, 1.7)
  10046. },
  10047. g.easein = function(e) {
  10048. return Math.pow(e, .48)
  10049. },
  10050. g.easeinout = function(e) {
  10051. if (1 == e) return 1;
  10052. if (0 == e) return 0;
  10053. var t = .48 - e / 1.04,
  10054. n = Math.sqrt(.1734 + t * t),
  10055. r = n - t,
  10056. i = Math.pow(Math.abs(r), 1 / 3) * (r < 0 ? -1 : 1),
  10057. o = -n - t,
  10058. a = Math.pow(Math.abs(o), 1 / 3) * (o < 0 ? -1 : 1),
  10059. s = i + a + .5;
  10060. return 3 * (1 - s) * s * s + s * s * s
  10061. },
  10062. g.backin = function(e) {
  10063. if (1 == e) return 1;
  10064. var t = 1.70158;
  10065. return e * e * ((t + 1) * e - t)
  10066. },
  10067. g.backout = function(e) {
  10068. if (0 == e) return 0;
  10069. e -= 1;
  10070. var t = 1.70158;
  10071. return e * e * ((t + 1) * e + t) + 1
  10072. },
  10073. g.elastic = function(e) {
  10074. return e == !!e ? e: Math.pow(2, -10 * e) * Math.sin((e - .075) * (2 * Math.PI) / .3) + 1
  10075. },
  10076. g.bounce = function(e) {
  10077. var t, n = 7.5625,
  10078. r = 2.75;
  10079. return e < 1 / r ? t = n * e * e: e < 2 / r ? (e -= 1.5 / r, t = n * e * e + .75) : e < 2.5 / r ? (e -= 2.25 / r, t = n * e * e + .9375) : (e -= 2.625 / r, t = n * e * e + .984375),
  10080. t
  10081. },
  10082. e.mina = g,
  10083. g
  10084. } ("undefined" == typeof t ?
  10085. function() {}: t),
  10086. r = function(e) {
  10087. function n(e, t) {
  10088. if (e) {
  10089. if (e.tagName) return w(e);
  10090. if (i(e, "array") && n.set) return n.set.apply(n, e);
  10091. if (e instanceof v) return e;
  10092. if (null == t) return e = A.doc.querySelector(e),
  10093. w(e)
  10094. }
  10095. return e = null == e ? "100%": e,
  10096. t = null == t ? "100%": t,
  10097. new E(e, t)
  10098. }
  10099. function r(e, t) {
  10100. if (t) {
  10101. if ("#text" == e && (e = A.doc.createTextNode(t.text || "")), "string" == typeof e && (e = r(e)), "string" == typeof t) return "xlink:" == t.substring(0, 6) ? e.getAttributeNS(z, t.substring(6)) : "xml:" == t.substring(0, 4) ? e.getAttributeNS(q, t.substring(4)) : e.getAttribute(t);
  10102. for (var n in t) if (t[_](n)) {
  10103. var i = S(t[n]);
  10104. i ? "xlink:" == n.substring(0, 6) ? e.setAttributeNS(z, n.substring(6), i) : "xml:" == n.substring(0, 4) ? e.setAttributeNS(q, n.substring(4), i) : e.setAttribute(n, i) : e.removeAttribute(n)
  10105. }
  10106. } else e = A.doc.createElementNS(q, e);
  10107. return e
  10108. }
  10109. function i(e, t) {
  10110. return t = S.prototype.toLowerCase.call(t),
  10111. "finite" == t ? isFinite(e) : !("array" != t || !(e instanceof Array || Array.isArray && Array.isArray(e))) || ("null" == t && null === e || t == typeof e && null !== e || "object" == t && e === Object(e) || O.call(e).slice(8, -1).toLowerCase() == t)
  10112. }
  10113. function o(e) {
  10114. if ("function" == typeof e || Object(e) !== e) return e;
  10115. var t = new e.constructor;
  10116. for (var n in e) e[_](n) && (t[n] = o(e[n]));
  10117. return t
  10118. }
  10119. function a(e, t) {
  10120. for (var n = 0,
  10121. r = e.length; n < r; n++) if (e[n] === t) return e.push(e.splice(n, 1)[0])
  10122. }
  10123. function s(e, t, n) {
  10124. function r() {
  10125. var i = Array.prototype.slice.call(arguments, 0),
  10126. o = i.join("␀"),
  10127. s = r.cache = r.cache || {},
  10128. c = r.count = r.count || [];
  10129. return s[_](o) ? (a(c, o), n ? n(s[o]) : s[o]) : (c.length >= 1e3 && delete s[c.shift()], c.push(o), s[o] = e.apply(t, i), n ? n(s[o]) : s[o])
  10130. }
  10131. return r
  10132. }
  10133. function c(e, t, n, r, i, o) {
  10134. if (null == i) {
  10135. var a = e - n,
  10136. s = t - r;
  10137. return a || s ? (180 + 180 * R.atan2( - s, -a) / D + 360) % 360 : 0
  10138. }
  10139. return c(e, t, i, o) - c(n, r, i, o)
  10140. }
  10141. function l(e) {
  10142. return e % 360 * D / 180
  10143. }
  10144. function u(e) {
  10145. return 180 * e / D % 360
  10146. }
  10147. function p(e) {
  10148. var t = [];
  10149. return e = e.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,
  10150. function(e, n, r) {
  10151. return r = r.split(/\s*,\s*|\s+/),
  10152. "rotate" == n && 1 == r.length && r.push(0, 0),
  10153. "scale" == n && (r.length > 2 ? r = r.slice(0, 2) : 2 == r.length && r.push(0, 0), 1 == r.length && r.push(r[0], 0, 0)),
  10154. "skewX" == n ? t.push(["m", 1, 0, R.tan(l(r[0])), 1, 0, 0]) : "skewY" == n ? t.push(["m", 1, R.tan(l(r[0])), 0, 1, 0, 0]) : t.push([n.charAt(0)].concat(r)),
  10155. e
  10156. }),
  10157. t
  10158. }
  10159. function f(e, t) {
  10160. var r = J(e),
  10161. i = new n.Matrix;
  10162. if (r) for (var o = 0,
  10163. a = r.length; o < a; o++) {
  10164. var s, c, l, u, p, f = r[o],
  10165. h = f.length,
  10166. d = S(f[0]).toLowerCase(),
  10167. m = f[0] != d,
  10168. y = m ? i.invert() : 0;
  10169. "t" == d && 2 == h ? i.translate(f[1], 0) : "t" == d && 3 == h ? m ? (s = y.x(0, 0), c = y.y(0, 0), l = y.x(f[1], f[2]), u = y.y(f[1], f[2]), i.translate(l - s, u - c)) : i.translate(f[1], f[2]) : "r" == d ? 2 == h ? (p = p || t, i.rotate(f[1], p.x + p.width / 2, p.y + p.height / 2)) : 4 == h && (m ? (l = y.x(f[2], f[3]), u = y.y(f[2], f[3]), i.rotate(f[1], l, u)) : i.rotate(f[1], f[2], f[3])) : "s" == d ? 2 == h || 3 == h ? (p = p || t, i.scale(f[1], f[h - 1], p.x + p.width / 2, p.y + p.height / 2)) : 4 == h ? m ? (l = y.x(f[2], f[3]), u = y.y(f[2], f[3]), i.scale(f[1], f[1], l, u)) : i.scale(f[1], f[1], f[2], f[3]) : 5 == h && (m ? (l = y.x(f[3], f[4]), u = y.y(f[3], f[4]), i.scale(f[1], f[2], l, u)) : i.scale(f[1], f[2], f[3], f[4])) : "m" == d && 7 == h && i.add(f[1], f[2], f[3], f[4], f[5], f[6])
  10170. }
  10171. return i
  10172. }
  10173. function h(e) {
  10174. var t = e.node.ownerSVGElement && w(e.node.ownerSVGElement) || e.node.parentNode && w(e.node.parentNode) || n.select("svg") || n(0, 0),
  10175. r = t.select("defs"),
  10176. i = null != r && r.node;
  10177. return i || (i = b("defs", t.node).node),
  10178. i
  10179. }
  10180. function d(e) {
  10181. return e.node.ownerSVGElement && w(e.node.ownerSVGElement) || n.select("svg")
  10182. }
  10183. function m(e, t, n) {
  10184. function i(e) {
  10185. if (null == e) return k;
  10186. if (e == +e) return e;
  10187. r(l, {
  10188. width: e
  10189. });
  10190. try {
  10191. return l.getBBox().width
  10192. } catch(e) {
  10193. return 0
  10194. }
  10195. }
  10196. function o(e) {
  10197. if (null == e) return k;
  10198. if (e == +e) return e;
  10199. r(l, {
  10200. height: e
  10201. });
  10202. try {
  10203. return l.getBBox().height
  10204. } catch(e) {
  10205. return 0
  10206. }
  10207. }
  10208. function a(r, i) {
  10209. null == t ? c[r] = i(e.attr(r) || 0) : r == t && (c = i(null == n ? e.attr(r) || 0 : n))
  10210. }
  10211. var s = d(e).node,
  10212. c = {},
  10213. l = s.querySelector(".svg---mgr");
  10214. switch (l || (l = r("rect"), r(l, {
  10215. x: -9e9,
  10216. y: -9e9,
  10217. width: 10,
  10218. height: 10,
  10219. class: "svg---mgr",
  10220. fill: "none"
  10221. }), s.appendChild(l)), e.type) {
  10222. case "rect":
  10223. a("rx", i),
  10224. a("ry", o);
  10225. case "image":
  10226. a("width", i),
  10227. a("height", o);
  10228. case "text":
  10229. a("x", i),
  10230. a("y", o);
  10231. break;
  10232. case "circle":
  10233. a("cx", i),
  10234. a("cy", o),
  10235. a("r", i);
  10236. break;
  10237. case "ellipse":
  10238. a("cx", i),
  10239. a("cy", o),
  10240. a("rx", i),
  10241. a("ry", o);
  10242. break;
  10243. case "line":
  10244. a("x1", i),
  10245. a("x2", i),
  10246. a("y1", o),
  10247. a("y2", o);
  10248. break;
  10249. case "marker":
  10250. a("refX", i),
  10251. a("markerWidth", i),
  10252. a("refY", o),
  10253. a("markerHeight", o);
  10254. break;
  10255. case "radialGradient":
  10256. a("fx", i),
  10257. a("fy", o);
  10258. break;
  10259. case "tspan":
  10260. a("dx", i),
  10261. a("dy", o);
  10262. break;
  10263. default:
  10264. a(t, i)
  10265. }
  10266. return s.removeChild(l),
  10267. c
  10268. }
  10269. function y(e) {
  10270. i(e, "array") || (e = Array.prototype.slice.call(arguments, 0));
  10271. for (var t = 0,
  10272. n = 0,
  10273. r = this.node; this[t];) delete this[t++];
  10274. for (t = 0; t < e.length; t++)"set" == e[t].type ? e[t].forEach(function(e) {
  10275. r.appendChild(e.node)
  10276. }) : r.appendChild(e[t].node);
  10277. var o = r.childNodes;
  10278. for (t = 0; t < o.length; t++) this[n++] = w(o[t]);
  10279. return this
  10280. }
  10281. function v(e) {
  10282. if (e.snap in H) return H[e.snap];
  10283. var t;
  10284. try {
  10285. t = e.ownerSVGElement
  10286. } catch(e) {}
  10287. this.node = e,
  10288. t && (this.paper = new E(t)),
  10289. this.type = e.tagName;
  10290. var n = this.id = W(this);
  10291. if (this.anims = {},
  10292. this._ = {
  10293. transform: []
  10294. },
  10295. e.snap = n, H[n] = this, "g" == this.type && (this.add = y), this.type in {
  10296. g: 1,
  10297. mask: 1,
  10298. pattern: 1,
  10299. symbol: 1
  10300. }) for (var r in E.prototype) E.prototype[_](r) && (this[r] = E.prototype[r])
  10301. }
  10302. function x(e) {
  10303. this.node = e
  10304. }
  10305. function b(e, t) {
  10306. var n = r(e);
  10307. t.appendChild(n);
  10308. var i = w(n);
  10309. return i
  10310. }
  10311. function E(e, t) {
  10312. var n, i, o, a = E.prototype;
  10313. if (e && "svg" == e.tagName) {
  10314. if (e.snap in H) return H[e.snap];
  10315. var s = e.ownerDocument;
  10316. n = new v(e),
  10317. i = e.getElementsByTagName("desc")[0],
  10318. o = e.getElementsByTagName("defs")[0],
  10319. i || (i = r("desc"), i.appendChild(s.createTextNode("Created with Snap")), n.node.appendChild(i)),
  10320. o || (o = r("defs"), n.node.appendChild(o)),
  10321. n.defs = o;
  10322. for (var c in a) a[_](c) && (n[c] = a[c]);
  10323. n.paper = n.root = n
  10324. } else n = b("svg", A.doc.body),
  10325. r(n.node, {
  10326. height: t,
  10327. version: 1.1,
  10328. width: e,
  10329. xmlns: q
  10330. });
  10331. return n
  10332. }
  10333. function w(e) {
  10334. return e ? e instanceof v || e instanceof x ? e: e.tagName && "svg" == e.tagName.toLowerCase() ? new E(e) : e.tagName && "object" == e.tagName.toLowerCase() && "image/svg+xml" == e.type ? new E(e.contentDocument.getElementsByTagName("svg")[0]) : new v(e) : e
  10335. }
  10336. n.version = "0.3.0",
  10337. n.toString = function() {
  10338. return "Snap v" + this.version
  10339. },
  10340. n._ = {};
  10341. var A = {
  10342. win: e.window,
  10343. doc: e.window.document
  10344. };
  10345. n._.glob = A;
  10346. var _ = "hasOwnProperty",
  10347. S = String,
  10348. T = parseFloat,
  10349. C = parseInt,
  10350. R = Math,
  10351. N = R.max,
  10352. M = R.min,
  10353. P = R.abs,
  10354. D = (R.pow, R.PI),
  10355. k = (R.round, ""),
  10356. O = Object.prototype.toString,
  10357. B = /^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,
  10358. I = (n._.separator = /[,\s]+/, /[\s]*,[\s]*/),
  10359. L = {
  10360. hs: 1,
  10361. rg: 1
  10362. },
  10363. F = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,
  10364. j = /([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,
  10365. V = /(-?\d*\.?\d*(?:e[\-+]?\\d+)?)[\s]*,?[\s]*/gi,
  10366. G = 0,
  10367. U = "S" + ( + new Date).toString(36),
  10368. W = function(e) {
  10369. return (e && e.type ? e.type: k) + U + (G++).toString(36)
  10370. },
  10371. z = "http://www.w3.org/1999/xlink",
  10372. q = "http://www.w3.org/2000/svg",
  10373. H = {};
  10374. n.url = function(e) {
  10375. return "url('#" + e + "')"
  10376. };
  10377. n._.$ = r,
  10378. n._.id = W,
  10379. n.format = function() {
  10380. var e = /\{([^\}]+)\}/g,
  10381. t = /(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,
  10382. n = function(e, n, r) {
  10383. var i = r;
  10384. return n.replace(t,
  10385. function(e, t, n, r, o) {
  10386. t = t || r,
  10387. i && (t in i && (i = i[t]), "function" == typeof i && o && (i = i()))
  10388. }),
  10389. i = (null == i || i == r ? e: i) + ""
  10390. };
  10391. return function(t, r) {
  10392. return S(t).replace(e,
  10393. function(e, t) {
  10394. return n(e, t, r)
  10395. })
  10396. }
  10397. } (),
  10398. n._.clone = o,
  10399. n._.cacher = s,
  10400. n.rad = l,
  10401. n.deg = u,
  10402. n.angle = c,
  10403. n.is = i,
  10404. n.snapTo = function(e, t, n) {
  10405. if (n = i(n, "finite") ? n: 10, i(e, "array")) {
  10406. for (var r = e.length; r--;) if (P(e[r] - t) <= n) return e[r]
  10407. } else {
  10408. e = +e;
  10409. var o = t % e;
  10410. if (o < n) return t - o;
  10411. if (o > e - n) return t - o + e
  10412. }
  10413. return t
  10414. },
  10415. n.getRGB = s(function(e) {
  10416. if (!e || (e = S(e)).indexOf("-") + 1) return {
  10417. r: -1,
  10418. g: -1,
  10419. b: -1,
  10420. hex: "none",
  10421. error: 1,
  10422. toString: X
  10423. };
  10424. if ("none" == e) return {
  10425. r: -1,
  10426. g: -1,
  10427. b: -1,
  10428. hex: "none",
  10429. toString: X
  10430. };
  10431. if (! (L[_](e.toLowerCase().substring(0, 2)) || "#" == e.charAt()) && (e = Y(e)), !e) return {
  10432. r: -1,
  10433. g: -1,
  10434. b: -1,
  10435. hex: "none",
  10436. error: 1,
  10437. toString: X
  10438. };
  10439. var t, r, o, a, s, c, l = e.match(B);
  10440. return l ? (l[2] && (o = C(l[2].substring(5), 16), r = C(l[2].substring(3, 5), 16), t = C(l[2].substring(1, 3), 16)), l[3] && (o = C((s = l[3].charAt(3)) + s, 16), r = C((s = l[3].charAt(2)) + s, 16), t = C((s = l[3].charAt(1)) + s, 16)), l[4] && (c = l[4].split(I), t = T(c[0]), "%" == c[0].slice( - 1) && (t *= 2.55), r = T(c[1]), "%" == c[1].slice( - 1) && (r *= 2.55), o = T(c[2]), "%" == c[2].slice( - 1) && (o *= 2.55), "rgba" == l[1].toLowerCase().slice(0, 4) && (a = T(c[3])), c[3] && "%" == c[3].slice( - 1) && (a /= 100)), l[5] ? (c = l[5].split(I), t = T(c[0]), "%" == c[0].slice( - 1) && (t /= 100), r = T(c[1]), "%" == c[1].slice( - 1) && (r /= 100), o = T(c[2]), "%" == c[2].slice( - 1) && (o /= 100), ("deg" == c[0].slice( - 3) || "°" == c[0].slice( - 1)) && (t /= 360), "hsba" == l[1].toLowerCase().slice(0, 4) && (a = T(c[3])), c[3] && "%" == c[3].slice( - 1) && (a /= 100), n.hsb2rgb(t, r, o, a)) : l[6] ? (c = l[6].split(I), t = T(c[0]), "%" == c[0].slice( - 1) && (t /= 100), r = T(c[1]), "%" == c[1].slice( - 1) && (r /= 100), o = T(c[2]), "%" == c[2].slice( - 1) && (o /= 100), ("deg" == c[0].slice( - 3) || "°" == c[0].slice( - 1)) && (t /= 360), "hsla" == l[1].toLowerCase().slice(0, 4) && (a = T(c[3])), c[3] && "%" == c[3].slice( - 1) && (a /= 100), n.hsl2rgb(t, r, o, a)) : (t = M(R.round(t), 255), r = M(R.round(r), 255), o = M(R.round(o), 255), a = M(N(a, 0), 1), l = {
  10441. r: t,
  10442. g: r,
  10443. b: o,
  10444. toString: X
  10445. },
  10446. l.hex = "#" + (16777216 | o | r << 8 | t << 16).toString(16).slice(1), l.opacity = i(a, "finite") ? a: 1, l)) : {
  10447. r: -1,
  10448. g: -1,
  10449. b: -1,
  10450. hex: "none",
  10451. error: 1,
  10452. toString: X
  10453. }
  10454. },
  10455. n),
  10456. n.hsb = s(function(e, t, r) {
  10457. return n.hsb2rgb(e, t, r).hex
  10458. }),
  10459. n.hsl = s(function(e, t, r) {
  10460. return n.hsl2rgb(e, t, r).hex
  10461. }),
  10462. n.rgb = s(function(e, t, n, r) {
  10463. if (i(r, "finite")) {
  10464. var o = R.round;
  10465. return "rgba(" + [o(e), o(t), o(n), +r.toFixed(2)] + ")"
  10466. }
  10467. return "#" + (16777216 | n | t << 8 | e << 16).toString(16).slice(1)
  10468. });
  10469. var Y = function(e) {
  10470. var t = A.doc.getElementsByTagName("head")[0] || A.doc.getElementsByTagName("svg")[0],
  10471. n = "rgb(255, 0, 0)";
  10472. return (Y = s(function(e) {
  10473. if ("red" == e.toLowerCase()) return n;
  10474. t.style.color = n,
  10475. t.style.color = e;
  10476. var r = A.doc.defaultView.getComputedStyle(t, k).getPropertyValue("color");
  10477. return r == n ? null: r
  10478. }))(e)
  10479. },
  10480. $ = function() {
  10481. return "hsb(" + [this.h, this.s, this.b] + ")"
  10482. },
  10483. K = function() {
  10484. return "hsl(" + [this.h, this.s, this.l] + ")"
  10485. },
  10486. X = function() {
  10487. return 1 == this.opacity || null == this.opacity ? this.hex: "rgba(" + [this.r, this.g, this.b, this.opacity] + ")"
  10488. },
  10489. Q = function(e, t, r) {
  10490. if (null == t && i(e, "object") && "r" in e && "g" in e && "b" in e && (r = e.b, t = e.g, e = e.r), null == t && i(e, string)) {
  10491. var o = n.getRGB(e);
  10492. e = o.r,
  10493. t = o.g,
  10494. r = o.b
  10495. }
  10496. return (e > 1 || t > 1 || r > 1) && (e /= 255, t /= 255, r /= 255),
  10497. [e, t, r]
  10498. },
  10499. Z = function(e, t, r, o) {
  10500. e = R.round(255 * e),
  10501. t = R.round(255 * t),
  10502. r = R.round(255 * r);
  10503. var a = {
  10504. r: e,
  10505. g: t,
  10506. b: r,
  10507. opacity: i(o, "finite") ? o: 1,
  10508. hex: n.rgb(e, t, r),
  10509. toString: X
  10510. };
  10511. return i(o, "finite") && (a.opacity = o),
  10512. a
  10513. };
  10514. n.color = function(e) {
  10515. var t;
  10516. return i(e, "object") && "h" in e && "s" in e && "b" in e ? (t = n.hsb2rgb(e), e.r = t.r, e.g = t.g, e.b = t.b, e.opacity = 1, e.hex = t.hex) : i(e, "object") && "h" in e && "s" in e && "l" in e ? (t = n.hsl2rgb(e), e.r = t.r, e.g = t.g, e.b = t.b, e.opacity = 1, e.hex = t.hex) : (i(e, "string") && (e = n.getRGB(e)), i(e, "object") && "r" in e && "g" in e && "b" in e && !("error" in e) ? (t = n.rgb2hsl(e), e.h = t.h, e.s = t.s, e.l = t.l, t = n.rgb2hsb(e), e.v = t.b) : (e = {
  10517. hex: "none"
  10518. },
  10519. e.r = e.g = e.b = e.h = e.s = e.v = e.l = -1, e.error = 1)),
  10520. e.toString = X,
  10521. e
  10522. },
  10523. n.hsb2rgb = function(e, t, n, r) {
  10524. i(e, "object") && "h" in e && "s" in e && "b" in e && (n = e.b, t = e.s, e = e.h, r = e.o),
  10525. e *= 360;
  10526. var o, a, s, c, l;
  10527. return e = e % 360 / 60,
  10528. l = n * t,
  10529. c = l * (1 - P(e % 2 - 1)),
  10530. o = a = s = n - l,
  10531. e = ~~e,
  10532. o += [l, c, 0, 0, c, l][e],
  10533. a += [c, l, l, c, 0, 0][e],
  10534. s += [0, 0, c, l, l, c][e],
  10535. Z(o, a, s, r)
  10536. },
  10537. n.hsl2rgb = function(e, t, n, r) {
  10538. i(e, "object") && "h" in e && "s" in e && "l" in e && (n = e.l, t = e.s, e = e.h),
  10539. (e > 1 || t > 1 || n > 1) && (e /= 360, t /= 100, n /= 100),
  10540. e *= 360;
  10541. var o, a, s, c, l;
  10542. return e = e % 360 / 60,
  10543. l = 2 * t * (n < .5 ? n: 1 - n),
  10544. c = l * (1 - P(e % 2 - 1)),
  10545. o = a = s = n - l / 2,
  10546. e = ~~e,
  10547. o += [l, c, 0, 0, c, l][e],
  10548. a += [c, l, l, c, 0, 0][e],
  10549. s += [0, 0, c, l, l, c][e],
  10550. Z(o, a, s, r)
  10551. },
  10552. n.rgb2hsb = function(e, t, n) {
  10553. n = Q(e, t, n),
  10554. e = n[0],
  10555. t = n[1],
  10556. n = n[2];
  10557. var r, i, o, a;
  10558. return o = N(e, t, n),
  10559. a = o - M(e, t, n),
  10560. r = 0 == a ? null: o == e ? (t - n) / a: o == t ? (n - e) / a + 2 : (e - t) / a + 4,
  10561. r = (r + 360) % 6 * 60 / 360,
  10562. i = 0 == a ? 0 : a / o,
  10563. {
  10564. h: r,
  10565. s: i,
  10566. b: o,
  10567. toString: $
  10568. }
  10569. },
  10570. n.rgb2hsl = function(e, t, n) {
  10571. n = Q(e, t, n),
  10572. e = n[0],
  10573. t = n[1],
  10574. n = n[2];
  10575. var r, i, o, a, s, c;
  10576. return a = N(e, t, n),
  10577. s = M(e, t, n),
  10578. c = a - s,
  10579. r = 0 == c ? null: a == e ? (t - n) / c: a == t ? (n - e) / c + 2 : (e - t) / c + 4,
  10580. r = (r + 360) % 6 * 60 / 360,
  10581. o = (a + s) / 2,
  10582. i = 0 == c ? 0 : o < .5 ? c / (2 * o) : c / (2 - 2 * o),
  10583. {
  10584. h: r,
  10585. s: i,
  10586. l: o,
  10587. toString: K
  10588. }
  10589. },
  10590. n.parsePathString = function(e) {
  10591. if (!e) return null;
  10592. var t = n.path(e);
  10593. if (t.arr) return n.path.clone(t.arr);
  10594. var r = {
  10595. a: 7,
  10596. c: 6,
  10597. o: 2,
  10598. h: 1,
  10599. l: 2,
  10600. m: 2,
  10601. r: 4,
  10602. q: 4,
  10603. s: 4,
  10604. t: 2,
  10605. v: 1,
  10606. u: 3,
  10607. z: 0
  10608. },
  10609. o = [];
  10610. return i(e, "array") && i(e[0], "array") && (o = n.path.clone(e)),
  10611. o.length || S(e).replace(F,
  10612. function(e, t, n) {
  10613. var i = [],
  10614. a = t.toLowerCase();
  10615. if (n.replace(V,
  10616. function(e, t) {
  10617. t && i.push( + t)
  10618. }), "m" == a && i.length > 2 && (o.push([t].concat(i.splice(0, 2))), a = "l", t = "m" == t ? "l": "L"), "o" == a && 1 == i.length && o.push([t, i[0]]), "r" == a) o.push([t].concat(i));
  10619. else for (; i.length >= r[a] && (o.push([t].concat(i.splice(0, r[a]))), r[a]););
  10620. }),
  10621. o.toString = n.path.toString,
  10622. t.arr = n.path.clone(o),
  10623. o
  10624. };
  10625. var J = n.parseTransformString = function(e) {
  10626. if (!e) return null;
  10627. var t = [];
  10628. return i(e, "array") && i(e[0], "array") && (t = n.path.clone(e)),
  10629. t.length || S(e).replace(j,
  10630. function(e, n, r) {
  10631. var i = [];
  10632. n.toLowerCase();
  10633. r.replace(V,
  10634. function(e, t) {
  10635. t && i.push( + t)
  10636. }),
  10637. t.push([n].concat(i))
  10638. }),
  10639. t.toString = n.path.toString,
  10640. t
  10641. };
  10642. n._.svgTransform2string = p,
  10643. n._.rgTransform = /^[a-z][\s]*-?\.?\d/i,
  10644. n._.transform2matrix = f,
  10645. n._unit2px = m;
  10646. A.doc.contains || A.doc.compareDocumentPosition ?
  10647. function(e, t) {
  10648. var n = 9 == e.nodeType ? e.documentElement: e,
  10649. r = t && t.parentNode;
  10650. return e == r || !(!r || 1 != r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)))
  10651. }: function(e, t) {
  10652. if (t) for (; t;) if (t = t.parentNode, t == e) return ! 0;
  10653. return ! 1
  10654. };
  10655. n._.getSomeDefs = h,
  10656. n._.getSomeSVG = d,
  10657. n.select = function(e) {
  10658. return e = S(e).replace(/([^\\]):/g, "$1\\:"),
  10659. w(A.doc.querySelector(e))
  10660. },
  10661. n.selectAll = function(e) {
  10662. for (var t = A.doc.querySelectorAll(e), r = (n.set || Array)(), i = 0; i < t.length; i++) r.push(w(t[i]));
  10663. return r
  10664. },
  10665. setInterval(function() {
  10666. for (var e in H) if (H[_](e)) {
  10667. var t = H[e],
  10668. n = t.node; ("svg" != t.type && !n.ownerSVGElement || "svg" == t.type && (!n.parentNode || "ownerSVGElement" in n.parentNode && !n.ownerSVGElement)) && delete H[e]
  10669. }
  10670. },
  10671. 1e4),
  10672. v.prototype.attr = function(e, n) {
  10673. var r = this;
  10674. r.node;
  10675. if (!e) return r;
  10676. if (i(e, "string")) {
  10677. if (! (arguments.length > 1)) return t("snap.util.getattr." + e, r).firstDefined();
  10678. var o = {};
  10679. o[e] = n,
  10680. e = o
  10681. }
  10682. for (var a in e) e[_](a) && t("snap.util.attr." + a, r, e[a]);
  10683. return r
  10684. },
  10685. n.parse = function(e) {
  10686. var t = A.doc.createDocumentFragment(),
  10687. n = !0,
  10688. r = A.doc.createElement("div");
  10689. if (e = S(e), e.match(/^\s*<\s*svg(?:\s|>)/) || (e = "<svg>" + e + "</svg>", n = !1), r.innerHTML = e, e = r.getElementsByTagName("svg")[0]) if (n) t = e;
  10690. else {
  10691. for (; e.firstChild;) t.appendChild(e.firstChild);
  10692. r.innerHTML = k
  10693. }
  10694. return new x(t)
  10695. },
  10696. n.fragment = function() {
  10697. for (var e = Array.prototype.slice.call(arguments, 0), t = A.doc.createDocumentFragment(), r = 0, i = e.length; r < i; r++) {
  10698. var o = e[r];
  10699. o.node && o.node.nodeType && t.appendChild(o.node),
  10700. o.nodeType && t.appendChild(o),
  10701. "string" == typeof o && t.appendChild(n.parse(o).node)
  10702. }
  10703. return new x(t)
  10704. },
  10705. n._.make = b,
  10706. n._.wrap = w,
  10707. E.prototype.el = function(e, t) {
  10708. var n = b(e, this.node);
  10709. return t && n.attr(t),
  10710. n
  10711. },
  10712. t.on("snap.util.getattr",
  10713. function() {
  10714. var e = t.nt();
  10715. e = e.substring(e.lastIndexOf(".") + 1);
  10716. var n = e.replace(/[A-Z]/g,
  10717. function(e) {
  10718. return "-" + e.toLowerCase()
  10719. });
  10720. return ee[_](n) ? this.node.ownerDocument.defaultView.getComputedStyle(this.node, null).getPropertyValue(n) : r(this.node, e)
  10721. });
  10722. var ee = {
  10723. "alignment-baseline": 0,
  10724. "baseline-shift": 0,
  10725. clip: 0,
  10726. "clip-path": 0,
  10727. "clip-rule": 0,
  10728. color: 0,
  10729. "color-interpolation": 0,
  10730. "color-interpolation-filters": 0,
  10731. "color-profile": 0,
  10732. "color-rendering": 0,
  10733. cursor: 0,
  10734. direction: 0,
  10735. display: 0,
  10736. "dominant-baseline": 0,
  10737. "enable-background": 0,
  10738. fill: 0,
  10739. "fill-opacity": 0,
  10740. "fill-rule": 0,
  10741. filter: 0,
  10742. "flood-color": 0,
  10743. "flood-opacity": 0,
  10744. font: 0,
  10745. "font-family": 0,
  10746. "font-size": 0,
  10747. "font-size-adjust": 0,
  10748. "font-stretch": 0,
  10749. "font-style": 0,
  10750. "font-variant": 0,
  10751. "font-weight": 0,
  10752. "glyph-orientation-horizontal": 0,
  10753. "glyph-orientation-vertical": 0,
  10754. "image-rendering": 0,
  10755. kerning: 0,
  10756. "letter-spacing": 0,
  10757. "lighting-color": 0,
  10758. marker: 0,
  10759. "marker-end": 0,
  10760. "marker-mid": 0,
  10761. "marker-start": 0,
  10762. mask: 0,
  10763. opacity: 0,
  10764. overflow: 0,
  10765. "pointer-events": 0,
  10766. "shape-rendering": 0,
  10767. "stop-color": 0,
  10768. "stop-opacity": 0,
  10769. stroke: 0,
  10770. "stroke-dasharray": 0,
  10771. "stroke-dashoffset": 0,
  10772. "stroke-linecap": 0,
  10773. "stroke-linejoin": 0,
  10774. "stroke-miterlimit": 0,
  10775. "stroke-opacity": 0,
  10776. "stroke-width": 0,
  10777. "text-anchor": 0,
  10778. "text-decoration": 0,
  10779. "text-rendering": 0,
  10780. "unicode-bidi": 0,
  10781. visibility: 0,
  10782. "word-spacing": 0,
  10783. "writing-mode": 0
  10784. };
  10785. t.on("snap.util.attr",
  10786. function(e) {
  10787. var n = t.nt(),
  10788. i = {};
  10789. n = n.substring(n.lastIndexOf(".") + 1),
  10790. i[n] = e;
  10791. var o = n.replace(/-(\w)/gi,
  10792. function(e, t) {
  10793. return t.toUpperCase()
  10794. }),
  10795. a = n.replace(/[A-Z]/g,
  10796. function(e) {
  10797. return "-" + e.toLowerCase()
  10798. });
  10799. ee[_](a) ? this.node.style[o] = null == e ? k: e: r(this.node, i)
  10800. }),
  10801. function(e) {} (E.prototype),
  10802. n.ajax = function(e, n, r, o) {
  10803. var a = new XMLHttpRequest,
  10804. s = W();
  10805. if (a) {
  10806. if (i(n, "function")) o = r,
  10807. r = n,
  10808. n = null;
  10809. else if (i(n, "object")) {
  10810. var c = [];
  10811. for (var l in n) n.hasOwnProperty(l) && c.push(encodeURIComponent(l) + "=" + encodeURIComponent(n[l]));
  10812. n = c.join("&")
  10813. }
  10814. return a.open(n ? "POST": "GET", e, !0),
  10815. n && (a.setRequestHeader("X-Requested-With", "XMLHttpRequest"), a.setRequestHeader("Content-type", "application/x-www-form-urlencoded")),
  10816. r && (t.once("snap.ajax." + s + ".0", r), t.once("snap.ajax." + s + ".200", r), t.once("snap.ajax." + s + ".304", r)),
  10817. a.onreadystatechange = function() {
  10818. 4 == a.readyState && t("snap.ajax." + s + "." + a.status, o, a)
  10819. },
  10820. 4 == a.readyState ? a: (a.send(n), a)
  10821. }
  10822. },
  10823. n.load = function(e, t, r) {
  10824. n.ajax(e,
  10825. function(e) {
  10826. var i = n.parse(e.responseText);
  10827. r ? t.call(r, i) : t(i)
  10828. })
  10829. };
  10830. var te = function(e) {
  10831. var t = e.getBoundingClientRect(),
  10832. n = e.ownerDocument,
  10833. r = n.body,
  10834. i = n.documentElement,
  10835. o = i.clientTop || r.clientTop || 0,
  10836. a = i.clientLeft || r.clientLeft || 0,
  10837. s = t.top + (g.win.pageYOffset || i.scrollTop || r.scrollTop) - o,
  10838. c = t.left + (g.win.pageXOffset || i.scrollLeft || r.scrollLeft) - a;
  10839. return {
  10840. y: s,
  10841. x: c
  10842. }
  10843. };
  10844. return n.getElementByPoint = function(e, t) {
  10845. var n = this,
  10846. r = (n.canvas, A.doc.elementFromPoint(e, t));
  10847. if (A.win.opera && "svg" == r.tagName) {
  10848. var i = te(r),
  10849. o = r.createSVGRect();
  10850. o.x = e - i.x,
  10851. o.y = t - i.y,
  10852. o.width = o.height = 1;
  10853. var a = r.getIntersectionList(o, null);
  10854. a.length && (r = a[a.length - 1])
  10855. }
  10856. return r ? w(r) : null
  10857. },
  10858. n.plugin = function(e) {
  10859. e(n, v, E, A, x)
  10860. },
  10861. A.win.Snap = n,
  10862. n
  10863. } (e || this);
  10864. return r.plugin(function(r, i, o, a, s) {
  10865. function c(e, t) {
  10866. if (null == t) {
  10867. var n = !0;
  10868. if (t = "linearGradient" == e.type || "radialGradient" == e.type ? e.node.getAttribute("gradientTransform") : "pattern" == e.type ? e.node.getAttribute("patternTransform") : e.node.getAttribute("transform"), !t) return new r.Matrix;
  10869. t = r._.svgTransform2string(t)
  10870. } else t = r._.rgTransform.test(t) ? d(t).replace(/\.{3}|\u2026/g, e._.transform || E) : r._.svgTransform2string(t),
  10871. h(t, "array") && (t = r.path ? r.path.toString.call(t) : d(t)),
  10872. e._.transform = t;
  10873. var i = r._.transform2matrix(t, e.getBBox(1));
  10874. return n ? i: void(e.matrix = i)
  10875. }
  10876. function l(e) {
  10877. function t(e, t) {
  10878. var n = y(e.node, t);
  10879. n = n && n.match(o),
  10880. n = n && n[2],
  10881. n && "#" == n.charAt() && (n = n.substring(1), n && (s[n] = (s[n] || []).concat(function(n) {
  10882. var r = {};
  10883. r[t] = URL(n),
  10884. y(e.node, r)
  10885. })))
  10886. }
  10887. function n(e) {
  10888. var t = y(e.node, "xlink:href");
  10889. t && "#" == t.charAt() && (t = t.substring(1), t && (s[t] = (s[t] || []).concat(function(t) {
  10890. e.attr("xlink:href", "#" + t)
  10891. })))
  10892. }
  10893. for (var r, i = e.selectAll("*"), o = /^\s*url\(("|'|)(.*)\1\)\s*$/, a = [], s = {},
  10894. c = 0, l = i.length; c < l; c++) {
  10895. r = i[c],
  10896. t(r, "fill"),
  10897. t(r, "stroke"),
  10898. t(r, "filter"),
  10899. t(r, "mask"),
  10900. t(r, "clip-path"),
  10901. n(r);
  10902. var u = y(r.node, "id");
  10903. u && (y(r.node, {
  10904. id: r.id
  10905. }), a.push({
  10906. old: u,
  10907. id: r.id
  10908. }))
  10909. }
  10910. for (c = 0, l = a.length; c < l; c++) {
  10911. var p = s[a[c].old];
  10912. if (p) for (var f = 0,
  10913. h = p.length; f < h; f++) p[f](a[c].id)
  10914. }
  10915. }
  10916. function u(e, t, n) {
  10917. return function(r) {
  10918. var i = r.slice(e, t);
  10919. return 1 == i.length && (i = i[0]),
  10920. n ? n(i) : i
  10921. }
  10922. }
  10923. function p(e) {
  10924. return function() {
  10925. var t = e ? "<" + this.type: "",
  10926. n = this.node.attributes,
  10927. r = this.node.childNodes;
  10928. if (e) for (var i = 0,
  10929. o = n.length; i < o; i++) t += " " + n[i].name + '="' + n[i].value.replace(/"/g, '\\"') + '"';
  10930. if (r.length) {
  10931. for (e && (t += ">"), i = 0, o = r.length; i < o; i++) 3 == r[i].nodeType ? t += r[i].nodeValue: 1 == r[i].nodeType && (t += b(r[i]).toString());
  10932. e && (t += "</" + this.type + ">")
  10933. } else e && (t += "/>");
  10934. return t
  10935. }
  10936. }
  10937. var f = i.prototype,
  10938. h = r.is,
  10939. d = String,
  10940. m = r._unit2px,
  10941. y = r._.$,
  10942. g = r._.make,
  10943. v = r._.getSomeDefs,
  10944. x = "hasOwnProperty",
  10945. b = r._.wrap;
  10946. f.getBBox = function(e) {
  10947. if (!r.Matrix || !r.path) return this.node.getBBox();
  10948. var t = this,
  10949. n = new r.Matrix;
  10950. if (t.removed) return r._.box();
  10951. for (;
  10952. "use" == t.type;) if (e || (n = n.add(t.transform().localMatrix.translate(t.attr("x") || 0, t.attr("y") || 0))), t.original) t = t.original;
  10953. else {
  10954. var i = t.attr("xlink:href");
  10955. t = t.original = t.node.ownerDocument.getElementById(i.substring(i.indexOf("#") + 1))
  10956. }
  10957. var o = t._,
  10958. a = r.path.get[t.type] || r.path.get.deflt;
  10959. try {
  10960. return e ? (o.bboxwt = a ? r.path.getBBox(t.realPath = a(t)) : r._.box(t.node.getBBox()), r._.box(o.bboxwt)) : (t.realPath = a(t), t.matrix = t.transform().localMatrix, o.bbox = r.path.getBBox(r.path.map(t.realPath, n.add(t.matrix))), r._.box(o.bbox))
  10961. } catch(e) {
  10962. return r._.box()
  10963. }
  10964. };
  10965. var w = function() {
  10966. return this.string
  10967. };
  10968. f.transform = function(e) {
  10969. var t = this._;
  10970. if (null == e) {
  10971. for (var n, i = this,
  10972. o = new r.Matrix(this.node.getCTM()), a = c(this), s = [a], l = new r.Matrix, u = a.toTransformString(), p = d(a) == d(this.matrix) ? d(t.transform) : u;
  10973. "svg" != i.type && (i = i.parent());) s.push(c(i));
  10974. for (n = s.length; n--;) l.add(s[n]);
  10975. return {
  10976. string: p,
  10977. globalMatrix: o,
  10978. totalMatrix: l,
  10979. localMatrix: a,
  10980. diffMatrix: o.clone().add(a.invert()),
  10981. global: o.toTransformString(),
  10982. total: l.toTransformString(),
  10983. local: u,
  10984. toString: w
  10985. }
  10986. }
  10987. return e instanceof r.Matrix ? (this.matrix = e, this._.transform = e.toTransformString()) : c(this, e),
  10988. this.node && ("linearGradient" == this.type || "radialGradient" == this.type ? y(this.node, {
  10989. gradientTransform: this.matrix
  10990. }) : "pattern" == this.type ? y(this.node, {
  10991. patternTransform: this.matrix
  10992. }) : y(this.node, {
  10993. transform: this.matrix
  10994. })),
  10995. this
  10996. },
  10997. f.parent = function() {
  10998. return b(this.node.parentNode)
  10999. },
  11000. f.append = f.add = function(e) {
  11001. if (e) {
  11002. if ("set" == e.type) {
  11003. var t = this;
  11004. return e.forEach(function(e) {
  11005. t.add(e)
  11006. }),
  11007. this
  11008. }
  11009. e = b(e),
  11010. this.node.appendChild(e.node),
  11011. e.paper = this.paper
  11012. }
  11013. return this
  11014. },
  11015. f.appendTo = function(e) {
  11016. return e && (e = b(e), e.append(this)),
  11017. this
  11018. },
  11019. f.prepend = function(e) {
  11020. if (e) {
  11021. if ("set" == e.type) {
  11022. var t, n = this;
  11023. return e.forEach(function(e) {
  11024. t ? t.after(e) : n.prepend(e),
  11025. t = e
  11026. }),
  11027. this
  11028. }
  11029. e = b(e);
  11030. var r = e.parent();
  11031. this.node.insertBefore(e.node, this.node.firstChild),
  11032. this.add && this.add(),
  11033. e.paper = this.paper,
  11034. this.parent() && this.parent().add(),
  11035. r && r.add()
  11036. }
  11037. return this
  11038. },
  11039. f.prependTo = function(e) {
  11040. return e = b(e),
  11041. e.prepend(this),
  11042. this
  11043. },
  11044. f.before = function(e) {
  11045. if ("set" == e.type) {
  11046. var t = this;
  11047. return e.forEach(function(e) {
  11048. var n = e.parent();
  11049. t.node.parentNode.insertBefore(e.node, t.node),
  11050. n && n.add()
  11051. }),
  11052. this.parent().add(),
  11053. this
  11054. }
  11055. e = b(e);
  11056. var n = e.parent();
  11057. return this.node.parentNode.insertBefore(e.node, this.node),
  11058. this.parent() && this.parent().add(),
  11059. n && n.add(),
  11060. e.paper = this.paper,
  11061. this
  11062. },
  11063. f.after = function(e) {
  11064. e = b(e);
  11065. var t = e.parent();
  11066. return this.node.nextSibling ? this.node.parentNode.insertBefore(e.node, this.node.nextSibling) : this.node.parentNode.appendChild(e.node),
  11067. this.parent() && this.parent().add(),
  11068. t && t.add(),
  11069. e.paper = this.paper,
  11070. this
  11071. },
  11072. f.insertBefore = function(e) {
  11073. e = b(e);
  11074. var t = this.parent();
  11075. return e.node.parentNode.insertBefore(this.node, e.node),
  11076. this.paper = e.paper,
  11077. t && t.add(),
  11078. e.parent() && e.parent().add(),
  11079. this
  11080. },
  11081. f.insertAfter = function(e) {
  11082. e = b(e);
  11083. var t = this.parent();
  11084. return e.node.parentNode.insertBefore(this.node, e.node.nextSibling),
  11085. this.paper = e.paper,
  11086. t && t.add(),
  11087. e.parent() && e.parent().add(),
  11088. this
  11089. },
  11090. f.remove = function() {
  11091. var e = this.parent();
  11092. return this.node.parentNode && this.node.parentNode.removeChild(this.node),
  11093. delete this.paper,
  11094. this.removed = !0,
  11095. e && e.add(),
  11096. this
  11097. },
  11098. f.select = function(e) {
  11099. return e = d(e).replace(/([^\\]):/g, "$1\\:"),
  11100. b(this.node.querySelector(e))
  11101. },
  11102. f.selectAll = function(e) {
  11103. for (var t = this.node.querySelectorAll(e), n = (r.set || Array)(), i = 0; i < t.length; i++) n.push(b(t[i]));
  11104. return n
  11105. },
  11106. f.asPX = function(e, t) {
  11107. return null == t && (t = this.attr(e)),
  11108. +m(this, e, t)
  11109. },
  11110. f.use = function() {
  11111. var e, t = this.node.id;
  11112. return t || (t = this.id, y(this.node, {
  11113. id: t
  11114. })),
  11115. e = "linearGradient" == this.type || "radialGradient" == this.type || "pattern" == this.type ? g(this.type, this.node.parentNode) : g("use", this.node.parentNode),
  11116. y(e.node, {
  11117. "xlink:href": "#" + t
  11118. }),
  11119. e.original = this,
  11120. e
  11121. },
  11122. f.clone = function() {
  11123. var e = b(this.node.cloneNode(!0));
  11124. return y(e.node, "id") && y(e.node, {
  11125. id: e.id
  11126. }),
  11127. l(e),
  11128. e.insertAfter(this),
  11129. e
  11130. },
  11131. f.toDefs = function() {
  11132. var e = v(this);
  11133. return e.appendChild(this.node),
  11134. this
  11135. },
  11136. f.pattern = f.toPattern = function(e, t, n, r) {
  11137. var i = g("pattern", v(this));
  11138. return null == e && (e = this.getBBox()),
  11139. h(e, "object") && "x" in e && (t = e.y, n = e.width, r = e.height, e = e.x),
  11140. y(i.node, {
  11141. x: e,
  11142. y: t,
  11143. width: n,
  11144. height: r,
  11145. patternUnits: "userSpaceOnUse",
  11146. id: i.id,
  11147. viewBox: [e, t, n, r].join(" ")
  11148. }),
  11149. i.node.appendChild(this.node),
  11150. i
  11151. },
  11152. f.marker = function(e, t, n, r, i, o) {
  11153. markerIndex++;
  11154. if(markerIndex!=1){
  11155. var a = g("marker", v(this));
  11156. return null == e && (e = this.getBBox()),
  11157. h(e, "object") && "x" in e && (t = e.y, n = e.width, r = e.height, i = e.refX || e.cx, o = e.refY || e.cy, e = e.x),
  11158. y(a.node, {
  11159. viewBox: [e, t, n, r].join(" "),
  11160. markerWidth: n,
  11161. markerHeight: r,
  11162. orient: "auto",
  11163. refX: i || 0,
  11164. refY: o || 0,
  11165. id: a.id
  11166. }),
  11167. a.node.appendChild(this.node),
  11168. a
  11169. }else{
  11170. //待处理的箭头
  11171. var a = g("marker", v(this));
  11172. return null == e && (e = this.getBBox()),
  11173. h(e, "object") && "x" in e && (t = e.y, n = e.width, r = e.height, i = e.refX || e.cx, o = e.refY || e.cy, e = e.x),
  11174. y(a.node, {
  11175. viewBox: [e, t, n, r].join(" "),
  11176. markerWidth: n,
  11177. markerHeight: r,
  11178. orient: "auto",
  11179. optimized: false,
  11180. refX: i || 0,
  11181. refY: o || 0,
  11182. id: 'markerUnhandle'
  11183. }),
  11184. a.node.appendChild(this.node),
  11185. a;
  11186. }
  11187. };
  11188. var A = function(e, t, r, i) {
  11189. "function" != typeof r || r.length || (i = r, r = n.linear),
  11190. this.attr = e,
  11191. this.dur = t,
  11192. r && (this.easing = r),
  11193. i && (this.callback = i)
  11194. };
  11195. r._.Animation = A,
  11196. r.animation = function(e, t, n, r) {
  11197. return new A(e, t, n, r)
  11198. },
  11199. f.inAnim = function() {
  11200. var e = this,
  11201. t = [];
  11202. for (var n in e.anims) e.anims[x](n) && !
  11203. function(e) {
  11204. t.push({
  11205. anim: new A(e._attrs, e.dur, e.easing, e._callback),
  11206. mina: e,
  11207. curStatus: e.status(),
  11208. status: function(t) {
  11209. return e.status(t)
  11210. },
  11211. stop: function() {
  11212. e.stop()
  11213. }
  11214. })
  11215. } (e.anims[n]);
  11216. return t
  11217. },
  11218. r.animate = function(e, r, i, o, a, s) {
  11219. "function" != typeof a || a.length || (s = a, a = n.linear);
  11220. var c = n.time(),
  11221. l = n(e, r, c, c + o, n.time, i, a);
  11222. return s && t.once("mina.finish." + l.id, s),
  11223. l
  11224. },
  11225. f.stop = function() {
  11226. for (var e = this.inAnim(), t = 0, n = e.length; t < n; t++) e[t].stop();
  11227. return this
  11228. },
  11229. f.animate = function(e, r, i, o) {
  11230. "function" != typeof i || i.length || (o = i, i = n.linear),
  11231. e instanceof A && (o = e.callback, i = e.easing, r = i.dur, e = e.attr);
  11232. var a, s, c, l, p = [],
  11233. f = [],
  11234. m = {},
  11235. y = this;
  11236. for (var g in e) if (e[x](g)) {
  11237. y.equal ? (l = y.equal(g, d(e[g])), a = l.from, s = l.to, c = l.f) : (a = +y.attr(g), s = +e[g]);
  11238. var v = h(a, "array") ? a.length: 1;
  11239. m[g] = u(p.length, p.length + v, c),
  11240. p = p.concat(a),
  11241. f = f.concat(s)
  11242. }
  11243. var b = n.time(),
  11244. E = n(p, f, b, b + r, n.time,
  11245. function(e) {
  11246. var t = {};
  11247. for (var n in m) m[x](n) && (t[n] = m[n](e));
  11248. y.attr(t)
  11249. },
  11250. i);
  11251. return y.anims[E.id] = E,
  11252. E._attrs = e,
  11253. E._callback = o,
  11254. t("snap.animcreated." + y.id, E),
  11255. t.once("mina.finish." + E.id,
  11256. function() {
  11257. delete y.anims[E.id],
  11258. o && o.call(y)
  11259. }),
  11260. t.once("mina.stop." + E.id,
  11261. function() {
  11262. delete y.anims[E.id]
  11263. }),
  11264. y
  11265. };
  11266. var _ = {};
  11267. f.data = function(e, n) {
  11268. var i = _[this.id] = _[this.id] || {};
  11269. if (0 == arguments.length) return t("snap.data.get." + this.id, this, i, null),
  11270. i;
  11271. if (1 == arguments.length) {
  11272. if (r.is(e, "object")) {
  11273. for (var o in e) e[x](o) && this.data(o, e[o]);
  11274. return this
  11275. }
  11276. return t("snap.data.get." + this.id, this, i[e], e),
  11277. i[e]
  11278. }
  11279. return i[e] = n,
  11280. t("snap.data.set." + this.id, this, n, e),
  11281. this
  11282. },
  11283. f.removeData = function(e) {
  11284. return null == e ? _[this.id] = {}: _[this.id] && delete _[this.id][e],
  11285. this
  11286. },
  11287. f.outerSVG = f.toString = p(1),
  11288. f.innerSVG = p(),
  11289. f.toDataURL = function() {
  11290. if (e && e.btoa) {
  11291. var t = this.getBBox(),
  11292. n = r.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>', {
  11293. x: +t.x.toFixed(3),
  11294. y: +t.y.toFixed(3),
  11295. width: +t.width.toFixed(3),
  11296. height: +t.height.toFixed(3),
  11297. contents: this.outerSVG()
  11298. });
  11299. return "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(n)))
  11300. }
  11301. },
  11302. s.prototype.select = f.select,
  11303. s.prototype.selectAll = f.selectAll
  11304. }),
  11305. r.plugin(function(e, t, n, r, i) {
  11306. function o(e, t, n, r, i, o) {
  11307. return null == t && "[object SVGMatrix]" == a.call(e) ? (this.a = e.a, this.b = e.b, this.c = e.c, this.d = e.d, this.e = e.e, void(this.f = e.f)) : void(null != e ? (this.a = +e, this.b = +t, this.c = +n, this.d = +r, this.e = +i, this.f = +o) : (this.a = 1, this.b = 0, this.c = 0, this.d = 1, this.e = 0, this.f = 0))
  11308. }
  11309. var a = Object.prototype.toString,
  11310. s = String,
  11311. c = Math,
  11312. l = ""; !
  11313. function(t) {
  11314. function n(e) {
  11315. return e[0] * e[0] + e[1] * e[1]
  11316. }
  11317. function r(e) {
  11318. var t = c.sqrt(n(e));
  11319. e[0] && (e[0] /= t),
  11320. e[1] && (e[1] /= t)
  11321. }
  11322. t.add = function(e, t, n, r, i, a) {
  11323. var s, c, l, u, p = [[], [], []],
  11324. f = [[this.a, this.c, this.e], [this.b, this.d, this.f], [0, 0, 1]],
  11325. h = [[e, n, i], [t, r, a], [0, 0, 1]];
  11326. for (e && e instanceof o && (h = [[e.a, e.c, e.e], [e.b, e.d, e.f], [0, 0, 1]]), s = 0; s < 3; s++) for (c = 0; c < 3; c++) {
  11327. for (u = 0, l = 0; l < 3; l++) u += f[s][l] * h[l][c];
  11328. p[s][c] = u
  11329. }
  11330. return this.a = p[0][0],
  11331. this.b = p[1][0],
  11332. this.c = p[0][1],
  11333. this.d = p[1][1],
  11334. this.e = p[0][2],
  11335. this.f = p[1][2],
  11336. this
  11337. },
  11338. t.invert = function() {
  11339. var e = this,
  11340. t = e.a * e.d - e.b * e.c;
  11341. return new o(e.d / t, -e.b / t, -e.c / t, e.a / t, (e.c * e.f - e.d * e.e) / t, (e.b * e.e - e.a * e.f) / t)
  11342. },
  11343. t.clone = function() {
  11344. return new o(this.a, this.b, this.c, this.d, this.e, this.f)
  11345. },
  11346. t.translate = function(e, t) {
  11347. return this.add(1, 0, 0, 1, e, t)
  11348. },
  11349. t.scale = function(e, t, n, r) {
  11350. return null == t && (t = e),
  11351. (n || r) && this.add(1, 0, 0, 1, n, r),
  11352. this.add(e, 0, 0, t, 0, 0),
  11353. (n || r) && this.add(1, 0, 0, 1, -n, -r),
  11354. this
  11355. },
  11356. t.rotate = function(t, n, r) {
  11357. t = e.rad(t),
  11358. n = n || 0,
  11359. r = r || 0;
  11360. var i = +c.cos(t).toFixed(9),
  11361. o = +c.sin(t).toFixed(9);
  11362. return this.add(i, o, -o, i, n, r),
  11363. this.add(1, 0, 0, 1, -n, -r)
  11364. },
  11365. t.x = function(e, t) {
  11366. return e * this.a + t * this.c + this.e
  11367. },
  11368. t.y = function(e, t) {
  11369. return e * this.b + t * this.d + this.f
  11370. },
  11371. t.get = function(e) {
  11372. return + this[s.fromCharCode(97 + e)].toFixed(4)
  11373. },
  11374. t.toString = function() {
  11375. return "matrix(" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)].join() + ")"
  11376. },
  11377. t.offset = function() {
  11378. return [this.e.toFixed(4), this.f.toFixed(4)]
  11379. },
  11380. t.determinant = function() {
  11381. return this.a * this.d - this.b * this.c
  11382. },
  11383. t.split = function() {
  11384. var t = {};
  11385. t.dx = this.e,
  11386. t.dy = this.f;
  11387. var i = [[this.a, this.c], [this.b, this.d]];
  11388. t.scalex = c.sqrt(n(i[0])),
  11389. r(i[0]),
  11390. t.shear = i[0][0] * i[1][0] + i[0][1] * i[1][1],
  11391. i[1] = [i[1][0] - i[0][0] * t.shear, i[1][1] - i[0][1] * t.shear],
  11392. t.scaley = c.sqrt(n(i[1])),
  11393. r(i[1]),
  11394. t.shear /= t.scaley,
  11395. this.determinant() < 0 && (t.scalex = -t.scalex);
  11396. var o = -i[0][1],
  11397. a = i[1][1];
  11398. return a < 0 ? (t.rotate = e.deg(c.acos(a)), o < 0 && (t.rotate = 360 - t.rotate)) : t.rotate = e.deg(c.asin(o)),
  11399. t.isSimple = !( + t.shear.toFixed(9) || t.scalex.toFixed(9) != t.scaley.toFixed(9) && t.rotate),
  11400. t.isSuperSimple = !+t.shear.toFixed(9) && t.scalex.toFixed(9) == t.scaley.toFixed(9) && !t.rotate,
  11401. t.noRotation = !+t.shear.toFixed(9) && !t.rotate,
  11402. t
  11403. },
  11404. t.toTransformString = function(e) {
  11405. var t = e || this.split();
  11406. return + t.shear.toFixed(9) ? "m" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)] : (t.scalex = +t.scalex.toFixed(4), t.scaley = +t.scaley.toFixed(4), t.rotate = +t.rotate.toFixed(4), (t.dx || t.dy ? "t" + [ + t.dx.toFixed(4), +t.dy.toFixed(4)] : l) + (1 != t.scalex || 1 != t.scaley ? "s" + [t.scalex, t.scaley, 0, 0] : l) + (t.rotate ? "r" + [ + t.rotate.toFixed(4), 0, 0] : l))
  11407. }
  11408. } (o.prototype),
  11409. e.Matrix = o,
  11410. e.matrix = function(e, t, n, r, i, a) {
  11411. return new o(e, t, n, r, i, a)
  11412. }
  11413. }),
  11414. r.plugin(function(e, n, r, i, o) {
  11415. function a(r) {
  11416. return function(i) {
  11417. if (t.stop(), i instanceof o && 1 == i.node.childNodes.length && ("radialGradient" == i.node.firstChild.tagName || "linearGradient" == i.node.firstChild.tagName || "pattern" == i.node.firstChild.tagName) && (i = i.node.firstChild, h(this).appendChild(i), i = p(i)), i instanceof n) if ("radialGradient" == i.type || "linearGradient" == i.type || "pattern" == i.type) {
  11418. i.node.id || m(i.node, {
  11419. id: i.id
  11420. });
  11421. var a = y(i.node.id)
  11422. } else a = i.attr(r);
  11423. else if (a = e.color(i), a.error) {
  11424. var s = e(h(this).ownerSVGElement).gradient(i);
  11425. s ? (s.node.id || m(s.node, {
  11426. id: s.id
  11427. }), a = y(s.node.id)) : a = i
  11428. } else a = g(a);
  11429. var c = {};
  11430. c[r] = a,
  11431. m(this.node, c),
  11432. this.node.style[r] = x
  11433. }
  11434. }
  11435. function s(e) {
  11436. t.stop(),
  11437. e == +e && (e += "px"),
  11438. this.node.style.fontSize = e
  11439. }
  11440. function c(e) {
  11441. for (var t = [], n = e.childNodes, r = 0, i = n.length; r < i; r++) {
  11442. var o = n[r];
  11443. 3 == o.nodeType && t.push(o.nodeValue),
  11444. "tspan" == o.tagName && (1 == o.childNodes.length && 3 == o.firstChild.nodeType ? t.push(o.firstChild.nodeValue) : t.push(c(o)))
  11445. }
  11446. return t
  11447. }
  11448. function l() {
  11449. return t.stop(),
  11450. this.node.style.fontSize
  11451. }
  11452. var u = e._.make,
  11453. p = e._.wrap,
  11454. f = e.is,
  11455. h = e._.getSomeDefs,
  11456. d = /^url\(#?([^)]+)\)$/,
  11457. m = e._.$,
  11458. y = e.url,
  11459. g = String,
  11460. v = e._.separator,
  11461. x = "";
  11462. t.on("snap.util.attr.mask",
  11463. function(e) {
  11464. if (e instanceof n || e instanceof o) {
  11465. if (t.stop(), e instanceof o && 1 == e.node.childNodes.length && (e = e.node.firstChild, h(this).appendChild(e), e = p(e)), "mask" == e.type) var r = e;
  11466. else r = u("mask", h(this)),
  11467. r.node.appendChild(e.node); ! r.node.id && m(r.node, {
  11468. id: r.id
  11469. }),
  11470. m(this.node, {
  11471. mask: y(r.id)
  11472. })
  11473. }
  11474. }),
  11475. function(e) {
  11476. t.on("snap.util.attr.clip", e),
  11477. t.on("snap.util.attr.clip-path", e),
  11478. t.on("snap.util.attr.clipPath", e)
  11479. } (function(e) {
  11480. if (e instanceof n || e instanceof o) {
  11481. if (t.stop(), "clipPath" == e.type) var r = e;
  11482. else r = u("clipPath", h(this)),
  11483. r.node.appendChild(e.node),
  11484. !r.node.id && m(r.node, {
  11485. id: r.id
  11486. });
  11487. m(this.node, {
  11488. "clip-path": y(r.node.id || r.id)
  11489. })
  11490. }
  11491. }),
  11492. t.on("snap.util.attr.fill", a("fill")),
  11493. t.on("snap.util.attr.stroke", a("stroke"));
  11494. var b = /^([lr])(?:\(([^)]*)\))?(.*)$/i;
  11495. t.on("snap.util.grad.parse",
  11496. function(e) {
  11497. e = g(e);
  11498. var t = e.match(b);
  11499. if (!t) return null;
  11500. var n = t[1],
  11501. r = t[2],
  11502. i = t[3];
  11503. return r = r.split(/\s*,\s*/).map(function(e) {
  11504. return + e == e ? +e: e
  11505. }),
  11506. 1 == r.length && 0 == r[0] && (r = []),
  11507. i = i.split("-"),
  11508. i = i.map(function(e) {
  11509. e = e.split(":");
  11510. var t = {
  11511. color: e[0]
  11512. };
  11513. return e[1] && (t.offset = parseFloat(e[1])),
  11514. t
  11515. }),
  11516. {
  11517. type: n,
  11518. params: r,
  11519. stops: i
  11520. }
  11521. }),
  11522. t.on("snap.util.attr.d",
  11523. function(n) {
  11524. t.stop(),
  11525. f(n, "array") && f(n[0], "array") && (n = e.path.toString.call(n)),
  11526. n = g(n),
  11527. n.match(/[ruo]/i) && (n = e.path.toAbsolute(n)),
  11528. m(this.node, {
  11529. d: n
  11530. })
  11531. })( - 1),
  11532. t.on("snap.util.attr.#text",
  11533. function(e) {
  11534. t.stop(),
  11535. e = g(e);
  11536. for (var n = i.doc.createTextNode(e); this.node.firstChild;) this.node.removeChild(this.node.firstChild);
  11537. this.node.appendChild(n)
  11538. })( - 1),
  11539. t.on("snap.util.attr.path",
  11540. function(e) {
  11541. t.stop(),
  11542. this.attr({
  11543. d: e
  11544. })
  11545. })( - 1),
  11546. t.on("snap.util.attr.class",
  11547. function(e) {
  11548. t.stop(),
  11549. this.node.className.baseVal = e
  11550. })( - 1),
  11551. t.on("snap.util.attr.viewBox",
  11552. function(e) {
  11553. var n;
  11554. n = f(e, "object") && "x" in e ? [e.x, e.y, e.width, e.height].join(" ") : f(e, "array") ? e.join(" ") : e,
  11555. m(this.node, {
  11556. viewBox: n
  11557. }),
  11558. t.stop()
  11559. })( - 1),
  11560. t.on("snap.util.attr.transform",
  11561. function(e) {
  11562. this.transform(e),
  11563. t.stop()
  11564. })( - 1),
  11565. t.on("snap.util.attr.r",
  11566. function(e) {
  11567. "rect" == this.type && (t.stop(), m(this.node, {
  11568. rx: e,
  11569. ry: e
  11570. }))
  11571. })( - 1),
  11572. t.on("snap.util.attr.textpath",
  11573. function(e) {
  11574. if (t.stop(), "text" == this.type) {
  11575. var r, i, o;
  11576. if (!e && this.textPath) {
  11577. for (i = this.textPath; i.node.firstChild;) this.node.appendChild(i.node.firstChild);
  11578. return i.remove(),
  11579. void delete this.textPath
  11580. }
  11581. if (f(e, "string")) {
  11582. var a = h(this),
  11583. s = p(a.parentNode).path(e);
  11584. a.appendChild(s.node),
  11585. r = s.id,
  11586. s.attr({
  11587. id: r
  11588. })
  11589. } else e = p(e),
  11590. e instanceof n && (r = e.attr("id"), r || (r = e.id, e.attr({
  11591. id: r
  11592. })));
  11593. if (r) if (i = this.textPath, o = this.node, i) i.attr({
  11594. "xlink:href": "#" + r
  11595. });
  11596. else {
  11597. for (i = m("textPath", {
  11598. "xlink:href": "#" + r
  11599. }); o.firstChild;) i.appendChild(o.firstChild);
  11600. o.appendChild(i),
  11601. this.textPath = p(i)
  11602. }
  11603. }
  11604. })( - 1),
  11605. t.on("snap.util.attr.text",
  11606. function(e) {
  11607. if ("text" == this.type) {
  11608. for (var n = this.node,
  11609. r = function(e) {
  11610. var t = m("tspan");
  11611. if (f(e, "array")) for (var n = 0; n < e.length; n++) t.appendChild(r(e[n]));
  11612. else t.appendChild(i.doc.createTextNode(e));
  11613. return t.normalize && t.normalize(),
  11614. t
  11615. }; n.firstChild;) n.removeChild(n.firstChild);
  11616. for (var o = r(e); o.firstChild;) n.appendChild(o.firstChild)
  11617. }
  11618. t.stop()
  11619. })( - 1),
  11620. t.on("snap.util.attr.fontSize", s)( - 1),
  11621. t.on("snap.util.attr.font-size", s)( - 1),
  11622. t.on("snap.util.getattr.transform",
  11623. function() {
  11624. return t.stop(),
  11625. this.transform()
  11626. })( - 1),
  11627. t.on("snap.util.getattr.textpath",
  11628. function() {
  11629. return t.stop(),
  11630. this.textPath
  11631. })( - 1),
  11632. function() {
  11633. function n(n) {
  11634. return function() {
  11635. t.stop();
  11636. var r = i.doc.defaultView.getComputedStyle(this.node, null).getPropertyValue("marker-" + n);
  11637. return "none" == r ? r: e(i.doc.getElementById(r.match(d)[1]))
  11638. }
  11639. }
  11640. function r(e) {
  11641. return function(n) {
  11642. t.stop();
  11643. var r = "marker" + e.charAt(0).toUpperCase() + e.substring(1);
  11644. if ("" == n || !n) return void(this.node.style[r] = "none");
  11645. if ("marker" == n.type) {
  11646. var i = n.node.id;
  11647. return i || m(n.node, {
  11648. id: n.id
  11649. }),
  11650. void(this.node.style[r] = y(i))
  11651. }
  11652. }
  11653. }
  11654. t.on("snap.util.getattr.marker-end", n("end"))( - 1),
  11655. t.on("snap.util.getattr.markerEnd", n("end"))( - 1),
  11656. t.on("snap.util.getattr.marker-start", n("start"))( - 1),
  11657. t.on("snap.util.getattr.markerStart", n("start"))( - 1),
  11658. t.on("snap.util.getattr.marker-mid", n("mid"))( - 1),
  11659. t.on("snap.util.getattr.markerMid", n("mid"))( - 1),
  11660. t.on("snap.util.attr.marker-end", r("end"))( - 1),
  11661. t.on("snap.util.attr.markerEnd", r("end"))( - 1),
  11662. t.on("snap.util.attr.marker-start", r("start"))( - 1),
  11663. t.on("snap.util.attr.markerStart", r("start"))( - 1),
  11664. t.on("snap.util.attr.marker-mid", r("mid"))( - 1),
  11665. t.on("snap.util.attr.markerMid", r("mid"))( - 1)
  11666. } (),
  11667. t.on("snap.util.getattr.r",
  11668. function() {
  11669. if ("rect" == this.type && m(this.node, "rx") == m(this.node, "ry")) return t.stop(),
  11670. m(this.node, "rx")
  11671. })( - 1),
  11672. t.on("snap.util.getattr.text",
  11673. function() {
  11674. if ("text" == this.type || "tspan" == this.type) {
  11675. t.stop();
  11676. var e = c(this.node);
  11677. return 1 == e.length ? e[0] : e
  11678. }
  11679. })( - 1),
  11680. t.on("snap.util.getattr.#text",
  11681. function() {
  11682. return this.node.textContent
  11683. })( - 1),
  11684. t.on("snap.util.getattr.viewBox",
  11685. function() {
  11686. t.stop();
  11687. var n = m(this.node, "viewBox");
  11688. return n ? (n = n.split(v), e._.box( + n[0], +n[1], +n[2], +n[3])) : void 0
  11689. })( - 1),
  11690. t.on("snap.util.getattr.points",
  11691. function() {
  11692. var e = m(this.node, "points");
  11693. return t.stop(),
  11694. e ? e.split(v) : void 0
  11695. })( - 1),
  11696. t.on("snap.util.getattr.path",
  11697. function() {
  11698. var e = m(this.node, "d");
  11699. return t.stop(),
  11700. e
  11701. })( - 1),
  11702. t.on("snap.util.getattr.class",
  11703. function() {
  11704. return this.node.className.baseVal
  11705. })( - 1),
  11706. t.on("snap.util.getattr.fontSize", l)( - 1),
  11707. t.on("snap.util.getattr.font-size", l)( - 1)
  11708. }),
  11709. r.plugin(function(n, r, i, o, a) {
  11710. var s = i.prototype,
  11711. c = n.is;
  11712. s.rect = function(e, t, n, r, i, o) {
  11713. var a;
  11714. return null == o && (o = i),
  11715. c(e, "object") && "[object Object]" == e ? a = e: null != e && (a = {
  11716. x: e,
  11717. y: t,
  11718. width: n,
  11719. height: r
  11720. },
  11721. null != i && (a.rx = i, a.ry = o)),
  11722. this.el("rect", a)
  11723. },
  11724. s.circle = function(e, t, n) {
  11725. var r;
  11726. return c(e, "object") && "[object Object]" == e ? r = e: null != e && (r = {
  11727. cx: e,
  11728. cy: t,
  11729. r: n
  11730. }),
  11731. this.el("circle", r)
  11732. };
  11733. var l = function() {
  11734. function e() {
  11735. this.parentNode.removeChild(this)
  11736. }
  11737. return function(t, n) {
  11738. var r = o.doc.createElement("img"),
  11739. i = o.doc.body;
  11740. r.style.cssText = "position:absolute;left:-9999em;top:-9999em",
  11741. r.onload = function() {
  11742. n.call(r),
  11743. r.onload = r.onerror = null,
  11744. i.removeChild(r)
  11745. },
  11746. r.onerror = e,
  11747. i.appendChild(r),
  11748. r.src = t
  11749. }
  11750. } ();
  11751. s.image = function(e, t, r, i, o) {
  11752. var a = this.el("image");
  11753. if (c(e, "object") && "src" in e) a.attr(e);
  11754. else if (null != e) {
  11755. var s = {
  11756. "xlink:href": e,
  11757. preserveAspectRatio: "none"
  11758. };
  11759. null != t && null != r && (s.x = t, s.y = r),
  11760. null != i && null != o ? (s.width = i, s.height = o) : l(e,
  11761. function() {
  11762. n._.$(a.node, {
  11763. width: this.offsetWidth,
  11764. height: this.offsetHeight
  11765. })
  11766. }),
  11767. n._.$(a.node, s)
  11768. }
  11769. return a
  11770. },
  11771. s.ellipse = function(e, t, n, r) {
  11772. var i;
  11773. return c(e, "object") && "[object Object]" == e ? i = e: null != e && (i = {
  11774. cx: e,
  11775. cy: t,
  11776. rx: n,
  11777. ry: r
  11778. }),
  11779. this.el("ellipse", i)
  11780. },
  11781. s.path = function(e) {
  11782. var t;
  11783. return c(e, "object") && !c(e, "array") ? t = e: e && (t = {
  11784. d: e
  11785. }),
  11786. this.el("path", t)
  11787. },
  11788. s.group = s.g = function(e) {
  11789. var t = this.el("g");
  11790. return 1 == arguments.length && e && !e.type ? t.attr(e) : arguments.length && t.add(Array.prototype.slice.call(arguments, 0)),
  11791. t
  11792. },
  11793. s.svg = function(e, t, n, r, i, o, a, s) {
  11794. var l = {};
  11795. return c(e, "object") && null == t ? l = e: (null != e && (l.x = e), null != t && (l.y = t), null != n && (l.width = n), null != r && (l.height = r), null != i && null != o && null != a && null != s && (l.viewBox = [i, o, a, s])),
  11796. this.el("svg", l)
  11797. },
  11798. s.mask = function(e) {
  11799. var t = this.el("mask");
  11800. return 1 == arguments.length && e && !e.type ? t.attr(e) : arguments.length && t.add(Array.prototype.slice.call(arguments, 0)),
  11801. t
  11802. },
  11803. s.ptrn = function(e, t, n, r, i, o, a, s) {
  11804. if (c(e, "object")) var l = e;
  11805. else l = {
  11806. patternUnits: "userSpaceOnUse"
  11807. },
  11808. e && (l.x = e),
  11809. t && (l.y = t),
  11810. null != n && (l.width = n),
  11811. null != r && (l.height = r),
  11812. null != i && null != o && null != a && null != s && (l.viewBox = [i, o, a, s]);
  11813. return this.el("pattern", l)
  11814. },
  11815. s.use = function(e) {
  11816. return null != e ? (e instanceof r && (e.attr("id") || e.attr({
  11817. id: n._.id(e)
  11818. }), e = e.attr("id")), "#" == String(e).charAt() && (e = e.substring(1)), this.el("use", {
  11819. "xlink:href": "#" + e
  11820. })) : r.prototype.use.call(this)
  11821. },
  11822. s.symbol = function(e, t, n, r) {
  11823. var i = {};
  11824. return null != e && null != t && null != n && null != r && (i.viewBox = [e, t, n, r]),
  11825. this.el("symbol", i)
  11826. },
  11827. s.text = function(e, t, n) {
  11828. var r = {};
  11829. return c(e, "object") ? r = e: null != e && (r = {
  11830. x: e,
  11831. y: t,
  11832. text: n || ""
  11833. }),
  11834. this.el("text", r)
  11835. },
  11836. s.line = function(e, t, n, r) {
  11837. var i = {};
  11838. return c(e, "object") ? i = e: null != e && (i = {
  11839. x1: e,
  11840. x2: n,
  11841. y1: t,
  11842. y2: r
  11843. }),
  11844. this.el("line", i)
  11845. },
  11846. s.polyline = function(e) {
  11847. arguments.length > 1 && (e = Array.prototype.slice.call(arguments, 0));
  11848. var t = {};
  11849. return c(e, "object") && !c(e, "array") ? t = e: null != e && (t = {
  11850. points: e
  11851. }),
  11852. this.el("polyline", t)
  11853. },
  11854. s.polygon = function(e) {
  11855. arguments.length > 1 && (e = Array.prototype.slice.call(arguments, 0));
  11856. var t = {};
  11857. return c(e, "object") && !c(e, "array") ? t = e: null != e && (t = {
  11858. points: e
  11859. }),
  11860. this.el("polygon", t)
  11861. },
  11862. function() {
  11863. function r() {
  11864. return this.selectAll("stop")
  11865. }
  11866. function i(e, t) {
  11867. var r = u("stop"),
  11868. i = {
  11869. offset: +t + "%"
  11870. };
  11871. return e = n.color(e),
  11872. i["stop-color"] = e.hex,
  11873. e.opacity < 1 && (i["stop-opacity"] = e.opacity),
  11874. u(r, i),
  11875. this.node.appendChild(r),
  11876. this
  11877. }
  11878. function o() {
  11879. if ("linearGradient" == this.type) {
  11880. var e = u(this.node, "x1") || 0,
  11881. t = u(this.node, "x2") || 1,
  11882. r = u(this.node, "y1") || 0,
  11883. i = u(this.node, "y2") || 0;
  11884. return n._.box(e, r, math.abs(t - e), math.abs(i - r))
  11885. }
  11886. var o = this.node.cx || .5,
  11887. a = this.node.cy || .5,
  11888. s = this.node.r || 0;
  11889. return n._.box(o - s, a - s, 2 * s, 2 * s)
  11890. }
  11891. function a(e, n) {
  11892. function r(e, t) {
  11893. for (var n = (t - p) / (e - f), r = f; r < e; r++) a[r].offset = +( + p + n * (r - f)).toFixed(2);
  11894. f = e,
  11895. p = t
  11896. }
  11897. var i, o = t("snap.util.grad.parse", null, n).firstDefined();
  11898. if (!o) return null;
  11899. o.params.unshift(e),
  11900. i = "l" == o.type.toLowerCase() ? c.apply(0, o.params) : l.apply(0, o.params),
  11901. o.type != o.type.toLowerCase() && u(i.node, {
  11902. gradientUnits: "userSpaceOnUse"
  11903. });
  11904. var a = o.stops,
  11905. s = a.length,
  11906. p = 0,
  11907. f = 0;
  11908. s--;
  11909. for (var h = 0; h < s; h++)"offset" in a[h] && r(h, a[h].offset);
  11910. for (a[s].offset = a[s].offset || 100, r(s, a[s].offset), h = 0; h <= s; h++) {
  11911. var d = a[h];
  11912. i.addStop(d.color, d.offset)
  11913. }
  11914. return i
  11915. }
  11916. function c(e, t, a, s, c) {
  11917. var l = n._.make("linearGradient", e);
  11918. return l.stops = r,
  11919. l.addStop = i,
  11920. l.getBBox = o,
  11921. null != t && u(l.node, {
  11922. x1: t,
  11923. y1: a,
  11924. x2: s,
  11925. y2: c
  11926. }),
  11927. l
  11928. }
  11929. function l(e, t, a, s, c, l) {
  11930. var p = n._.make("radialGradient", e);
  11931. return p.stops = r,
  11932. p.addStop = i,
  11933. p.getBBox = o,
  11934. null != t && u(p.node, {
  11935. cx: t,
  11936. cy: a,
  11937. r: s
  11938. }),
  11939. null != c && null != l && u(p.node, {
  11940. fx: c,
  11941. fy: l
  11942. }),
  11943. p
  11944. }
  11945. var u = n._.$;
  11946. s.gradient = function(e) {
  11947. return a(this.defs, e)
  11948. },
  11949. s.gradientLinear = function(e, t, n, r) {
  11950. return c(this.defs, e, t, n, r)
  11951. },
  11952. s.gradientRadial = function(e, t, n, r, i) {
  11953. return l(this.defs, e, t, n, r, i)
  11954. },
  11955. s.toString = function() {
  11956. var e, t = this.node.ownerDocument,
  11957. r = t.createDocumentFragment(),
  11958. i = t.createElement("div"),
  11959. o = this.node.cloneNode(!0);
  11960. return r.appendChild(i),
  11961. i.appendChild(o),
  11962. n._.$(o, {
  11963. xmlns: "http://www.w3.org/2000/svg"
  11964. }),
  11965. e = i.innerHTML,
  11966. r.removeChild(r.firstChild),
  11967. e
  11968. },
  11969. s.toDataURL = function() {
  11970. if (e && e.btoa) return "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(this)))
  11971. },
  11972. s.clear = function() {
  11973. for (var e, t = this.node.firstChild; t;) e = t.nextSibling,
  11974. "defs" != t.tagName ? t.parentNode.removeChild(t) : s.clear.call({
  11975. node: t
  11976. }),
  11977. t = e
  11978. }
  11979. } ()
  11980. }),
  11981. r.plugin(function(e, t, n, r) {
  11982. function i(e) {
  11983. var t = i.ps = i.ps || {};
  11984. return t[e] ? t[e].sleep = 100 : t[e] = {
  11985. sleep: 100
  11986. },
  11987. setTimeout(function() {
  11988. for (var n in t) t[F](n) && n != e && (t[n].sleep--, !t[n].sleep && delete t[n])
  11989. }),
  11990. t[e]
  11991. }
  11992. function o(e, t, n, r) {
  11993. return null == e && (e = t = n = r = 0),
  11994. null == t && (t = e.y, n = e.width, r = e.height, e = e.x),
  11995. {
  11996. x: e,
  11997. y: t,
  11998. width: n,
  11999. w: n,
  12000. height: r,
  12001. h: r,
  12002. x2: e + n,
  12003. y2: t + r,
  12004. cx: e + n / 2,
  12005. cy: t + r / 2,
  12006. r1: G.min(n, r) / 2,
  12007. r2: G.max(n, r) / 2,
  12008. r0: G.sqrt(n * n + r * r) / 2,
  12009. path: _(e, t, n, r),
  12010. vb: [e, t, n, r].join(" ")
  12011. }
  12012. }
  12013. function a() {
  12014. return this.join(",").replace(j, "$1")
  12015. }
  12016. function s(e) {
  12017. var t = L(e);
  12018. return t.toString = a,
  12019. t
  12020. }
  12021. function c(e, t, n, r, i, o, a, s, c) {
  12022. return null == c ? m(e, t, n, r, i, o, a, s) : u(e, t, n, r, i, o, a, s, y(e, t, n, r, i, o, a, s, c))
  12023. }
  12024. function l(n, r) {
  12025. function i(e) {
  12026. return + ( + e).toFixed(3)
  12027. }
  12028. return e._.cacher(function(e, o, a) {
  12029. e instanceof t && (e = e.attr("d")),
  12030. e = D(e);
  12031. for (var s, l, p, f, h, d = "",
  12032. m = {},
  12033. y = 0,
  12034. g = 0,
  12035. v = e.length; g < v; g++) {
  12036. if (p = e[g], "M" == p[0]) s = +p[1],
  12037. l = +p[2];
  12038. else {
  12039. if (f = c(s, l, p[1], p[2], p[3], p[4], p[5], p[6]), y + f > o) {
  12040. if (r && !m.start) {
  12041. if (h = c(s, l, p[1], p[2], p[3], p[4], p[5], p[6], o - y), d += ["C" + i(h.start.x), i(h.start.y), i(h.m.x), i(h.m.y), i(h.x), i(h.y)], a) return d;
  12042. m.start = d,
  12043. d = ["M" + i(h.x), i(h.y) + "C" + i(h.n.x), i(h.n.y), i(h.end.x), i(h.end.y), i(p[5]), i(p[6])].join(),
  12044. y += f,
  12045. s = +p[5],
  12046. l = +p[6];
  12047. continue
  12048. }
  12049. if (!n && !r) return h = c(s, l, p[1], p[2], p[3], p[4], p[5], p[6], o - y)
  12050. }
  12051. y += f,
  12052. s = +p[5],
  12053. l = +p[6]
  12054. }
  12055. d += p.shift() + p
  12056. }
  12057. return m.end = d,
  12058. h = n ? y: r ? m: u(s, l, p[0], p[1], p[2], p[3], p[4], p[5], 1)
  12059. },
  12060. null, e._.clone)
  12061. }
  12062. function u(e, t, n, r, i, o, a, s, c) {
  12063. var l = 1 - c,
  12064. u = q(l, 3),
  12065. p = q(l, 2),
  12066. f = c * c,
  12067. h = f * c,
  12068. d = u * e + 3 * p * c * n + 3 * l * c * c * i + h * a,
  12069. m = u * t + 3 * p * c * r + 3 * l * c * c * o + h * s,
  12070. y = e + 2 * c * (n - e) + f * (i - 2 * n + e),
  12071. g = t + 2 * c * (r - t) + f * (o - 2 * r + t),
  12072. v = n + 2 * c * (i - n) + f * (a - 2 * i + n),
  12073. x = r + 2 * c * (o - r) + f * (s - 2 * o + r),
  12074. b = l * e + c * n,
  12075. E = l * t + c * r,
  12076. w = l * i + c * a,
  12077. A = l * o + c * s,
  12078. _ = 90 - 180 * G.atan2(y - v, g - x) / U;
  12079. return {
  12080. x: d,
  12081. y: m,
  12082. m: {
  12083. x: y,
  12084. y: g
  12085. },
  12086. n: {
  12087. x: v,
  12088. y: x
  12089. },
  12090. start: {
  12091. x: b,
  12092. y: E
  12093. },
  12094. end: {
  12095. x: w,
  12096. y: A
  12097. },
  12098. alpha: _
  12099. }
  12100. }
  12101. function p(t, n, r, i, a, s, c, l) {
  12102. e.is(t, "array") || (t = [t, n, r, i, a, s, c, l]);
  12103. var u = P.apply(null, t);
  12104. return o(u.min.x, u.min.y, u.max.x - u.min.x, u.max.y - u.min.y)
  12105. }
  12106. function f(e, t, n) {
  12107. return t >= e.x && t <= e.x + e.width && n >= e.y && n <= e.y + e.height
  12108. }
  12109. function h(e, t) {
  12110. return e = o(e),
  12111. t = o(t),
  12112. f(t, e.x, e.y) || f(t, e.x2, e.y) || f(t, e.x, e.y2) || f(t, e.x2, e.y2) || f(e, t.x, t.y) || f(e, t.x2, t.y) || f(e, t.x, t.y2) || f(e, t.x2, t.y2) || (e.x < t.x2 && e.x > t.x || t.x < e.x2 && t.x > e.x) && (e.y < t.y2 && e.y > t.y || t.y < e.y2 && t.y > e.y)
  12113. }
  12114. function d(e, t, n, r, i) {
  12115. var o = -3 * t + 9 * n - 9 * r + 3 * i,
  12116. a = e * o + 6 * t - 12 * n + 6 * r;
  12117. return e * a - 3 * t + 3 * n
  12118. }
  12119. function m(e, t, n, r, i, o, a, s, c) {
  12120. null == c && (c = 1),
  12121. c = c > 1 ? 1 : c < 0 ? 0 : c;
  12122. for (var l = c / 2,
  12123. u = 12,
  12124. p = [ - .1252, .1252, -.3678, .3678, -.5873, .5873, -.7699, .7699, -.9041, .9041, -.9816, .9816], f = [.2491, .2491, .2335, .2335, .2032, .2032, .1601, .1601, .1069, .1069, .0472, .0472], h = 0, m = 0; m < u; m++) {
  12125. var y = l * p[m] + l,
  12126. g = d(y, e, n, i, a),
  12127. v = d(y, t, r, o, s),
  12128. x = g * g + v * v;
  12129. h += f[m] * G.sqrt(x)
  12130. }
  12131. return l * h
  12132. }
  12133. function y(e, t, n, r, i, o, a, s, c) {
  12134. if (! (c < 0 || m(e, t, n, r, i, o, a, s) < c)) {
  12135. var l, u = 1,
  12136. p = u / 2,
  12137. f = u - p,
  12138. h = .01;
  12139. for (l = m(e, t, n, r, i, o, a, s, f); H(l - c) > h;) p /= 2,
  12140. f += (l < c ? 1 : -1) * p,
  12141. l = m(e, t, n, r, i, o, a, s, f);
  12142. return f
  12143. }
  12144. }
  12145. function g(e, t, n, r, i, o, a, s) {
  12146. if (! (z(e, n) < W(i, a) || W(e, n) > z(i, a) || z(t, r) < W(o, s) || W(t, r) > z(o, s))) {
  12147. var c = (e * r - t * n) * (i - a) - (e - n) * (i * s - o * a),
  12148. l = (e * r - t * n) * (o - s) - (t - r) * (i * s - o * a),
  12149. u = (e - n) * (o - s) - (t - r) * (i - a);
  12150. if (u) {
  12151. var p = c / u,
  12152. f = l / u,
  12153. h = +p.toFixed(2),
  12154. d = +f.toFixed(2);
  12155. if (! (h < +W(e, n).toFixed(2) || h > +z(e, n).toFixed(2) || h < +W(i, a).toFixed(2) || h > +z(i, a).toFixed(2) || d < +W(t, r).toFixed(2) || d > +z(t, r).toFixed(2) || d < +W(o, s).toFixed(2) || d > +z(o, s).toFixed(2))) return {
  12156. x: p,
  12157. y: f
  12158. }
  12159. }
  12160. }
  12161. }
  12162. function v(e, t, n) {
  12163. var r = p(e),
  12164. i = p(t);
  12165. if (!h(r, i)) return n ? 0 : [];
  12166. for (var o = m.apply(0, e), a = m.apply(0, t), s = ~~ (o / 8), c = ~~ (a / 8), l = [], f = [], d = {},
  12167. y = n ? 0 : [], v = 0; v < s + 1; v++) {
  12168. var x = u.apply(0, e.concat(v / s));
  12169. l.push({
  12170. x: x.x,
  12171. y: x.y,
  12172. t: v / s
  12173. })
  12174. }
  12175. for (v = 0; v < c + 1; v++) x = u.apply(0, t.concat(v / c)),
  12176. f.push({
  12177. x: x.x,
  12178. y: x.y,
  12179. t: v / c
  12180. });
  12181. for (v = 0; v < s; v++) for (var b = 0; b < c; b++) {
  12182. var E = l[v],
  12183. w = l[v + 1],
  12184. A = f[b],
  12185. _ = f[b + 1],
  12186. S = H(w.x - E.x) < .001 ? "y": "x",
  12187. T = H(_.x - A.x) < .001 ? "y": "x",
  12188. C = g(E.x, E.y, w.x, w.y, A.x, A.y, _.x, _.y);
  12189. if (C) {
  12190. if (d[C.x.toFixed(4)] == C.y.toFixed(4)) continue;
  12191. d[C.x.toFixed(4)] = C.y.toFixed(4);
  12192. var R = E.t + H((C[S] - E[S]) / (w[S] - E[S])) * (w.t - E.t),
  12193. N = A.t + H((C[T] - A[T]) / (_[T] - A[T])) * (_.t - A.t);
  12194. R >= 0 && R <= 1 && N >= 0 && N <= 1 && (n ? y++:y.push({
  12195. x: C.x,
  12196. y: C.y,
  12197. t1: R,
  12198. t2: N
  12199. }))
  12200. }
  12201. }
  12202. return y
  12203. }
  12204. function x(e, t) {
  12205. return E(e, t)
  12206. }
  12207. function b(e, t) {
  12208. return E(e, t, 1)
  12209. }
  12210. function E(e, t, n) {
  12211. e = D(e),
  12212. t = D(t);
  12213. for (var r, i, o, a, s, c, l, u, p, f, h = n ? 0 : [], d = 0, m = e.length; d < m; d++) {
  12214. var y = e[d];
  12215. if ("M" == y[0]) r = s = y[1],
  12216. i = c = y[2];
  12217. else {
  12218. "C" == y[0] ? (p = [r, i].concat(y.slice(1)), r = p[6], i = p[7]) : (p = [r, i, r, i, s, c, s, c], r = s, i = c);
  12219. for (var g = 0,
  12220. x = t.length; g < x; g++) {
  12221. var b = t[g];
  12222. if ("M" == b[0]) o = l = b[1],
  12223. a = u = b[2];
  12224. else {
  12225. "C" == b[0] ? (f = [o, a].concat(b.slice(1)), o = f[6], a = f[7]) : (f = [o, a, o, a, l, u, l, u], o = l, a = u);
  12226. var E = v(p, f, n);
  12227. if (n) h += E;
  12228. else {
  12229. for (var w = 0,
  12230. A = E.length; w < A; w++) E[w].segment1 = d,
  12231. E[w].segment2 = g,
  12232. E[w].bez1 = p,
  12233. E[w].bez2 = f;
  12234. h = h.concat(E)
  12235. }
  12236. }
  12237. }
  12238. }
  12239. }
  12240. return h
  12241. }
  12242. function w(e, t, n) {
  12243. var r = A(e);
  12244. return f(r, t, n) && E(e, [["M", t, n], ["H", r.x2 + 10]], 1) % 2 == 1
  12245. }
  12246. function A(e) {
  12247. var t = i(e);
  12248. if (t.bbox) return L(t.bbox);
  12249. if (!e) return o();
  12250. e = D(e);
  12251. for (var n, r = 0,
  12252. a = 0,
  12253. s = [], c = [], l = 0, u = e.length; l < u; l++) if (n = e[l], "M" == n[0]) r = n[1],
  12254. a = n[2],
  12255. s.push(r),
  12256. c.push(a);
  12257. else {
  12258. var p = P(r, a, n[1], n[2], n[3], n[4], n[5], n[6]);
  12259. s = s.concat(p.min.x, p.max.x),
  12260. c = c.concat(p.min.y, p.max.y),
  12261. r = n[5],
  12262. a = n[6]
  12263. }
  12264. var f = W.apply(0, s),
  12265. h = W.apply(0, c),
  12266. d = z.apply(0, s),
  12267. m = z.apply(0, c),
  12268. y = o(f, h, d - f, m - h);
  12269. return t.bbox = L(y),
  12270. y
  12271. }
  12272. function _(e, t, n, r, i) {
  12273. if (i) return [["M", +e + +i, t], ["l", n - 2 * i, 0], ["a", i, i, 0, 0, 1, i, i], ["l", 0, r - 2 * i], ["a", i, i, 0, 0, 1, -i, i], ["l", 2 * i - n, 0], ["a", i, i, 0, 0, 1, -i, -i], ["l", 0, 2 * i - r], ["a", i, i, 0, 0, 1, i, -i], ["z"]];
  12274. var o = [["M", e, t], ["l", n, 0], ["l", 0, r], ["l", -n, 0], ["z"]];
  12275. return o.toString = a,
  12276. o
  12277. }
  12278. function S(e, t, n, r, i) {
  12279. if (null == i && null == r && (r = n), e = +e, t = +t, n = +n, r = +r, null != i) var o = Math.PI / 180,
  12280. s = e + n * Math.cos( - r * o),
  12281. c = e + n * Math.cos( - i * o),
  12282. l = t + n * Math.sin( - r * o),
  12283. u = t + n * Math.sin( - i * o),
  12284. p = [["M", s, l], ["A", n, n, 0, +(i - r > 180), 0, c, u]];
  12285. else p = [["M", e, t], ["m", 0, -r], ["a", n, r, 0, 1, 1, 0, 2 * r], ["a", n, r, 0, 1, 1, 0, -2 * r], ["z"]];
  12286. return p.toString = a,
  12287. p
  12288. }
  12289. function T(t) {
  12290. var n = i(t),
  12291. r = String.prototype.toLowerCase;
  12292. if (n.rel) return s(n.rel);
  12293. e.is(t, "array") && e.is(t && t[0], "array") || (t = e.parsePathString(t));
  12294. var o = [],
  12295. c = 0,
  12296. l = 0,
  12297. u = 0,
  12298. p = 0,
  12299. f = 0;
  12300. "M" == t[0][0] && (c = t[0][1], l = t[0][2], u = c, p = l, f++, o.push(["M", c, l]));
  12301. for (var h = f,
  12302. d = t.length; h < d; h++) {
  12303. var m = o[h] = [],
  12304. y = t[h];
  12305. if (y[0] != r.call(y[0])) switch (m[0] = r.call(y[0]), m[0]) {
  12306. case "a":
  12307. m[1] = y[1],
  12308. m[2] = y[2],
  12309. m[3] = y[3],
  12310. m[4] = y[4],
  12311. m[5] = y[5],
  12312. m[6] = +(y[6] - c).toFixed(3),
  12313. m[7] = +(y[7] - l).toFixed(3);
  12314. break;
  12315. case "v":
  12316. m[1] = +(y[1] - l).toFixed(3);
  12317. break;
  12318. case "m":
  12319. u = y[1],
  12320. p = y[2];
  12321. default:
  12322. for (var g = 1,
  12323. v = y.length; g < v; g++) m[g] = +(y[g] - (g % 2 ? c: l)).toFixed(3)
  12324. } else {
  12325. m = o[h] = [],
  12326. "m" == y[0] && (u = y[1] + c, p = y[2] + l);
  12327. for (var x = 0,
  12328. b = y.length; x < b; x++) o[h][x] = y[x]
  12329. }
  12330. var E = o[h].length;
  12331. switch (o[h][0]) {
  12332. case "z":
  12333. c = u,
  12334. l = p;
  12335. break;
  12336. case "h":
  12337. c += +o[h][E - 1];
  12338. break;
  12339. case "v":
  12340. l += +o[h][E - 1];
  12341. break;
  12342. default:
  12343. c += +o[h][E - 2],
  12344. l += +o[h][E - 1]
  12345. }
  12346. }
  12347. return o.toString = a,
  12348. n.rel = s(o),
  12349. o
  12350. }
  12351. function C(t) {
  12352. var n = i(t);
  12353. if (n.abs) return s(n.abs);
  12354. if (I(t, "array") && I(t && t[0], "array") || (t = e.parsePathString(t)), !t || !t.length) return [["M", 0, 0]];
  12355. var r, o = [],
  12356. c = 0,
  12357. l = 0,
  12358. u = 0,
  12359. p = 0,
  12360. f = 0;
  12361. "M" == t[0][0] && (c = +t[0][1], l = +t[0][2], u = c, p = l, f++, o[0] = ["M", c, l]);
  12362. for (var h, d, m = 3 == t.length && "M" == t[0][0] && "R" == t[1][0].toUpperCase() && "Z" == t[2][0].toUpperCase(), y = f, g = t.length; y < g; y++) {
  12363. if (o.push(h = []), d = t[y], r = d[0], r != r.toUpperCase()) switch (h[0] = r.toUpperCase(), h[0]) {
  12364. case "A":
  12365. h[1] = d[1],
  12366. h[2] = d[2],
  12367. h[3] = d[3],
  12368. h[4] = d[4],
  12369. h[5] = d[5],
  12370. h[6] = +d[6] + c,
  12371. h[7] = +d[7] + l;
  12372. break;
  12373. case "V":
  12374. h[1] = +d[1] + l;
  12375. break;
  12376. case "H":
  12377. h[1] = +d[1] + c;
  12378. break;
  12379. case "R":
  12380. for (var v = [c, l].concat(d.slice(1)), x = 2, b = v.length; x < b; x++) v[x] = +v[x] + c,
  12381. v[++x] = +v[x] + l;
  12382. o.pop(),
  12383. o = o.concat(O(v, m));
  12384. break;
  12385. case "O":
  12386. o.pop(),
  12387. v = S(c, l, d[1], d[2]),
  12388. v.push(v[0]),
  12389. o = o.concat(v);
  12390. break;
  12391. case "U":
  12392. o.pop(),
  12393. o = o.concat(S(c, l, d[1], d[2], d[3])),
  12394. h = ["U"].concat(o[o.length - 1].slice( - 2));
  12395. break;
  12396. case "M":
  12397. u = +d[1] + c,
  12398. p = +d[2] + l;
  12399. default:
  12400. for (x = 1, b = d.length; x < b; x++) h[x] = +d[x] + (x % 2 ? c: l)
  12401. } else if ("R" == r) v = [c, l].concat(d.slice(1)),
  12402. o.pop(),
  12403. o = o.concat(O(v, m)),
  12404. h = ["R"].concat(d.slice( - 2));
  12405. else if ("O" == r) o.pop(),
  12406. v = S(c, l, d[1], d[2]),
  12407. v.push(v[0]),
  12408. o = o.concat(v);
  12409. else if ("U" == r) o.pop(),
  12410. o = o.concat(S(c, l, d[1], d[2], d[3])),
  12411. h = ["U"].concat(o[o.length - 1].slice( - 2));
  12412. else for (var E = 0,
  12413. w = d.length; E < w; E++) h[E] = d[E];
  12414. if (r = r.toUpperCase(), "O" != r) switch (h[0]) {
  12415. case "Z":
  12416. c = +u,
  12417. l = +p;
  12418. break;
  12419. case "H":
  12420. c = h[1];
  12421. break;
  12422. case "V":
  12423. l = h[1];
  12424. break;
  12425. case "M":
  12426. u = h[h.length - 2],
  12427. p = h[h.length - 1];
  12428. default:
  12429. c = h[h.length - 2],
  12430. l = h[h.length - 1]
  12431. }
  12432. }
  12433. return o.toString = a,
  12434. n.abs = s(o),
  12435. o
  12436. }
  12437. function R(e, t, n, r) {
  12438. return [e, t, n, r, n, r]
  12439. }
  12440. function N(e, t, n, r, i, o) {
  12441. var a = 1 / 3,
  12442. s = 2 / 3;
  12443. return [a * e + s * n, a * t + s * r, a * i + s * n, a * o + s * r, i, o]
  12444. }
  12445. function M(t, n, r, i, o, a, s, c, l, u) {
  12446. var p, f = 120 * U / 180,
  12447. h = U / 180 * ( + o || 0),
  12448. d = [],
  12449. m = e._.cacher(function(e, t, n) {
  12450. var r = e * G.cos(n) - t * G.sin(n),
  12451. i = e * G.sin(n) + t * G.cos(n);
  12452. return {
  12453. x: r,
  12454. y: i
  12455. }
  12456. });
  12457. if (u) _ = u[0],
  12458. S = u[1],
  12459. w = u[2],
  12460. A = u[3];
  12461. else {
  12462. p = m(t, n, -h),
  12463. t = p.x,
  12464. n = p.y,
  12465. p = m(c, l, -h),
  12466. c = p.x,
  12467. l = p.y;
  12468. var y = (G.cos(U / 180 * o), G.sin(U / 180 * o), (t - c) / 2),
  12469. g = (n - l) / 2,
  12470. v = y * y / (r * r) + g * g / (i * i);
  12471. v > 1 && (v = G.sqrt(v), r = v * r, i = v * i);
  12472. var x = r * r,
  12473. b = i * i,
  12474. E = (a == s ? -1 : 1) * G.sqrt(H((x * b - x * g * g - b * y * y) / (x * g * g + b * y * y))),
  12475. w = E * r * g / i + (t + c) / 2,
  12476. A = E * -i * y / r + (n + l) / 2,
  12477. _ = G.asin(((n - A) / i).toFixed(9)),
  12478. S = G.asin(((l - A) / i).toFixed(9));
  12479. _ = t < w ? U - _: _,
  12480. S = c < w ? U - S: S,
  12481. _ < 0 && (_ = 2 * U + _),
  12482. S < 0 && (S = 2 * U + S),
  12483. s && _ > S && (_ -= 2 * U),
  12484. !s && S > _ && (S -= 2 * U)
  12485. }
  12486. var T = S - _;
  12487. if (H(T) > f) {
  12488. var C = S,
  12489. R = c,
  12490. N = l;
  12491. S = _ + f * (s && S > _ ? 1 : -1),
  12492. c = w + r * G.cos(S),
  12493. l = A + i * G.sin(S),
  12494. d = M(c, l, r, i, o, 0, s, R, N, [S, C, w, A])
  12495. }
  12496. T = S - _;
  12497. var P = G.cos(_),
  12498. D = G.sin(_),
  12499. k = G.cos(S),
  12500. O = G.sin(S),
  12501. B = G.tan(T / 4),
  12502. I = 4 / 3 * r * B,
  12503. L = 4 / 3 * i * B,
  12504. F = [t, n],
  12505. j = [t + I * D, n - L * P],
  12506. V = [c + I * O, l - L * k],
  12507. W = [c, l];
  12508. if (j[0] = 2 * F[0] - j[0], j[1] = 2 * F[1] - j[1], u) return [j, V, W].concat(d);
  12509. d = [j, V, W].concat(d).join().split(",");
  12510. for (var z = [], q = 0, Y = d.length; q < Y; q++) z[q] = q % 2 ? m(d[q - 1], d[q], h).y: m(d[q], d[q + 1], h).x;
  12511. return z
  12512. }
  12513. function P(e, t, n, r, i, o, a, s) {
  12514. for (var c, l, u, p, f, h, d, m, y = [], g = [[], []], v = 0; v < 2; ++v) if (0 == v ? (l = 6 * e - 12 * n + 6 * i, c = -3 * e + 9 * n - 9 * i + 3 * a, u = 3 * n - 3 * e) : (l = 6 * t - 12 * r + 6 * o, c = -3 * t + 9 * r - 9 * o + 3 * s, u = 3 * r - 3 * t), H(c) < 1e-12) {
  12515. if (H(l) < 1e-12) continue;
  12516. p = -u / l,
  12517. 0 < p && p < 1 && y.push(p)
  12518. } else d = l * l - 4 * u * c,
  12519. m = G.sqrt(d),
  12520. d < 0 || (f = ( - l + m) / (2 * c), 0 < f && f < 1 && y.push(f), h = ( - l - m) / (2 * c), 0 < h && h < 1 && y.push(h));
  12521. for (var x, b = y.length,
  12522. E = b; b--;) p = y[b],
  12523. x = 1 - p,
  12524. g[0][b] = x * x * x * e + 3 * x * x * p * n + 3 * x * p * p * i + p * p * p * a,
  12525. g[1][b] = x * x * x * t + 3 * x * x * p * r + 3 * x * p * p * o + p * p * p * s;
  12526. return g[0][E] = e,
  12527. g[1][E] = t,
  12528. g[0][E + 1] = a,
  12529. g[1][E + 1] = s,
  12530. g[0].length = g[1].length = E + 2,
  12531. {
  12532. min: {
  12533. x: W.apply(0, g[0]),
  12534. y: W.apply(0, g[1])
  12535. },
  12536. max: {
  12537. x: z.apply(0, g[0]),
  12538. y: z.apply(0, g[1])
  12539. }
  12540. }
  12541. }
  12542. function D(e, t) {
  12543. var n = !t && i(e);
  12544. if (!t && n.curve) return s(n.curve);
  12545. for (var r = C(e), o = t && C(t), a = {
  12546. x: 0,
  12547. y: 0,
  12548. bx: 0,
  12549. by: 0,
  12550. X: 0,
  12551. Y: 0,
  12552. qx: null,
  12553. qy: null
  12554. },
  12555. c = {
  12556. x: 0,
  12557. y: 0,
  12558. bx: 0,
  12559. by: 0,
  12560. X: 0,
  12561. Y: 0,
  12562. qx: null,
  12563. qy: null
  12564. },
  12565. l = (function(e, t, n) {
  12566. var r, i;
  12567. if (!e) return ["C", t.x, t.y, t.x, t.y, t.x, t.y];
  12568. switch (! (e[0] in {
  12569. T: 1,
  12570. Q: 1
  12571. }) && (t.qx = t.qy = null), e[0]) {
  12572. case "M":
  12573. t.X = e[1],
  12574. t.Y = e[2];
  12575. break;
  12576. case "A":
  12577. e = ["C"].concat(M.apply(0, [t.x, t.y].concat(e.slice(1))));
  12578. break;
  12579. case "S":
  12580. "C" == n || "S" == n ? (r = 2 * t.x - t.bx, i = 2 * t.y - t.by) : (r = t.x, i = t.y),
  12581. e = ["C", r, i].concat(e.slice(1));
  12582. break;
  12583. case "T":
  12584. "Q" == n || "T" == n ? (t.qx = 2 * t.x - t.qx, t.qy = 2 * t.y - t.qy) : (t.qx = t.x, t.qy = t.y),
  12585. e = ["C"].concat(N(t.x, t.y, t.qx, t.qy, e[1], e[2]));
  12586. break;
  12587. case "Q":
  12588. t.qx = e[1],
  12589. t.qy = e[2],
  12590. e = ["C"].concat(N(t.x, t.y, e[1], e[2], e[3], e[4]));
  12591. break;
  12592. case "L":
  12593. e = ["C"].concat(R(t.x, t.y, e[1], e[2]));
  12594. break;
  12595. case "H":
  12596. e = ["C"].concat(R(t.x, t.y, e[1], t.y));
  12597. break;
  12598. case "V":
  12599. e = ["C"].concat(R(t.x, t.y, t.x, e[1]));
  12600. break;
  12601. case "Z":
  12602. e = ["C"].concat(R(t.x, t.y, t.X, t.Y))
  12603. }
  12604. return e
  12605. }), u = function(e, t) {
  12606. if (e[t].length > 7) {
  12607. e[t].shift();
  12608. for (var n = e[t]; n.length;) f[t] = "A",
  12609. o && (h[t] = "A"),
  12610. e.splice(t++, 0, ["C"].concat(n.splice(0, 6)));
  12611. e.splice(t, 1),
  12612. g = z(r.length, o && o.length || 0)
  12613. }
  12614. },
  12615. p = function(e, t, n, i, a) {
  12616. e && t && "M" == e[a][0] && "M" != t[a][0] && (t.splice(a, 0, ["M", i.x, i.y]), n.bx = 0, n.by = 0, n.x = e[a][1], n.y = e[a][2], g = z(r.length, o && o.length || 0))
  12617. },
  12618. f = [], h = [], d = "", m = "", y = 0, g = z(r.length, o && o.length || 0); y < g; y++) {
  12619. r[y] && (d = r[y][0]),
  12620. "C" != d && (f[y] = d, y && (m = f[y - 1])),
  12621. r[y] = l(r[y], a, m),
  12622. "A" != f[y] && "C" == d && (f[y] = "C"),
  12623. u(r, y),
  12624. o && (o[y] && (d = o[y][0]), "C" != d && (h[y] = d, y && (m = h[y - 1])), o[y] = l(o[y], c, m), "A" != h[y] && "C" == d && (h[y] = "C"), u(o, y)),
  12625. p(r, o, a, c, y),
  12626. p(o, r, c, a, y);
  12627. var v = r[y],
  12628. x = o && o[y],
  12629. b = v.length,
  12630. E = o && x.length;
  12631. a.x = v[b - 2],
  12632. a.y = v[b - 1],
  12633. a.bx = V(v[b - 4]) || a.x,
  12634. a.by = V(v[b - 3]) || a.y,
  12635. c.bx = o && (V(x[E - 4]) || c.x),
  12636. c.by = o && (V(x[E - 3]) || c.y),
  12637. c.x = o && x[E - 2],
  12638. c.y = o && x[E - 1]
  12639. }
  12640. return o || (n.curve = s(r)),
  12641. o ? [r, o] : r
  12642. }
  12643. function k(e, t) {
  12644. if (!t) return e;
  12645. var n, r, i, o, a, s, c;
  12646. for (e = D(e), i = 0, a = e.length; i < a; i++) for (c = e[i], o = 1, s = c.length; o < s; o += 2) n = t.x(c[o], c[o + 1]),
  12647. r = t.y(c[o], c[o + 1]),
  12648. c[o] = n,
  12649. c[o + 1] = r;
  12650. return e
  12651. }
  12652. function O(e, t) {
  12653. for (var n = [], r = 0, i = e.length; i - 2 * !t > r; r += 2) {
  12654. var o = [{
  12655. x: +e[r - 2],
  12656. y: +e[r - 1]
  12657. },
  12658. {
  12659. x: +e[r],
  12660. y: +e[r + 1]
  12661. },
  12662. {
  12663. x: +e[r + 2],
  12664. y: +e[r + 3]
  12665. },
  12666. {
  12667. x: +e[r + 4],
  12668. y: +e[r + 5]
  12669. }];
  12670. t ? r ? i - 4 == r ? o[3] = {
  12671. x: +e[0],
  12672. y: +e[1]
  12673. }: i - 2 == r && (o[2] = {
  12674. x: +e[0],
  12675. y: +e[1]
  12676. },
  12677. o[3] = {
  12678. x: +e[2],
  12679. y: +e[3]
  12680. }) : o[0] = {
  12681. x: +e[i - 2],
  12682. y: +e[i - 1]
  12683. }: i - 4 == r ? o[3] = o[2] : r || (o[0] = {
  12684. x: +e[r],
  12685. y: +e[r + 1]
  12686. }),
  12687. n.push(["C", ( - o[0].x + 6 * o[1].x + o[2].x) / 6, ( - o[0].y + 6 * o[1].y + o[2].y) / 6, (o[1].x + 6 * o[2].x - o[3].x) / 6, (o[1].y + 6 * o[2].y - o[3].y) / 6, o[2].x, o[2].y])
  12688. }
  12689. return n
  12690. }
  12691. var B = t.prototype,
  12692. I = e.is,
  12693. L = e._.clone,
  12694. F = "hasOwnProperty",
  12695. j = /,?([a-z]),?/gi,
  12696. V = parseFloat,
  12697. G = Math,
  12698. U = G.PI,
  12699. W = G.min,
  12700. z = G.max,
  12701. q = G.pow,
  12702. H = G.abs,
  12703. Y = l(1),
  12704. $ = l(),
  12705. K = l(0, 1),
  12706. X = e._unit2px,
  12707. Q = {
  12708. path: function(e) {
  12709. return e.attr("path")
  12710. },
  12711. circle: function(e) {
  12712. var t = X(e);
  12713. return S(t.cx, t.cy, t.r)
  12714. },
  12715. ellipse: function(e) {
  12716. var t = X(e);
  12717. return S(t.cx || 0, t.cy || 0, t.rx, t.ry)
  12718. },
  12719. rect: function(e) {
  12720. var t = X(e);
  12721. return _(t.x || 0, t.y || 0, t.width, t.height, t.rx, t.ry)
  12722. },
  12723. image: function(e) {
  12724. var t = X(e);
  12725. return _(t.x || 0, t.y || 0, t.width, t.height)
  12726. },
  12727. line: function(e) {
  12728. return "M" + [e.attr("x1") || 0, e.attr("y1") || 0, e.attr("x2"), e.attr("y2")]
  12729. },
  12730. polyline: function(e) {
  12731. return "M" + e.attr("points")
  12732. },
  12733. polygon: function(e) {
  12734. return "M" + e.attr("points") + "z"
  12735. },
  12736. deflt: function(e) {
  12737. var t = e.node.getBBox();
  12738. return _(t.x, t.y, t.width, t.height)
  12739. }
  12740. };
  12741. e.path = i,
  12742. e.path.getTotalLength = Y,
  12743. e.path.getPointAtLength = $,
  12744. e.path.getSubpath = function(e, t, n) {
  12745. if (this.getTotalLength(e) - n < 1e-6) return K(e, t).end;
  12746. var r = K(e, n, 1);
  12747. return t ? K(r, t).end: r
  12748. },
  12749. B.getTotalLength = function() {
  12750. if (this.node.getTotalLength) return this.node.getTotalLength()
  12751. },
  12752. B.getPointAtLength = function(e) {
  12753. return $(this.attr("d"), e)
  12754. },
  12755. B.getSubpath = function(t, n) {
  12756. return e.path.getSubpath(this.attr("d"), t, n)
  12757. },
  12758. e._.box = o,
  12759. e.path.findDotsAtSegment = u,
  12760. e.path.bezierBBox = p,
  12761. e.path.isPointInsideBBox = f,
  12762. e.path.isBBoxIntersect = h,
  12763. e.path.intersection = x,
  12764. e.path.intersectionNumber = b,
  12765. e.path.isPointInside = w,
  12766. e.path.getBBox = A,
  12767. e.path.get = Q,
  12768. e.path.toRelative = T,
  12769. e.path.toAbsolute = C,
  12770. e.path.toCubic = D,
  12771. e.path.map = k,
  12772. e.path.toString = a,
  12773. e.path.clone = s
  12774. }),
  12775. r.plugin(function(e, n, r, i) {
  12776. for (var o = n.prototype,
  12777. a = "hasOwnProperty",
  12778. s = ("createTouch" in i.doc), c = ["click", "dblclick", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "touchstart", "touchmove", "touchend", "touchcancel"], l = {
  12779. mousedown: "touchstart",
  12780. mousemove: "touchmove",
  12781. mouseup: "touchend"
  12782. },
  12783. u = (function(e, t) {
  12784. var n = "y" == e ? "scrollTop": "scrollLeft",
  12785. r = t && t.node ? t.node.ownerDocument: i.doc;
  12786. return r[n in r.documentElement ? "documentElement": "body"][n]
  12787. }), p = function() {
  12788. this.returnValue = !1
  12789. },
  12790. f = function() {
  12791. return this.originalEvent.preventDefault()
  12792. },
  12793. h = function() {
  12794. this.cancelBubble = !0
  12795. },
  12796. d = function() {
  12797. return this.originalEvent.stopPropagation()
  12798. },
  12799. m = function() {
  12800. return i.doc.addEventListener ?
  12801. function(e, t, n, r) {
  12802. var i = s && l[t] ? l[t] : t,
  12803. o = function(i) {
  12804. var o = u("y", r),
  12805. c = u("x", r);
  12806. if (s && l[a](t)) for (var p = 0,
  12807. h = i.targetTouches && i.targetTouches.length; p < h; p++) if (i.targetTouches[p].target == e || e.contains(i.targetTouches[p].target)) {
  12808. var m = i;
  12809. i = i.targetTouches[p],
  12810. i.originalEvent = m,
  12811. i.preventDefault = f,
  12812. i.stopPropagation = d;
  12813. break
  12814. }
  12815. var y = i.clientX + c,
  12816. g = i.clientY + o;
  12817. return n.call(r, i, y, g)
  12818. };
  12819. return t !== i && e.addEventListener(t, o, !1),
  12820. e.addEventListener(i, o, !1),
  12821. function() {
  12822. return t !== i && e.removeEventListener(t, o, !1),
  12823. e.removeEventListener(i, o, !1),
  12824. !0
  12825. }
  12826. }: i.doc.attachEvent ?
  12827. function(e, t, n, r) {
  12828. var i = function(e) {
  12829. e = e || r.node.ownerDocument.window.event;
  12830. var t = u("y", r),
  12831. i = u("x", r),
  12832. o = e.clientX + i,
  12833. a = e.clientY + t;
  12834. return e.preventDefault = e.preventDefault || p,
  12835. e.stopPropagation = e.stopPropagation || h,
  12836. n.call(r, e, o, a)
  12837. };
  12838. e.attachEvent("on" + t, i);
  12839. var o = function() {
  12840. return e.detachEvent("on" + t, i),
  12841. !0
  12842. };
  12843. return o
  12844. }: void 0
  12845. } (), y = [], g = function(e) {
  12846. for (var n, r = e.clientX,
  12847. i = e.clientY,
  12848. o = u("y"), a = u("x"), c = y.length; c--;) {
  12849. if (n = y[c], s) {
  12850. for (var l, p = e.touches && e.touches.length; p--;) if (l = e.touches[p], l.identifier == n.el._drag.id || n.el.node.contains(l.target)) {
  12851. r = l.clientX,
  12852. i = l.clientY,
  12853. (e.originalEvent ? e.originalEvent: e).preventDefault();
  12854. break
  12855. }
  12856. } else e.preventDefault();
  12857. var f = n.el.node;
  12858. f.nextSibling,
  12859. f.parentNode,
  12860. f.style.display;
  12861. r += a,
  12862. i += o,
  12863. t("snap.drag.move." + n.el.id, n.move_scope || n.el, r - n.el._drag.x, i - n.el._drag.y, r, i, e)
  12864. }
  12865. },
  12866. v = function(n) {
  12867. e.unmousemove(g).unmouseup(v);
  12868. for (var r, i = y.length; i--;) r = y[i],
  12869. r.el._drag = {},
  12870. t("snap.drag.end." + r.el.id, r.end_scope || r.start_scope || r.move_scope || r.el, n);
  12871. y = []
  12872. },
  12873. x = c.length; x--;) !
  12874. function(t) {
  12875. e[t] = o[t] = function(n, r) {
  12876. return e.is(n, "function") && (this.events = this.events || [], this.events.push({
  12877. name: t,
  12878. f: n,
  12879. unbind: m(this.node || document, t, n, r || this)
  12880. })),
  12881. this
  12882. },
  12883. e["un" + t] = o["un" + t] = function(e) {
  12884. for (var n = this.events || [], r = n.length; r--;) if (n[r].name == t && (n[r].f == e || !e)) return n[r].unbind(),
  12885. n.splice(r, 1),
  12886. !n.length && delete this.events,
  12887. this;
  12888. return this
  12889. }
  12890. } (c[x]);
  12891. o.hover = function(e, t, n, r) {
  12892. return this.mouseover(e, n).mouseout(t, r || n)
  12893. },
  12894. o.unhover = function(e, t) {
  12895. return this.unmouseover(e).unmouseout(t)
  12896. };
  12897. var b = [];
  12898. o.drag = function(n, r, i, o, a, s) {
  12899. function c(c, l, u) { (c.originalEvent || c).preventDefault(),
  12900. this._drag.x = l,
  12901. this._drag.y = u,
  12902. this._drag.id = c.identifier,
  12903. !y.length && e.mousemove(g).mouseup(v),
  12904. y.push({
  12905. el: this,
  12906. move_scope: o,
  12907. start_scope: a,
  12908. end_scope: s
  12909. }),
  12910. r && t.on("snap.drag.start." + this.id, r),
  12911. n && t.on("snap.drag.move." + this.id, n),
  12912. i && t.on("snap.drag.end." + this.id, i),
  12913. t("snap.drag.start." + this.id, a || o || this, l, u, c)
  12914. }
  12915. if (!arguments.length) {
  12916. var l;
  12917. return this.drag(function(e, t) {
  12918. this.attr({
  12919. transform: l + (l ? "T": "t") + [e, t]
  12920. })
  12921. },
  12922. function() {
  12923. l = this.transform().local
  12924. })
  12925. }
  12926. return this._drag = {},
  12927. b.push({
  12928. el: this,
  12929. start: c
  12930. }),
  12931. this.mousedown(c),
  12932. this
  12933. },
  12934. o.undrag = function() {
  12935. for (var n = b.length; n--;) b[n].el == this && (this.unmousedown(b[n].start), b.splice(n, 1), t.unbind("snap.drag.*." + this.id));
  12936. return ! b.length && e.unmousemove(g).unmouseup(v),
  12937. this
  12938. }
  12939. }),
  12940. r.plugin(function(e, n, r, i) {
  12941. var o = (n.prototype, r.prototype),
  12942. a = /^\s*url\((.+)\)/,
  12943. s = String,
  12944. c = e._.$;
  12945. e.filter = {},
  12946. o.filter = function(t) {
  12947. var r = this;
  12948. "svg" != r.type && (r = r.paper);
  12949. var i = e.parse(s(t)),
  12950. o = e._.id(),
  12951. a = (r.node.offsetWidth, r.node.offsetHeight, c("filter"));
  12952. return c(a, {
  12953. id: o,
  12954. filterUnits: "userSpaceOnUse"
  12955. }),
  12956. a.appendChild(i.node),
  12957. r.defs.appendChild(a),
  12958. new n(a)
  12959. },
  12960. t.on("snap.util.getattr.filter",
  12961. function() {
  12962. t.stop();
  12963. var n = c(this.node, "filter");
  12964. if (n) {
  12965. var r = s(n).match(a);
  12966. return r && e.select(r[1])
  12967. }
  12968. }),
  12969. t.on("snap.util.attr.filter",
  12970. function(r) {
  12971. if (r instanceof n && "filter" == r.type) {
  12972. t.stop();
  12973. var i = r.node.id;
  12974. i || (c(r.node, {
  12975. id: r.id
  12976. }), i = r.id),
  12977. c(this.node, {
  12978. filter: e.url(i)
  12979. })
  12980. }
  12981. r && "none" != r || (t.stop(), this.node.removeAttribute("filter"))
  12982. }),
  12983. e.filter.blur = function(t, n) {
  12984. null == t && (t = 2);
  12985. var r = null == n ? t: [t, n];
  12986. return e.format('<feGaussianBlur stdDeviation="{def}"/>', {
  12987. def: r
  12988. })
  12989. },
  12990. e.filter.blur.toString = function() {
  12991. return this()
  12992. },
  12993. e.filter.shadow = function(t, n, r, i, o) {
  12994. return "string" == typeof r && (i = r, o = i, r = 4),
  12995. "string" != typeof i && (o = i, i = "#000"),
  12996. i = i || "#000",
  12997. null == r && (r = 4),
  12998. null == o && (o = 1),
  12999. null == t && (t = 0, n = 2),
  13000. null == n && (n = t),
  13001. i = e.color(i),
  13002. e.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>', {
  13003. color: i,
  13004. dx: t,
  13005. dy: n,
  13006. blur: r,
  13007. opacity: o
  13008. })
  13009. },
  13010. e.filter.shadow.toString = function() {
  13011. return this()
  13012. },
  13013. e.filter.grayscale = function(t) {
  13014. return null == t && (t = 1),
  13015. e.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>', {
  13016. a: .2126 + .7874 * (1 - t),
  13017. b: .7152 - .7152 * (1 - t),
  13018. c: .0722 - .0722 * (1 - t),
  13019. d: .2126 - .2126 * (1 - t),
  13020. e: .7152 + .2848 * (1 - t),
  13021. f: .0722 - .0722 * (1 - t),
  13022. g: .2126 - .2126 * (1 - t),
  13023. h: .0722 + .9278 * (1 - t)
  13024. })
  13025. },
  13026. e.filter.grayscale.toString = function() {
  13027. return this()
  13028. },
  13029. e.filter.sepia = function(t) {
  13030. return null == t && (t = 1),
  13031. e.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>', {
  13032. a: .393 + .607 * (1 - t),
  13033. b: .769 - .769 * (1 - t),
  13034. c: .189 - .189 * (1 - t),
  13035. d: .349 - .349 * (1 - t),
  13036. e: .686 + .314 * (1 - t),
  13037. f: .168 - .168 * (1 - t),
  13038. g: .272 - .272 * (1 - t),
  13039. h: .534 - .534 * (1 - t),
  13040. i: .131 + .869 * (1 - t)
  13041. })
  13042. },
  13043. e.filter.sepia.toString = function() {
  13044. return this()
  13045. },
  13046. e.filter.saturate = function(t) {
  13047. return null == t && (t = 1),
  13048. e.format('<feColorMatrix type="saturate" values="{amount}"/>', {
  13049. amount: 1 - t
  13050. })
  13051. },
  13052. e.filter.saturate.toString = function() {
  13053. return this()
  13054. },
  13055. e.filter.hueRotate = function(t) {
  13056. return t = t || 0,
  13057. e.format('<feColorMatrix type="hueRotate" values="{angle}"/>', {
  13058. angle: t
  13059. })
  13060. },
  13061. e.filter.hueRotate.toString = function() {
  13062. return this()
  13063. },
  13064. e.filter.invert = function(t) {
  13065. return null == t && (t = 1),
  13066. e.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>', {
  13067. amount: t,
  13068. amount2: 1 - t
  13069. })
  13070. },
  13071. e.filter.invert.toString = function() {
  13072. return this()
  13073. },
  13074. e.filter.brightness = function(t) {
  13075. return null == t && (t = 1),
  13076. e.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>', {
  13077. amount: t
  13078. })
  13079. },
  13080. e.filter.brightness.toString = function() {
  13081. return this()
  13082. },
  13083. e.filter.contrast = function(t) {
  13084. return null == t && (t = 1),
  13085. e.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>', {
  13086. amount: t,
  13087. amount2: .5 - t / 2
  13088. })
  13089. },
  13090. e.filter.contrast.toString = function() {
  13091. return this()
  13092. }
  13093. }),
  13094. r
  13095. })
  13096. },
  13097. {
  13098. 74 : 74
  13099. }],
  13100. 76 : [function(e, t, n) {
  13101. "use strict";
  13102. var r = t.exports = e(75);
  13103. r.plugin(function(e, t) {
  13104. t.prototype.children = function() {
  13105. for (var t = [], n = this.node.childNodes, r = 0, i = n.length; r < i; r++) t[r] = new e(n[r]);
  13106. return t
  13107. }
  13108. }),
  13109. r.plugin(function(e, t, n, r) {
  13110. function i(e) {
  13111. return e.split(/\s+/)
  13112. }
  13113. function o(e) {
  13114. return e.join(" ")
  13115. }
  13116. function a(e) {
  13117. return i(e.attr("class") || "")
  13118. }
  13119. function s(e, t) {
  13120. e.attr("class", o(t))
  13121. }
  13122. t.prototype.addClass = function(e) {
  13123. var t, n, r = a(this),
  13124. o = i(e);
  13125. for (t = 0, n; n = o[t]; t++) r.indexOf(n) === -1 && r.push(n);
  13126. return s(this, r),
  13127. this
  13128. },
  13129. t.prototype.hasClass = function(e) {
  13130. if (!e) throw new Error("[snapsvg] syntax: hasClass(clsStr)");
  13131. return a(this).indexOf(e) !== -1
  13132. },
  13133. t.prototype.removeClass = function(e) {
  13134. var t, n, r, o = a(this),
  13135. c = i(e);
  13136. for (t = 0, n; n = c[t]; t++) r = o.indexOf(n),
  13137. r !== -1 && o.splice(r, 1);
  13138. return s(this, o),
  13139. this
  13140. }
  13141. }),
  13142. r.plugin(function(e, t, n, r) {
  13143. t.prototype.translate = function(t, n) {
  13144. var r = new e.Matrix;
  13145. return r.translate(t, n),
  13146. this.transform(r)
  13147. }
  13148. }),
  13149. r.plugin(function(e) {
  13150. e.create = function(t, n) {
  13151. return e._.wrap(e._.$(t, n))
  13152. }
  13153. }),
  13154. r.plugin(function(e, t, n, r) {
  13155. e.createSnapAt = function(t, n, r) {
  13156. var i = document.createElementNS("http://www.w3.org/2000/svg", "svg");
  13157. return i.setAttribute("width", t),
  13158. i.setAttribute("height", n),
  13159. r || (r = document.body),
  13160. r.appendChild(i),
  13161. new e(i)
  13162. }
  13163. })
  13164. },
  13165. {
  13166. 75 : 75
  13167. }],
  13168. 77 : [function(e, t, n) {
  13169. "function" == typeof Object.create ? t.exports = function(e, t) {
  13170. e.super_ = t,
  13171. e.prototype = Object.create(t.prototype, {
  13172. constructor: {
  13173. value: e,
  13174. enumerable: !1,
  13175. writable: !0,
  13176. configurable: !0
  13177. }
  13178. })
  13179. }: t.exports = function(e, t) {
  13180. e.super_ = t;
  13181. var n = function() {};
  13182. n.prototype = t.prototype,
  13183. e.prototype = new n,
  13184. e.prototype.constructor = e
  13185. }
  13186. },
  13187. {}],
  13188. 78 : [function(e, t, n) {
  13189. function r(e) {
  13190. var t = e ? e.length: 0;
  13191. return t ? e[t - 1] : void 0
  13192. }
  13193. t.exports = r
  13194. },
  13195. {}],
  13196. 79 : [function(e, t, n) {
  13197. function r(e) {
  13198. if (c(e) && !s(e) && !(e instanceof i)) {
  13199. if (e instanceof o) return e;
  13200. if (p.call(e, "__chain__") && p.call(e, "__wrapped__")) return l(e)
  13201. }
  13202. return new o(e)
  13203. }
  13204. var i = e(94),
  13205. o = e(95),
  13206. a = e(126),
  13207. s = e(188),
  13208. c = e(173),
  13209. l = e(186),
  13210. u = Object.prototype,
  13211. p = u.hasOwnProperty;
  13212. r.prototype = a.prototype,
  13213. t.exports = r
  13214. },
  13215. {
  13216. 126 : 126,
  13217. 173 : 173,
  13218. 186 : 186,
  13219. 188 : 188,
  13220. 94 : 94,
  13221. 95 : 95
  13222. }],
  13223. 80 : [function(e, t, n) {
  13224. function r(e, t, n) {
  13225. var r = s(e) ? i: a;
  13226. return n && c(e, t, n) && (t = void 0),
  13227. "function" == typeof t && void 0 === n || (t = o(t, n, 3)),
  13228. r(e, t)
  13229. }
  13230. var i = e(99),
  13231. o = e(107),
  13232. a = e(113),
  13233. s = e(188),
  13234. c = e(169);
  13235. t.exports = r
  13236. },
  13237. {
  13238. 107 : 107,
  13239. 113 : 113,
  13240. 169 : 169,
  13241. 188 : 188,
  13242. 99 : 99
  13243. }],
  13244. 81 : [function(e, t, n) {
  13245. function r(e, t, n) {
  13246. var r = s(e) ? i: a;
  13247. return t = o(t, n, 3),
  13248. r(e, t)
  13249. }
  13250. var i = e(100),
  13251. o = e(107),
  13252. a = e(114),
  13253. s = e(188);
  13254. t.exports = r
  13255. },
  13256. {
  13257. 100 : 100,
  13258. 107 : 107,
  13259. 114 : 114,
  13260. 188 : 188
  13261. }],
  13262. 82 : [function(e, t, n) {
  13263. var r = e(112),
  13264. i = e(152),
  13265. o = i(r);
  13266. t.exports = o
  13267. },
  13268. {
  13269. 112 : 112,
  13270. 152 : 152
  13271. }],
  13272. 83 : [function(e, t, n) {
  13273. var r = e(98),
  13274. i = e(112),
  13275. o = e(153),
  13276. a = o(r, i);
  13277. t.exports = a
  13278. },
  13279. {
  13280. 112 : 112,
  13281. 153 : 153,
  13282. 98 : 98
  13283. }],
  13284. 84 : [function(e, t, n) {
  13285. var r = e(145),
  13286. i = Object.prototype,
  13287. o = i.hasOwnProperty,
  13288. a = r(function(e, t, n) {
  13289. o.call(e, n) ? e[n].push(t) : e[n] = [t]
  13290. });
  13291. t.exports = a
  13292. },
  13293. {
  13294. 145 : 145
  13295. }],
  13296. 85 : [function(e, t, n) {
  13297. function r(e, t, n, r) {
  13298. var f = e ? o(e) : 0;
  13299. return c(f) || (e = u(e), f = e.length),
  13300. n = "number" != typeof n || r && s(t, n, r) ? 0 : n < 0 ? p(f + n, 0) : n || 0,
  13301. "string" == typeof e || !a(e) && l(e) ? n <= f && e.indexOf(t, n) > -1 : !!f && i(e, t, n) > -1
  13302. }
  13303. var i = e(122),
  13304. o = e(163),
  13305. a = e(188),
  13306. s = e(169),
  13307. c = e(172),
  13308. l = e(194),
  13309. u = e(204),
  13310. p = Math.max;
  13311. t.exports = r
  13312. },
  13313. {
  13314. 122 : 122,
  13315. 163 : 163,
  13316. 169 : 169,
  13317. 172 : 172,
  13318. 188 : 188,
  13319. 194 : 194,
  13320. 204 : 204
  13321. }],
  13322. 86 : [function(e, t, n) {
  13323. function r(e, t, n) {
  13324. var r = s(e) ? i: a;
  13325. return t = o(t, n, 3),
  13326. r(e, t)
  13327. }
  13328. var i = e(101),
  13329. o = e(107),
  13330. a = e(127),
  13331. s = e(188);
  13332. t.exports = r
  13333. },
  13334. {
  13335. 101 : 101,
  13336. 107 : 107,
  13337. 127 : 127,
  13338. 188 : 188
  13339. }],
  13340. 87 : [function(e, t, n) {
  13341. var r = e(103),
  13342. i = e(112),
  13343. o = e(156),
  13344. a = o(r, i);
  13345. t.exports = a
  13346. },
  13347. {
  13348. 103 : 103,
  13349. 112 : 112,
  13350. 156 : 156
  13351. }],
  13352. 88 : [function(e, t, n) {
  13353. function r(e, t, n) {
  13354. var r = s(e) ? i: a;
  13355. return n && c(e, t, n) && (t = void 0),
  13356. "function" == typeof t && void 0 === n || (t = o(t, n, 3)),
  13357. r(e, t)
  13358. }
  13359. var i = e(104),
  13360. o = e(107),
  13361. a = e(137),
  13362. s = e(188),
  13363. c = e(169);
  13364. t.exports = r
  13365. },
  13366. {
  13367. 104 : 104,
  13368. 107 : 107,
  13369. 137 : 137,
  13370. 169 : 169,
  13371. 188 : 188
  13372. }],
  13373. 89 : [function(e, t, n) {
  13374. var r = e(165),
  13375. i = r(Date, "now"),
  13376. o = i ||
  13377. function() {
  13378. return (new Date).getTime()
  13379. };
  13380. t.exports = o
  13381. },
  13382. {
  13383. 165 : 165
  13384. }],
  13385. 90 : [function(e, t, n) {
  13386. var r = e(157),
  13387. i = e(181),
  13388. o = e(93),
  13389. a = 1,
  13390. s = 32,
  13391. c = o(function(e, t, n) {
  13392. var o = a;
  13393. if (n.length) {
  13394. var l = i(n, c.placeholder);
  13395. o |= s
  13396. }
  13397. return r(e, o, t, n, l)
  13398. });
  13399. c.placeholder = {},
  13400. t.exports = c
  13401. },
  13402. {
  13403. 157 : 157,
  13404. 181 : 181,
  13405. 93 : 93
  13406. }],
  13407. 91 : [function(e, t, n) {
  13408. function r(e, t, n) {
  13409. function r() {
  13410. g && clearTimeout(g),
  13411. h && clearTimeout(h),
  13412. x = 0,
  13413. h = g = v = void 0
  13414. }
  13415. function c(t, n) {
  13416. n && clearTimeout(n),
  13417. h = g = v = void 0,
  13418. t && (x = o(), d = e.apply(y, f), g || h || (f = y = void 0))
  13419. }
  13420. function l() {
  13421. var e = t - (o() - m);
  13422. e <= 0 || e > t ? c(v, h) : g = setTimeout(l, e)
  13423. }
  13424. function u() {
  13425. c(E, g)
  13426. }
  13427. function p() {
  13428. if (f = arguments, m = o(), y = this, v = E && (g || !w), b === !1) var n = w && !g;
  13429. else {
  13430. h || w || (x = m);
  13431. var r = b - (m - x),
  13432. i = r <= 0 || r > b;
  13433. i ? (h && (h = clearTimeout(h)), x = m, d = e.apply(y, f)) : h || (h = setTimeout(u, r))
  13434. }
  13435. return i && g ? g = clearTimeout(g) : g || t === b || (g = setTimeout(l, t)),
  13436. n && (i = !0, d = e.apply(y, f)),
  13437. !i || g || h || (f = y = void 0),
  13438. d
  13439. }
  13440. var f, h, d, m, y, g, v, x = 0,
  13441. b = !1,
  13442. E = !0;
  13443. if ("function" != typeof e) throw new TypeError(a);
  13444. if (t = t < 0 ? 0 : +t || 0, n === !0) {
  13445. var w = !0;
  13446. E = !1
  13447. } else i(n) && (w = !!n.leading, b = "maxWait" in n && s( + n.maxWait || 0, t), E = "trailing" in n ? !!n.trailing: E);
  13448. return p.cancel = r,
  13449. p
  13450. }
  13451. var i = e(192),
  13452. o = e(89),
  13453. a = "Expected a function",
  13454. s = Math.max;
  13455. t.exports = r
  13456. },
  13457. {
  13458. 192 : 192,
  13459. 89 : 89
  13460. }],
  13461. 92 : [function(e, t, n) {
  13462. var r = e(110),
  13463. i = e(93),
  13464. o = i(function(e, t) {
  13465. return r(e, 1, t)
  13466. });
  13467. t.exports = o
  13468. },
  13469. {
  13470. 110 : 110,
  13471. 93 : 93
  13472. }],
  13473. 93 : [function(e, t, n) {
  13474. function r(e, t) {
  13475. if ("function" != typeof e) throw new TypeError(i);
  13476. return t = o(void 0 === t ? e.length - 1 : +t || 0, 0),
  13477. function() {
  13478. for (var n = arguments,
  13479. r = -1,
  13480. i = o(n.length - t, 0), a = Array(i); ++r < i;) a[r] = n[t + r];
  13481. switch (t) {
  13482. case 0:
  13483. return e.call(this, a);
  13484. case 1:
  13485. return e.call(this, n[0], a);
  13486. case 2:
  13487. return e.call(this, n[0], n[1], a)
  13488. }
  13489. var s = Array(t + 1);
  13490. for (r = -1; ++r < t;) s[r] = n[r];
  13491. return s[t] = a,
  13492. e.apply(this, s)
  13493. }
  13494. }
  13495. var i = "Expected a function",
  13496. o = Math.max;
  13497. t.exports = r
  13498. },
  13499. {}],
  13500. 94 : [function(e, t, n) {
  13501. function r(e) {
  13502. this.__wrapped__ = e,
  13503. this.__actions__ = [],
  13504. this.__dir__ = 1,
  13505. this.__filtered__ = !1,
  13506. this.__iteratees__ = [],
  13507. this.__takeCount__ = a,
  13508. this.__views__ = []
  13509. }
  13510. var i = e(109),
  13511. o = e(126),
  13512. a = Number.POSITIVE_INFINITY;
  13513. r.prototype = i(o.prototype),
  13514. r.prototype.constructor = r,
  13515. t.exports = r
  13516. },
  13517. {
  13518. 109 : 109,
  13519. 126 : 126
  13520. }],
  13521. 95 : [function(e, t, n) {
  13522. function r(e, t, n) {
  13523. this.__wrapped__ = e,
  13524. this.__actions__ = n || [],
  13525. this.__chain__ = !!t
  13526. }
  13527. var i = e(109),
  13528. o = e(126);
  13529. r.prototype = i(o.prototype),
  13530. r.prototype.constructor = r,
  13531. t.exports = r
  13532. },
  13533. {
  13534. 109 : 109,
  13535. 126 : 126
  13536. }],
  13537. 96 : [function(e, t, n) { (function(n) {
  13538. function r(e) {
  13539. var t = e ? e.length: 0;
  13540. for (this.data = {
  13541. hash: s(null),
  13542. set: new a
  13543. }; t--;) this.push(e[t])
  13544. }
  13545. var i = e(142),
  13546. o = e(165),
  13547. a = o(n, "Set"),
  13548. s = o(Object, "create");
  13549. r.prototype.push = i,
  13550. t.exports = r
  13551. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  13552. },
  13553. {
  13554. 142 : 142,
  13555. 165 : 165
  13556. }],
  13557. 97 : [function(e, t, n) {
  13558. function r(e, t) {
  13559. var n = -1,
  13560. r = e.length;
  13561. for (t || (t = Array(r)); ++n < r;) t[n] = e[n];
  13562. return t
  13563. }
  13564. t.exports = r
  13565. },
  13566. {}],
  13567. 98 : [function(e, t, n) {
  13568. function r(e, t) {
  13569. for (var n = -1,
  13570. r = e.length; ++n < r && t(e[n], n, e) !== !1;);
  13571. return e
  13572. }
  13573. t.exports = r
  13574. },
  13575. {}],
  13576. 99 : [function(e, t, n) {
  13577. function r(e, t) {
  13578. for (var n = -1,
  13579. r = e.length; ++n < r;) if (!t(e[n], n, e)) return ! 1;
  13580. return ! 0
  13581. }
  13582. t.exports = r
  13583. },
  13584. {}],
  13585. 100 : [function(e, t, n) {
  13586. function r(e, t) {
  13587. for (var n = -1,
  13588. r = e.length,
  13589. i = -1,
  13590. o = []; ++n < r;) {
  13591. var a = e[n];
  13592. t(a, n, e) && (o[++i] = a)
  13593. }
  13594. return o
  13595. }
  13596. t.exports = r
  13597. },
  13598. {}],
  13599. 101 : [function(e, t, n) {
  13600. function r(e, t) {
  13601. for (var n = -1,
  13602. r = e.length,
  13603. i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
  13604. return i
  13605. }
  13606. t.exports = r
  13607. },
  13608. {}],
  13609. 102 : [function(e, t, n) {
  13610. function r(e, t) {
  13611. for (var n = -1,
  13612. r = t.length,
  13613. i = e.length; ++n < r;) e[i + n] = t[n];
  13614. return e
  13615. }
  13616. t.exports = r
  13617. },
  13618. {}],
  13619. 103 : [function(e, t, n) {
  13620. function r(e, t, n, r) {
  13621. var i = -1,
  13622. o = e.length;
  13623. for (r && o && (n = e[++i]); ++i < o;) n = t(n, e[i], i, e);
  13624. return n
  13625. }
  13626. t.exports = r
  13627. },
  13628. {}],
  13629. 104 : [function(e, t, n) {
  13630. function r(e, t) {
  13631. for (var n = -1,
  13632. r = e.length; ++n < r;) if (t(e[n], n, e)) return ! 0;
  13633. return ! 1
  13634. }
  13635. t.exports = r
  13636. },
  13637. {}],
  13638. 105 : [function(e, t, n) {
  13639. function r(e, t, n) {
  13640. for (var r = -1,
  13641. o = i(t), a = o.length; ++r < a;) {
  13642. var s = o[r],
  13643. c = e[s],
  13644. l = n(c, t[s], s, e, t); (l === l ? l === c: c !== c) && (void 0 !== c || s in e) || (e[s] = l)
  13645. }
  13646. return e
  13647. }
  13648. var i = e(198);
  13649. t.exports = r
  13650. },
  13651. {
  13652. 198 : 198
  13653. }],
  13654. 106 : [function(e, t, n) {
  13655. function r(e, t) {
  13656. return null == t ? e: i(t, o(t), e)
  13657. }
  13658. var i = e(108),
  13659. o = e(198);
  13660. t.exports = r
  13661. },
  13662. {
  13663. 108 : 108,
  13664. 198 : 198
  13665. }],
  13666. 107 : [function(e, t, n) {
  13667. function r(e, t, n) {
  13668. var r = typeof e;
  13669. return "function" == r ? void 0 === t ? e: a(e, t, n) : null == e ? s: "object" == r ? i(e) : void 0 === t ? c(e) : o(e, t)
  13670. }
  13671. var i = e(128),
  13672. o = e(129),
  13673. a = e(140),
  13674. s = e(205),
  13675. c = e(207);
  13676. t.exports = r
  13677. },
  13678. {
  13679. 128 : 128,
  13680. 129 : 129,
  13681. 140 : 140,
  13682. 205 : 205,
  13683. 207 : 207
  13684. }],
  13685. 108 : [function(e, t, n) {
  13686. function r(e, t, n) {
  13687. n || (n = {});
  13688. for (var r = -1,
  13689. i = t.length; ++r < i;) {
  13690. var o = t[r];
  13691. n[o] = e[o]
  13692. }
  13693. return n
  13694. }
  13695. t.exports = r
  13696. },
  13697. {}],
  13698. 109 : [function(e, t, n) {
  13699. var r = e(192),
  13700. i = function() {
  13701. function e() {}
  13702. return function(t) {
  13703. if (r(t)) {
  13704. e.prototype = t;
  13705. var n = new e;
  13706. e.prototype = void 0
  13707. }
  13708. return n || {}
  13709. }
  13710. } ();
  13711. t.exports = i
  13712. },
  13713. {
  13714. 192 : 192
  13715. }],
  13716. 110 : [function(e, t, n) {
  13717. function r(e, t, n) {
  13718. if ("function" != typeof e) throw new TypeError(i);
  13719. return setTimeout(function() {
  13720. e.apply(void 0, n)
  13721. },
  13722. t)
  13723. }
  13724. var i = "Expected a function";
  13725. t.exports = r
  13726. },
  13727. {}],
  13728. 111 : [function(e, t, n) {
  13729. function r(e, t) {
  13730. var n = e ? e.length: 0,
  13731. r = [];
  13732. if (!n) return r;
  13733. var c = -1,
  13734. l = i,
  13735. u = !0,
  13736. p = u && t.length >= s ? a(t) : null,
  13737. f = t.length;
  13738. p && (l = o, u = !1, t = p);
  13739. e: for (; ++c < n;) {
  13740. var h = e[c];
  13741. if (u && h === h) {
  13742. for (var d = f; d--;) if (t[d] === h) continue e;
  13743. r.push(h)
  13744. } else l(t, h, 0) < 0 && r.push(h)
  13745. }
  13746. return r
  13747. }
  13748. var i = e(122),
  13749. o = e(141),
  13750. a = e(150),
  13751. s = 200;
  13752. t.exports = r
  13753. },
  13754. {
  13755. 122 : 122,
  13756. 141 : 141,
  13757. 150 : 150
  13758. }],
  13759. 112 : [function(e, t, n) {
  13760. var r = e(120),
  13761. i = e(147),
  13762. o = i(r);
  13763. t.exports = o
  13764. },
  13765. {
  13766. 120 : 120,
  13767. 147 : 147
  13768. }],
  13769. 113 : [function(e, t, n) {
  13770. function r(e, t) {
  13771. var n = !0;
  13772. return i(e,
  13773. function(e, r, i) {
  13774. return n = !!t(e, r, i)
  13775. }),
  13776. n
  13777. }
  13778. var i = e(112);
  13779. t.exports = r
  13780. },
  13781. {
  13782. 112 : 112
  13783. }],
  13784. 114 : [function(e, t, n) {
  13785. function r(e, t) {
  13786. var n = [];
  13787. return i(e,
  13788. function(e, r, i) {
  13789. t(e, r, i) && n.push(e)
  13790. }),
  13791. n
  13792. }
  13793. var i = e(112);
  13794. t.exports = r
  13795. },
  13796. {
  13797. 112 : 112
  13798. }],
  13799. 115 : [function(e, t, n) {
  13800. function r(e, t, n, r) {
  13801. var i;
  13802. return n(e,
  13803. function(e, n, o) {
  13804. if (t(e, n, o)) return i = r ? n: e,
  13805. !1
  13806. }),
  13807. i
  13808. }
  13809. t.exports = r
  13810. },
  13811. {}],
  13812. 116 : [function(e, t, n) {
  13813. function r(e, t, n) {
  13814. for (var r = e.length,
  13815. i = n ? r: -1; n ? i--:++i < r;) if (t(e[i], i, e)) return i;
  13816. return - 1
  13817. }
  13818. t.exports = r
  13819. },
  13820. {}],
  13821. 117 : [function(e, t, n) {
  13822. function r(e, t, n, l) {
  13823. l || (l = []);
  13824. for (var u = -1,
  13825. p = e.length; ++u < p;) {
  13826. var f = e[u];
  13827. c(f) && s(f) && (n || a(f) || o(f)) ? t ? r(f, t, n, l) : i(l, f) : n || (l[l.length] = f)
  13828. }
  13829. return l
  13830. }
  13831. var i = e(102),
  13832. o = e(187),
  13833. a = e(188),
  13834. s = e(167),
  13835. c = e(173);
  13836. t.exports = r
  13837. },
  13838. {
  13839. 102 : 102,
  13840. 167 : 167,
  13841. 173 : 173,
  13842. 187 : 187,
  13843. 188 : 188
  13844. }],
  13845. 118 : [function(e, t, n) {
  13846. var r = e(148),
  13847. i = r();
  13848. t.exports = i
  13849. },
  13850. {
  13851. 148 : 148
  13852. }],
  13853. 119 : [function(e, t, n) {
  13854. function r(e, t) {
  13855. return i(e, t, o)
  13856. }
  13857. var i = e(118),
  13858. o = e(199);
  13859. t.exports = r
  13860. },
  13861. {
  13862. 118 : 118,
  13863. 199 : 199
  13864. }],
  13865. 120 : [function(e, t, n) {
  13866. function r(e, t) {
  13867. return i(e, t, o)
  13868. }
  13869. var i = e(118),
  13870. o = e(198);
  13871. t.exports = r
  13872. },
  13873. {
  13874. 118 : 118,
  13875. 198 : 198
  13876. }],
  13877. 121 : [function(e, t, n) {
  13878. function r(e, t, n) {
  13879. if (null != e) {
  13880. void 0 !== n && n in i(e) && (t = [n]);
  13881. for (var r = 0,
  13882. o = t.length; null != e && r < o;) e = e[t[r++]];
  13883. return r && r == o ? e: void 0
  13884. }
  13885. }
  13886. var i = e(184);
  13887. t.exports = r
  13888. },
  13889. {
  13890. 184 : 184
  13891. }],
  13892. 122 : [function(e, t, n) {
  13893. function r(e, t, n) {
  13894. if (t !== t) return i(e, n);
  13895. for (var r = n - 1,
  13896. o = e.length; ++r < o;) if (e[r] === t) return r;
  13897. return - 1
  13898. }
  13899. var i = e(166);
  13900. t.exports = r
  13901. },
  13902. {
  13903. 166 : 166
  13904. }],
  13905. 123 : [function(e, t, n) {
  13906. function r(e, t, n, s, c, l) {
  13907. return e === t || (null == e || null == t || !o(e) && !a(t) ? e !== e && t !== t: i(e, t, r, n, s, c, l))
  13908. }
  13909. var i = e(124),
  13910. o = e(192),
  13911. a = e(173);
  13912. t.exports = r
  13913. },
  13914. {
  13915. 124 : 124,
  13916. 173 : 173,
  13917. 192 : 192
  13918. }],
  13919. 124 : [function(e, t, n) {
  13920. function r(e, t, n, r, f, m, y) {
  13921. var g = s(e),
  13922. v = s(t),
  13923. x = u,
  13924. b = u;
  13925. g || (x = d.call(e), x == l ? x = p: x != p && (g = c(e))),
  13926. v || (b = d.call(t), b == l ? b = p: b != p && (v = c(t)));
  13927. var E = x == p,
  13928. w = b == p,
  13929. A = x == b;
  13930. if (A && !g && !E) return o(e, t, x);
  13931. if (!f) {
  13932. var _ = E && h.call(e, "__wrapped__"),
  13933. S = w && h.call(t, "__wrapped__");
  13934. if (_ || S) return n(_ ? e.value() : e, S ? t.value() : t, r, f, m, y)
  13935. }
  13936. if (!A) return ! 1;
  13937. m || (m = []),
  13938. y || (y = []);
  13939. for (var T = m.length; T--;) if (m[T] == e) return y[T] == t;
  13940. m.push(e),
  13941. y.push(t);
  13942. var C = (g ? i: a)(e, t, n, r, f, m, y);
  13943. return m.pop(),
  13944. y.pop(),
  13945. C
  13946. }
  13947. var i = e(158),
  13948. o = e(159),
  13949. a = e(160),
  13950. s = e(188),
  13951. c = e(195),
  13952. l = "[object Arguments]",
  13953. u = "[object Array]",
  13954. p = "[object Object]",
  13955. f = Object.prototype,
  13956. h = f.hasOwnProperty,
  13957. d = f.toString;
  13958. t.exports = r
  13959. },
  13960. {
  13961. 158 : 158,
  13962. 159 : 159,
  13963. 160 : 160,
  13964. 188 : 188,
  13965. 195 : 195
  13966. }],
  13967. 125 : [function(e, t, n) {
  13968. function r(e, t, n) {
  13969. var r = t.length,
  13970. a = r,
  13971. s = !n;
  13972. if (null == e) return ! a;
  13973. for (e = o(e); r--;) {
  13974. var c = t[r];
  13975. if (s && c[2] ? c[1] !== e[c[0]] : !(c[0] in e)) return ! 1
  13976. }
  13977. for (; ++r < a;) {
  13978. c = t[r];
  13979. var l = c[0],
  13980. u = e[l],
  13981. p = c[1];
  13982. if (s && c[2]) {
  13983. if (void 0 === u && !(l in e)) return ! 1
  13984. } else {
  13985. var f = n ? n(u, p, l) : void 0;
  13986. if (! (void 0 === f ? i(p, u, n, !0) : f)) return ! 1
  13987. }
  13988. }
  13989. return ! 0
  13990. }
  13991. var i = e(123),
  13992. o = e(184);
  13993. t.exports = r
  13994. },
  13995. {
  13996. 123 : 123,
  13997. 184 : 184
  13998. }],
  13999. 126 : [function(e, t, n) {
  14000. function r() {}
  14001. t.exports = r
  14002. },
  14003. {}],
  14004. 127 : [function(e, t, n) {
  14005. function r(e, t) {
  14006. var n = -1,
  14007. r = o(e) ? Array(e.length) : [];
  14008. return i(e,
  14009. function(e, i, o) {
  14010. r[++n] = t(e, i, o)
  14011. }),
  14012. r
  14013. }
  14014. var i = e(112),
  14015. o = e(167);
  14016. t.exports = r
  14017. },
  14018. {
  14019. 112 : 112,
  14020. 167 : 167
  14021. }],
  14022. 128 : [function(e, t, n) {
  14023. function r(e) {
  14024. var t = o(e);
  14025. if (1 == t.length && t[0][2]) {
  14026. var n = t[0][0],
  14027. r = t[0][1];
  14028. return function(e) {
  14029. return null != e && (e[n] === r && (void 0 !== r || n in a(e)))
  14030. }
  14031. }
  14032. return function(e) {
  14033. return i(e, t)
  14034. }
  14035. }
  14036. var i = e(125),
  14037. o = e(164),
  14038. a = e(184);
  14039. t.exports = r
  14040. },
  14041. {
  14042. 125 : 125,
  14043. 164 : 164,
  14044. 184 : 184
  14045. }],
  14046. 129 : [function(e, t, n) {
  14047. function r(e, t) {
  14048. var n = s(e),
  14049. r = c(e) && l(t),
  14050. h = e + "";
  14051. return e = f(e),
  14052. function(s) {
  14053. if (null == s) return ! 1;
  14054. var c = h;
  14055. if (s = p(s), (n || !r) && !(c in s)) {
  14056. if (s = 1 == e.length ? s: i(s, a(e, 0, -1)), null == s) return ! 1;
  14057. c = u(e),
  14058. s = p(s)
  14059. }
  14060. return s[c] === t ? void 0 !== t || c in s: o(t, s[c], void 0, !0)
  14061. }
  14062. }
  14063. var i = e(121),
  14064. o = e(123),
  14065. a = e(136),
  14066. s = e(188),
  14067. c = e(170),
  14068. l = e(174),
  14069. u = e(78),
  14070. p = e(184),
  14071. f = e(185);
  14072. t.exports = r
  14073. },
  14074. {
  14075. 121 : 121,
  14076. 123 : 123,
  14077. 136 : 136,
  14078. 170 : 170,
  14079. 174 : 174,
  14080. 184 : 184,
  14081. 185 : 185,
  14082. 188 : 188,
  14083. 78 : 78
  14084. }],
  14085. 130 : [function(e, t, n) {
  14086. function r(e, t, n, f, h) {
  14087. if (!c(e)) return e;
  14088. var d = s(t) && (a(t) || u(t)),
  14089. m = d ? void 0 : p(t);
  14090. return i(m || t,
  14091. function(i, a) {
  14092. if (m && (a = i, i = t[a]), l(i)) f || (f = []),
  14093. h || (h = []),
  14094. o(e, t, a, r, n, f, h);
  14095. else {
  14096. var s = e[a],
  14097. c = n ? n(s, i, a, e, t) : void 0,
  14098. u = void 0 === c;
  14099. u && (c = i),
  14100. void 0 === c && (!d || a in e) || !u && (c === c ? c === s: s !== s) || (e[a] = c)
  14101. }
  14102. }),
  14103. e
  14104. }
  14105. var i = e(98),
  14106. o = e(131),
  14107. a = e(188),
  14108. s = e(167),
  14109. c = e(192),
  14110. l = e(173),
  14111. u = e(195),
  14112. p = e(198);
  14113. t.exports = r
  14114. },
  14115. {
  14116. 131 : 131,
  14117. 167 : 167,
  14118. 173 : 173,
  14119. 188 : 188,
  14120. 192 : 192,
  14121. 195 : 195,
  14122. 198 : 198,
  14123. 98 : 98
  14124. }],
  14125. 131 : [function(e, t, n) {
  14126. function r(e, t, n, r, p, f, h) {
  14127. for (var d = f.length,
  14128. m = t[n]; d--;) if (f[d] == m) return void(e[n] = h[d]);
  14129. var y = e[n],
  14130. g = p ? p(y, m, n, e, t) : void 0,
  14131. v = void 0 === g;
  14132. v && (g = m, s(m) && (a(m) || l(m)) ? g = a(y) ? y: s(y) ? i(y) : [] : c(m) || o(m) ? g = o(y) ? u(y) : c(y) ? y: {}: v = !1),
  14133. f.push(m),
  14134. h.push(g),
  14135. v ? e[n] = r(g, m, p, f, h) : (g === g ? g !== y: y === y) && (e[n] = g)
  14136. }
  14137. var i = e(97),
  14138. o = e(187),
  14139. a = e(188),
  14140. s = e(167),
  14141. c = e(193),
  14142. l = e(195),
  14143. u = e(196);
  14144. t.exports = r
  14145. },
  14146. {
  14147. 167 : 167,
  14148. 187 : 187,
  14149. 188 : 188,
  14150. 193 : 193,
  14151. 195 : 195,
  14152. 196 : 196,
  14153. 97 : 97
  14154. }],
  14155. 132 : [function(e, t, n) {
  14156. function r(e) {
  14157. return function(t) {
  14158. return null == t ? void 0 : t[e]
  14159. }
  14160. }
  14161. t.exports = r
  14162. },
  14163. {}],
  14164. 133 : [function(e, t, n) {
  14165. function r(e) {
  14166. var t = e + "";
  14167. return e = o(e),
  14168. function(n) {
  14169. return i(n, e, t)
  14170. }
  14171. }
  14172. var i = e(121),
  14173. o = e(185);
  14174. t.exports = r
  14175. },
  14176. {
  14177. 121 : 121,
  14178. 185 : 185
  14179. }],
  14180. 134 : [function(e, t, n) {
  14181. function r(e, t, n, r, i) {
  14182. return i(e,
  14183. function(e, i, o) {
  14184. n = r ? (r = !1, e) : t(n, e, i, o)
  14185. }),
  14186. n
  14187. }
  14188. t.exports = r
  14189. },
  14190. {}],
  14191. 135 : [function(e, t, n) {
  14192. var r = e(205),
  14193. i = e(176),
  14194. o = i ?
  14195. function(e, t) {
  14196. return i.set(e, t),
  14197. e
  14198. }: r;
  14199. t.exports = o
  14200. },
  14201. {
  14202. 176 : 176,
  14203. 205 : 205
  14204. }],
  14205. 136 : [function(e, t, n) {
  14206. function r(e, t, n) {
  14207. var r = -1,
  14208. i = e.length;
  14209. t = null == t ? 0 : +t || 0,
  14210. t < 0 && (t = -t > i ? 0 : i + t),
  14211. n = void 0 === n || n > i ? i: +n || 0,
  14212. n < 0 && (n += i),
  14213. i = t > n ? 0 : n - t >>> 0,
  14214. t >>>= 0;
  14215. for (var o = Array(i); ++r < i;) o[r] = e[r + t];
  14216. return o
  14217. }
  14218. t.exports = r
  14219. },
  14220. {}],
  14221. 137 : [function(e, t, n) {
  14222. function r(e, t) {
  14223. var n;
  14224. return i(e,
  14225. function(e, r, i) {
  14226. return n = t(e, r, i),
  14227. !n
  14228. }),
  14229. !!n
  14230. }
  14231. var i = e(112);
  14232. t.exports = r
  14233. },
  14234. {
  14235. 112 : 112
  14236. }],
  14237. 138 : [function(e, t, n) {
  14238. function r(e) {
  14239. return null == e ? "": e + ""
  14240. }
  14241. t.exports = r
  14242. },
  14243. {}],
  14244. 139 : [function(e, t, n) {
  14245. function r(e, t) {
  14246. for (var n = -1,
  14247. r = t.length,
  14248. i = Array(r); ++n < r;) i[n] = e[t[n]];
  14249. return i
  14250. }
  14251. t.exports = r
  14252. },
  14253. {}],
  14254. 140 : [function(e, t, n) {
  14255. function r(e, t, n) {
  14256. if ("function" != typeof e) return i;
  14257. if (void 0 === t) return e;
  14258. switch (n) {
  14259. case 1:
  14260. return function(n) {
  14261. return e.call(t, n)
  14262. };
  14263. case 3:
  14264. return function(n, r, i) {
  14265. return e.call(t, n, r, i)
  14266. };
  14267. case 4:
  14268. return function(n, r, i, o) {
  14269. return e.call(t, n, r, i, o)
  14270. };
  14271. case 5:
  14272. return function(n, r, i, o, a) {
  14273. return e.call(t, n, r, i, o, a)
  14274. }
  14275. }
  14276. return function() {
  14277. return e.apply(t, arguments)
  14278. }
  14279. }
  14280. var i = e(205);
  14281. t.exports = r
  14282. },
  14283. {
  14284. 205 : 205
  14285. }],
  14286. 141 : [function(e, t, n) {
  14287. function r(e, t) {
  14288. var n = e.data,
  14289. r = "string" == typeof t || i(t) ? n.set.has(t) : n.hash[t];
  14290. return r ? 0 : -1
  14291. }
  14292. var i = e(192);
  14293. t.exports = r
  14294. },
  14295. {
  14296. 192 : 192
  14297. }],
  14298. 142 : [function(e, t, n) {
  14299. function r(e) {
  14300. var t = this.data;
  14301. "string" == typeof e || i(e) ? t.set.add(e) : t.hash[e] = !0
  14302. }
  14303. var i = e(192);
  14304. t.exports = r
  14305. },
  14306. {
  14307. 192 : 192
  14308. }],
  14309. 143 : [function(e, t, n) {
  14310. function r(e, t, n) {
  14311. for (var r = n.length,
  14312. o = -1,
  14313. a = i(e.length - r, 0), s = -1, c = t.length, l = Array(c + a); ++s < c;) l[s] = t[s];
  14314. for (; ++o < r;) l[n[o]] = e[o];
  14315. for (; a--;) l[s++] = e[o++];
  14316. return l
  14317. }
  14318. var i = Math.max;
  14319. t.exports = r
  14320. },
  14321. {}],
  14322. 144 : [function(e, t, n) {
  14323. function r(e, t, n) {
  14324. for (var r = -1,
  14325. o = n.length,
  14326. a = -1,
  14327. s = i(e.length - o, 0), c = -1, l = t.length, u = Array(s + l); ++a < s;) u[a] = e[a];
  14328. for (var p = a; ++c < l;) u[p + c] = t[c];
  14329. for (; ++r < o;) u[p + n[r]] = e[a++];
  14330. return u
  14331. }
  14332. var i = Math.max;
  14333. t.exports = r
  14334. },
  14335. {}],
  14336. 145 : [function(e, t, n) {
  14337. function r(e, t) {
  14338. return function(n, r, s) {
  14339. var c = t ? t() : {};
  14340. if (r = i(r, s, 3), a(n)) for (var l = -1,
  14341. u = n.length; ++l < u;) {
  14342. var p = n[l];
  14343. e(c, p, r(p, l, n), n)
  14344. } else o(n,
  14345. function(t, n, i) {
  14346. e(c, t, r(t, n, i), i)
  14347. });
  14348. return c
  14349. }
  14350. }
  14351. var i = e(107),
  14352. o = e(112),
  14353. a = e(188);
  14354. t.exports = r
  14355. },
  14356. {
  14357. 107 : 107,
  14358. 112 : 112,
  14359. 188 : 188
  14360. }],
  14361. 146 : [function(e, t, n) {
  14362. function r(e) {
  14363. return a(function(t, n) {
  14364. var r = -1,
  14365. a = null == t ? 0 : n.length,
  14366. s = a > 2 ? n[a - 2] : void 0,
  14367. c = a > 2 ? n[2] : void 0,
  14368. l = a > 1 ? n[a - 1] : void 0;
  14369. for ("function" == typeof s ? (s = i(s, l, 5), a -= 2) : (s = "function" == typeof l ? l: void 0, a -= s ? 1 : 0), c && o(n[0], n[1], c) && (s = a < 3 ? void 0 : s, a = 1); ++r < a;) {
  14370. var u = n[r];
  14371. u && e(t, u, s)
  14372. }
  14373. return t
  14374. })
  14375. }
  14376. var i = e(140),
  14377. o = e(169),
  14378. a = e(93);
  14379. t.exports = r
  14380. },
  14381. {
  14382. 140 : 140,
  14383. 169 : 169,
  14384. 93 : 93
  14385. }],
  14386. 147 : [function(e, t, n) {
  14387. function r(e, t) {
  14388. return function(n, r) {
  14389. var s = n ? i(n) : 0;
  14390. if (!o(s)) return e(n, r);
  14391. for (var c = t ? s: -1, l = a(n); (t ? c--:++c < s) && r(l[c], c, l) !== !1;);
  14392. return n
  14393. }
  14394. }
  14395. var i = e(163),
  14396. o = e(172),
  14397. a = e(184);
  14398. t.exports = r
  14399. },
  14400. {
  14401. 163 : 163,
  14402. 172 : 172,
  14403. 184 : 184
  14404. }],
  14405. 148 : [function(e, t, n) {
  14406. function r(e) {
  14407. return function(t, n, r) {
  14408. for (var o = i(t), a = r(t), s = a.length, c = e ? s: -1; e ? c--:++c < s;) {
  14409. var l = a[c];
  14410. if (n(o[l], l, o) === !1) break
  14411. }
  14412. return t
  14413. }
  14414. }
  14415. var i = e(184);
  14416. t.exports = r
  14417. },
  14418. {
  14419. 184 : 184
  14420. }],
  14421. 149 : [function(e, t, n) { (function(n) {
  14422. function r(e, t) {
  14423. function r() {
  14424. var i = this && this !== n && this instanceof r ? o: e;
  14425. return i.apply(t, arguments)
  14426. }
  14427. var o = i(e);
  14428. return r
  14429. }
  14430. var i = e(151);
  14431. t.exports = r
  14432. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  14433. },
  14434. {
  14435. 151 : 151
  14436. }],
  14437. 150 : [function(e, t, n) { (function(n) {
  14438. function r(e) {
  14439. return s && a ? new i(e) : null
  14440. }
  14441. var i = e(96),
  14442. o = e(165),
  14443. a = o(n, "Set"),
  14444. s = o(Object, "create");
  14445. t.exports = r
  14446. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  14447. },
  14448. {
  14449. 165 : 165,
  14450. 96 : 96
  14451. }],
  14452. 151 : [function(e, t, n) {
  14453. function r(e) {
  14454. return function() {
  14455. var t = arguments;
  14456. switch (t.length) {
  14457. case 0:
  14458. return new e;
  14459. case 1:
  14460. return new e(t[0]);
  14461. case 2:
  14462. return new e(t[0], t[1]);
  14463. case 3:
  14464. return new e(t[0], t[1], t[2]);
  14465. case 4:
  14466. return new e(t[0], t[1], t[2], t[3]);
  14467. case 5:
  14468. return new e(t[0], t[1], t[2], t[3], t[4]);
  14469. case 6:
  14470. return new e(t[0], t[1], t[2], t[3], t[4], t[5]);
  14471. case 7:
  14472. return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6])
  14473. }
  14474. var n = i(e.prototype),
  14475. r = e.apply(n, t);
  14476. return o(r) ? r: n
  14477. }
  14478. }
  14479. var i = e(109),
  14480. o = e(192);
  14481. t.exports = r
  14482. },
  14483. {
  14484. 109 : 109,
  14485. 192 : 192
  14486. }],
  14487. 152 : [function(e, t, n) {
  14488. function r(e, t) {
  14489. return function(n, r, c) {
  14490. if (r = i(r, c, 3), s(n)) {
  14491. var l = a(n, r, t);
  14492. return l > -1 ? n[l] : void 0
  14493. }
  14494. return o(n, r, e)
  14495. }
  14496. }
  14497. var i = e(107),
  14498. o = e(115),
  14499. a = e(116),
  14500. s = e(188);
  14501. t.exports = r
  14502. },
  14503. {
  14504. 107 : 107,
  14505. 115 : 115,
  14506. 116 : 116,
  14507. 188 : 188
  14508. }],
  14509. 153 : [function(e, t, n) {
  14510. function r(e, t) {
  14511. return function(n, r, a) {
  14512. return "function" == typeof r && void 0 === a && o(n) ? e(n, r) : t(n, i(r, a, 3))
  14513. }
  14514. }
  14515. var i = e(140),
  14516. o = e(188);
  14517. t.exports = r
  14518. },
  14519. {
  14520. 140 : 140,
  14521. 188 : 188
  14522. }],
  14523. 154 : [function(e, t, n) { (function(n) {
  14524. function r(e, t, E, w, A, _, S, T, C, R) {
  14525. function N() {
  14526. for (var d = arguments.length,
  14527. m = d,
  14528. y = Array(d); m--;) y[m] = arguments[m];
  14529. if (w && (y = o(y, w, A)), _ && (y = a(y, _, S)), k || B) {
  14530. var x = N.placeholder,
  14531. L = u(y, x);
  14532. if (d -= L.length, d < R) {
  14533. var F = T ? i(T) : void 0,
  14534. j = b(R - d, 0),
  14535. V = k ? L: void 0,
  14536. G = k ? void 0 : L,
  14537. U = k ? y: void 0,
  14538. W = k ? void 0 : y;
  14539. t |= k ? g: v,
  14540. t &= ~ (k ? v: g),
  14541. O || (t &= ~ (f | h));
  14542. var z = [e, t, E, U, V, W, G, F, C, j],
  14543. q = r.apply(void 0, z);
  14544. return c(e) && p(q, z),
  14545. q.placeholder = x,
  14546. q
  14547. }
  14548. }
  14549. var H = P ? E: this,
  14550. Y = D ? H[e] : e;
  14551. return T && (y = l(y, T)),
  14552. M && C < y.length && (y.length = C),
  14553. this && this !== n && this instanceof N && (Y = I || s(e)),
  14554. Y.apply(H, y)
  14555. }
  14556. var M = t & x,
  14557. P = t & f,
  14558. D = t & h,
  14559. k = t & m,
  14560. O = t & d,
  14561. B = t & y,
  14562. I = D ? void 0 : s(e);
  14563. return N
  14564. }
  14565. var i = e(97),
  14566. o = e(143),
  14567. a = e(144),
  14568. s = e(151),
  14569. c = e(171),
  14570. l = e(180),
  14571. u = e(181),
  14572. p = e(182),
  14573. f = 1,
  14574. h = 2,
  14575. d = 4,
  14576. m = 8,
  14577. y = 16,
  14578. g = 32,
  14579. v = 64,
  14580. x = 128,
  14581. b = Math.max;
  14582. t.exports = r
  14583. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  14584. },
  14585. {
  14586. 143 : 143,
  14587. 144 : 144,
  14588. 151 : 151,
  14589. 171 : 171,
  14590. 180 : 180,
  14591. 181 : 181,
  14592. 182 : 182,
  14593. 97 : 97
  14594. }],
  14595. 155 : [function(e, t, n) { (function(n) {
  14596. function r(e, t, r, a) {
  14597. function s() {
  14598. for (var t = -1,
  14599. i = arguments.length,
  14600. o = -1,
  14601. u = a.length,
  14602. p = Array(u + i); ++o < u;) p[o] = a[o];
  14603. for (; i--;) p[o++] = arguments[++t];
  14604. var f = this && this !== n && this instanceof s ? l: e;
  14605. return f.apply(c ? r: this, p)
  14606. }
  14607. var c = t & o,
  14608. l = i(e);
  14609. return s
  14610. }
  14611. var i = e(151),
  14612. o = 1;
  14613. t.exports = r
  14614. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  14615. },
  14616. {
  14617. 151 : 151
  14618. }],
  14619. 156 : [function(e, t, n) {
  14620. function r(e, t) {
  14621. return function(n, r, s, c) {
  14622. var l = arguments.length < 3;
  14623. return "function" == typeof r && void 0 === c && a(n) ? e(n, r, s, l) : o(n, i(r, c, 4), s, l, t)
  14624. }
  14625. }
  14626. var i = e(107),
  14627. o = e(134),
  14628. a = e(188);
  14629. t.exports = r
  14630. },
  14631. {
  14632. 107 : 107,
  14633. 134 : 134,
  14634. 188 : 188
  14635. }],
  14636. 157 : [function(e, t, n) {
  14637. function r(e, t, n, r, g, v, x, b) {
  14638. var E = t & f;
  14639. if (!E && "function" != typeof e) throw new TypeError(m);
  14640. var w = r ? r.length: 0;
  14641. if (w || (t &= ~ (h | d), r = g = void 0), w -= g ? g.length: 0, t & d) {
  14642. var A = r,
  14643. _ = g;
  14644. r = g = void 0
  14645. }
  14646. var S = E ? void 0 : c(e),
  14647. T = [e, t, n, r, g, A, _, v, x, b];
  14648. if (S && (l(T, S), t = T[1], b = T[9]), T[9] = null == b ? E ? 0 : e.length: y(b - w, 0) || 0, t == p) var C = o(T[0], T[2]);
  14649. else C = t != h && t != (p | h) || T[4].length ? a.apply(void 0, T) : s.apply(void 0, T);
  14650. var R = S ? i: u;
  14651. return R(C, T)
  14652. }
  14653. var i = e(135),
  14654. o = e(149),
  14655. a = e(154),
  14656. s = e(155),
  14657. c = e(161),
  14658. l = e(175),
  14659. u = e(182),
  14660. p = 1,
  14661. f = 2,
  14662. h = 32,
  14663. d = 64,
  14664. m = "Expected a function",
  14665. y = Math.max;
  14666. t.exports = r
  14667. },
  14668. {
  14669. 135 : 135,
  14670. 149 : 149,
  14671. 154 : 154,
  14672. 155 : 155,
  14673. 161 : 161,
  14674. 175 : 175,
  14675. 182 : 182
  14676. }],
  14677. 158 : [function(e, t, n) {
  14678. function r(e, t, n, r, o, a, s) {
  14679. var c = -1,
  14680. l = e.length,
  14681. u = t.length;
  14682. if (l != u && !(o && u > l)) return ! 1;
  14683. for (; ++c < l;) {
  14684. var p = e[c],
  14685. f = t[c],
  14686. h = r ? r(o ? f: p, o ? p: f, c) : void 0;
  14687. if (void 0 !== h) {
  14688. if (h) continue;
  14689. return ! 1
  14690. }
  14691. if (o) {
  14692. if (!i(t,
  14693. function(e) {
  14694. return p === e || n(p, e, r, o, a, s)
  14695. })) return ! 1
  14696. } else if (p !== f && !n(p, f, r, o, a, s)) return ! 1
  14697. }
  14698. return ! 0
  14699. }
  14700. var i = e(104);
  14701. t.exports = r
  14702. },
  14703. {
  14704. 104 : 104
  14705. }],
  14706. 159 : [function(e, t, n) {
  14707. function r(e, t, n) {
  14708. switch (n) {
  14709. case i:
  14710. case o:
  14711. return + e == +t;
  14712. case a:
  14713. return e.name == t.name && e.message == t.message;
  14714. case s:
  14715. return e != +e ? t != +t: e == +t;
  14716. case c:
  14717. case l:
  14718. return e == t + ""
  14719. }
  14720. return ! 1
  14721. }
  14722. var i = "[object Boolean]",
  14723. o = "[object Date]",
  14724. a = "[object Error]",
  14725. s = "[object Number]",
  14726. c = "[object RegExp]",
  14727. l = "[object String]";
  14728. t.exports = r
  14729. },
  14730. {}],
  14731. 160 : [function(e, t, n) {
  14732. function r(e, t, n, r, o, s, c) {
  14733. var l = i(e),
  14734. u = l.length,
  14735. p = i(t),
  14736. f = p.length;
  14737. if (u != f && !o) return ! 1;
  14738. for (var h = u; h--;) {
  14739. var d = l[h];
  14740. if (! (o ? d in t: a.call(t, d))) return ! 1
  14741. }
  14742. for (var m = o; ++h < u;) {
  14743. d = l[h];
  14744. var y = e[d],
  14745. g = t[d],
  14746. v = r ? r(o ? g: y, o ? y: g, d) : void 0;
  14747. if (! (void 0 === v ? n(y, g, r, o, s, c) : v)) return ! 1;
  14748. m || (m = "constructor" == d)
  14749. }
  14750. if (!m) {
  14751. var x = e.constructor,
  14752. b = t.constructor;
  14753. if (x != b && "constructor" in e && "constructor" in t && !("function" == typeof x && x instanceof x && "function" == typeof b && b instanceof b)) return ! 1
  14754. }
  14755. return ! 0
  14756. }
  14757. var i = e(198),
  14758. o = Object.prototype,
  14759. a = o.hasOwnProperty;
  14760. t.exports = r
  14761. },
  14762. {
  14763. 198 : 198
  14764. }],
  14765. 161 : [function(e, t, n) {
  14766. var r = e(176),
  14767. i = e(206),
  14768. o = r ?
  14769. function(e) {
  14770. return r.get(e)
  14771. }: i;
  14772. t.exports = o
  14773. },
  14774. {
  14775. 176 : 176,
  14776. 206 : 206
  14777. }],
  14778. 162 : [function(e, t, n) {
  14779. function r(e) {
  14780. for (var t = e.name + "",
  14781. n = i[t], r = n ? n.length: 0; r--;) {
  14782. var o = n[r],
  14783. a = o.func;
  14784. if (null == a || a == e) return o.name
  14785. }
  14786. return t
  14787. }
  14788. var i = e(179);
  14789. t.exports = r
  14790. },
  14791. {
  14792. 179 : 179
  14793. }],
  14794. 163 : [function(e, t, n) {
  14795. var r = e(132),
  14796. i = r("length");
  14797. t.exports = i
  14798. },
  14799. {
  14800. 132 : 132
  14801. }],
  14802. 164 : [function(e, t, n) {
  14803. function r(e) {
  14804. for (var t = o(e), n = t.length; n--;) t[n][2] = i(t[n][1]);
  14805. return t
  14806. }
  14807. var i = e(174),
  14808. o = e(202);
  14809. t.exports = r
  14810. },
  14811. {
  14812. 174 : 174,
  14813. 202 : 202
  14814. }],
  14815. 165 : [function(e, t, n) {
  14816. function r(e, t) {
  14817. var n = null == e ? void 0 : e[t];
  14818. return i(n) ? n: void 0
  14819. }
  14820. var i = e(190);
  14821. t.exports = r
  14822. },
  14823. {
  14824. 190 : 190
  14825. }],
  14826. 166 : [function(e, t, n) {
  14827. function r(e, t, n) {
  14828. for (var r = e.length,
  14829. i = t + (n ? 0 : -1); n ? i--:++i < r;) {
  14830. var o = e[i];
  14831. if (o !== o) return i
  14832. }
  14833. return - 1
  14834. }
  14835. t.exports = r
  14836. },
  14837. {}],
  14838. 167 : [function(e, t, n) {
  14839. function r(e) {
  14840. return null != e && o(i(e))
  14841. }
  14842. var i = e(163),
  14843. o = e(172);
  14844. t.exports = r
  14845. },
  14846. {
  14847. 163 : 163,
  14848. 172 : 172
  14849. }],
  14850. 168 : [function(e, t, n) {
  14851. function r(e, t) {
  14852. return e = "number" == typeof e || i.test(e) ? +e: -1,
  14853. t = null == t ? o: t,
  14854. e > -1 && e % 1 == 0 && e < t
  14855. }
  14856. var i = /^\d+$/,
  14857. o = 9007199254740991;
  14858. t.exports = r
  14859. },
  14860. {}],
  14861. 169 : [function(e, t, n) {
  14862. function r(e, t, n) {
  14863. if (!a(n)) return ! 1;
  14864. var r = typeof t;
  14865. if ("number" == r ? i(n) && o(t, n.length) : "string" == r && t in n) {
  14866. var s = n[t];
  14867. return e === e ? e === s: s !== s
  14868. }
  14869. return ! 1
  14870. }
  14871. var i = e(167),
  14872. o = e(168),
  14873. a = e(192);
  14874. t.exports = r
  14875. },
  14876. {
  14877. 167 : 167,
  14878. 168 : 168,
  14879. 192 : 192
  14880. }],
  14881. 170 : [function(e, t, n) {
  14882. function r(e, t) {
  14883. var n = typeof e;
  14884. if ("string" == n && s.test(e) || "number" == n) return ! 0;
  14885. if (i(e)) return ! 1;
  14886. var r = !a.test(e);
  14887. return r || null != t && e in o(t)
  14888. }
  14889. var i = e(188),
  14890. o = e(184),
  14891. a = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
  14892. s = /^\w*$/;
  14893. t.exports = r
  14894. },
  14895. {
  14896. 184 : 184,
  14897. 188 : 188
  14898. }],
  14899. 171 : [function(e, t, n) {
  14900. function r(e) {
  14901. var t = a(e),
  14902. n = s[t];
  14903. if ("function" != typeof n || !(t in i.prototype)) return ! 1;
  14904. if (e === n) return ! 0;
  14905. var r = o(n);
  14906. return !! r && e === r[0]
  14907. }
  14908. var i = e(94),
  14909. o = e(161),
  14910. a = e(162),
  14911. s = e(79);
  14912. t.exports = r
  14913. },
  14914. {
  14915. 161 : 161,
  14916. 162 : 162,
  14917. 79 : 79,
  14918. 94 : 94
  14919. }],
  14920. 172 : [function(e, t, n) {
  14921. function r(e) {
  14922. return "number" == typeof e && e > -1 && e % 1 == 0 && e <= i
  14923. }
  14924. var i = 9007199254740991;
  14925. t.exports = r
  14926. },
  14927. {}],
  14928. 173 : [function(e, t, n) {
  14929. function r(e) {
  14930. return !! e && "object" == typeof e
  14931. }
  14932. t.exports = r
  14933. },
  14934. {}],
  14935. 174 : [function(e, t, n) {
  14936. function r(e) {
  14937. return e === e && !i(e)
  14938. }
  14939. var i = e(192);
  14940. t.exports = r
  14941. },
  14942. {
  14943. 192 : 192
  14944. }],
  14945. 175 : [function(e, t, n) {
  14946. function r(e, t) {
  14947. var n = e[1],
  14948. r = t[1],
  14949. m = n | r,
  14950. y = m < p,
  14951. g = r == p && n == u || r == p && n == f && e[7].length <= t[8] || r == (p | f) && n == u;
  14952. if (!y && !g) return e;
  14953. r & c && (e[2] = t[2], m |= n & c ? 0 : l);
  14954. var v = t[3];
  14955. if (v) {
  14956. var x = e[3];
  14957. e[3] = x ? o(x, v, t[4]) : i(v),
  14958. e[4] = x ? s(e[3], h) : i(t[4])
  14959. }
  14960. return v = t[5],
  14961. v && (x = e[5], e[5] = x ? a(x, v, t[6]) : i(v), e[6] = x ? s(e[5], h) : i(t[6])),
  14962. v = t[7],
  14963. v && (e[7] = i(v)),
  14964. r & p && (e[8] = null == e[8] ? t[8] : d(e[8], t[8])),
  14965. null == e[9] && (e[9] = t[9]),
  14966. e[0] = t[0],
  14967. e[1] = m,
  14968. e
  14969. }
  14970. var i = e(97),
  14971. o = e(143),
  14972. a = e(144),
  14973. s = e(181),
  14974. c = 1,
  14975. l = 4,
  14976. u = 8,
  14977. p = 128,
  14978. f = 256,
  14979. h = "__lodash_placeholder__",
  14980. d = Math.min;
  14981. t.exports = r
  14982. },
  14983. {
  14984. 143 : 143,
  14985. 144 : 144,
  14986. 181 : 181,
  14987. 97 : 97
  14988. }],
  14989. 176 : [function(e, t, n) { (function(n) {
  14990. var r = e(165),
  14991. i = r(n, "WeakMap"),
  14992. o = i && new i;
  14993. t.exports = o
  14994. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  14995. },
  14996. {
  14997. 165 : 165
  14998. }],
  14999. 177 : [function(e, t, n) {
  15000. function r(e, t) {
  15001. e = i(e);
  15002. for (var n = -1,
  15003. r = t.length,
  15004. o = {}; ++n < r;) {
  15005. var a = t[n];
  15006. a in e && (o[a] = e[a])
  15007. }
  15008. return o
  15009. }
  15010. var i = e(184);
  15011. t.exports = r
  15012. },
  15013. {
  15014. 184 : 184
  15015. }],
  15016. 178 : [function(e, t, n) {
  15017. function r(e, t) {
  15018. var n = {};
  15019. return i(e,
  15020. function(e, r, i) {
  15021. t(e, r, i) && (n[r] = e)
  15022. }),
  15023. n
  15024. }
  15025. var i = e(119);
  15026. t.exports = r
  15027. },
  15028. {
  15029. 119 : 119
  15030. }],
  15031. 179 : [function(e, t, n) {
  15032. var r = {};
  15033. t.exports = r
  15034. },
  15035. {}],
  15036. 180 : [function(e, t, n) {
  15037. function r(e, t) {
  15038. for (var n = e.length,
  15039. r = a(t.length, n), s = i(e); r--;) {
  15040. var c = t[r];
  15041. e[r] = o(c, n) ? s[c] : void 0
  15042. }
  15043. return e
  15044. }
  15045. var i = e(97),
  15046. o = e(168),
  15047. a = Math.min;
  15048. t.exports = r
  15049. },
  15050. {
  15051. 168 : 168,
  15052. 97 : 97
  15053. }],
  15054. 181 : [function(e, t, n) {
  15055. function r(e, t) {
  15056. for (var n = -1,
  15057. r = e.length,
  15058. o = -1,
  15059. a = []; ++n < r;) e[n] === t && (e[n] = i, a[++o] = n);
  15060. return a
  15061. }
  15062. var i = "__lodash_placeholder__";
  15063. t.exports = r
  15064. },
  15065. {}],
  15066. 182 : [function(e, t, n) {
  15067. var r = e(135),
  15068. i = e(89),
  15069. o = 150,
  15070. a = 16,
  15071. s = function() {
  15072. var e = 0,
  15073. t = 0;
  15074. return function(n, s) {
  15075. var c = i(),
  15076. l = a - (c - t);
  15077. if (t = c, l > 0) {
  15078. if (++e >= o) return n
  15079. } else e = 0;
  15080. return r(n, s)
  15081. }
  15082. } ();
  15083. t.exports = s
  15084. },
  15085. {
  15086. 135 : 135,
  15087. 89 : 89
  15088. }],
  15089. 183 : [function(e, t, n) {
  15090. function r(e) {
  15091. for (var t = c(e), n = t.length, r = n && e.length, l = !!r && s(r) && (o(e) || i(e)), p = -1, f = []; ++p < n;) {
  15092. var h = t[p]; (l && a(h, r) || u.call(e, h)) && f.push(h)
  15093. }
  15094. return f
  15095. }
  15096. var i = e(187),
  15097. o = e(188),
  15098. a = e(168),
  15099. s = e(172),
  15100. c = e(199),
  15101. l = Object.prototype,
  15102. u = l.hasOwnProperty;
  15103. t.exports = r
  15104. },
  15105. {
  15106. 168 : 168,
  15107. 172 : 172,
  15108. 187 : 187,
  15109. 188 : 188,
  15110. 199 : 199
  15111. }],
  15112. 184 : [function(e, t, n) {
  15113. function r(e) {
  15114. return i(e) ? e: Object(e)
  15115. }
  15116. var i = e(192);
  15117. t.exports = r
  15118. },
  15119. {
  15120. 192 : 192
  15121. }],
  15122. 185 : [function(e, t, n) {
  15123. function r(e) {
  15124. if (o(e)) return e;
  15125. var t = [];
  15126. return i(e).replace(a,
  15127. function(e, n, r, i) {
  15128. t.push(r ? i.replace(s, "$1") : n || e)
  15129. }),
  15130. t
  15131. }
  15132. var i = e(138),
  15133. o = e(188),
  15134. a = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,
  15135. s = /\\(\\)?/g;
  15136. t.exports = r
  15137. },
  15138. {
  15139. 138 : 138,
  15140. 188 : 188
  15141. }],
  15142. 186 : [function(e, t, n) {
  15143. function r(e) {
  15144. return e instanceof i ? e.clone() : new o(e.__wrapped__, e.__chain__, a(e.__actions__))
  15145. }
  15146. var i = e(94),
  15147. o = e(95),
  15148. a = e(97);
  15149. t.exports = r
  15150. },
  15151. {
  15152. 94 : 94,
  15153. 95 : 95,
  15154. 97 : 97
  15155. }],
  15156. 187 : [function(e, t, n) {
  15157. function r(e) {
  15158. return o(e) && i(e) && s.call(e, "callee") && !c.call(e, "callee")
  15159. }
  15160. var i = e(167),
  15161. o = e(173),
  15162. a = Object.prototype,
  15163. s = a.hasOwnProperty,
  15164. c = a.propertyIsEnumerable;
  15165. t.exports = r
  15166. },
  15167. {
  15168. 167 : 167,
  15169. 173 : 173
  15170. }],
  15171. 188 : [function(e, t, n) {
  15172. var r = e(165),
  15173. i = e(172),
  15174. o = e(173),
  15175. a = "[object Array]",
  15176. s = Object.prototype,
  15177. c = s.toString,
  15178. l = r(Array, "isArray"),
  15179. u = l ||
  15180. function(e) {
  15181. return o(e) && i(e.length) && c.call(e) == a
  15182. };
  15183. t.exports = u
  15184. },
  15185. {
  15186. 165 : 165,
  15187. 172 : 172,
  15188. 173 : 173
  15189. }],
  15190. 189 : [function(e, t, n) {
  15191. function r(e) {
  15192. return i(e) && s.call(e) == o
  15193. }
  15194. var i = e(192),
  15195. o = "[object Function]",
  15196. a = Object.prototype,
  15197. s = a.toString;
  15198. t.exports = r
  15199. },
  15200. {
  15201. 192 : 192
  15202. }],
  15203. 190 : [function(e, t, n) {
  15204. function r(e) {
  15205. return null != e && (i(e) ? u.test(c.call(e)) : o(e) && a.test(e))
  15206. }
  15207. var i = e(189),
  15208. o = e(173),
  15209. a = /^\[object .+?Constructor\]$/,
  15210. s = Object.prototype,
  15211. c = Function.prototype.toString,
  15212. l = s.hasOwnProperty,
  15213. u = RegExp("^" + c.call(l).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
  15214. t.exports = r
  15215. },
  15216. {
  15217. 173 : 173,
  15218. 189 : 189
  15219. }],
  15220. 191 : [function(e, t, n) {
  15221. function r(e) {
  15222. return "number" == typeof e || i(e) && s.call(e) == o
  15223. }
  15224. var i = e(173),
  15225. o = "[object Number]",
  15226. a = Object.prototype,
  15227. s = a.toString;
  15228. t.exports = r
  15229. },
  15230. {
  15231. 173 : 173
  15232. }],
  15233. 192 : [function(e, t, n) {
  15234. function r(e) {
  15235. var t = typeof e;
  15236. return !! e && ("object" == t || "function" == t)
  15237. }
  15238. t.exports = r
  15239. },
  15240. {}],
  15241. 193 : [function(e, t, n) {
  15242. function r(e) {
  15243. var t;
  15244. if (!a(e) || u.call(e) != s || o(e) || !l.call(e, "constructor") && (t = e.constructor, "function" == typeof t && !(t instanceof t))) return ! 1;
  15245. var n;
  15246. return i(e,
  15247. function(e, t) {
  15248. n = t
  15249. }),
  15250. void 0 === n || l.call(e, n)
  15251. }
  15252. var i = e(119),
  15253. o = e(187),
  15254. a = e(173),
  15255. s = "[object Object]",
  15256. c = Object.prototype,
  15257. l = c.hasOwnProperty,
  15258. u = c.toString;
  15259. t.exports = r
  15260. },
  15261. {
  15262. 119 : 119,
  15263. 173 : 173,
  15264. 187 : 187
  15265. }],
  15266. 194 : [function(e, t, n) {
  15267. function r(e) {
  15268. return "string" == typeof e || i(e) && s.call(e) == o
  15269. }
  15270. var i = e(173),
  15271. o = "[object String]",
  15272. a = Object.prototype,
  15273. s = a.toString;
  15274. t.exports = r
  15275. },
  15276. {
  15277. 173 : 173
  15278. }],
  15279. 195 : [function(e, t, n) {
  15280. function r(e) {
  15281. return o(e) && i(e.length) && !!N[P.call(e)]
  15282. }
  15283. var i = e(172),
  15284. o = e(173),
  15285. a = "[object Arguments]",
  15286. s = "[object Array]",
  15287. c = "[object Boolean]",
  15288. l = "[object Date]",
  15289. u = "[object Error]",
  15290. p = "[object Function]",
  15291. f = "[object Map]",
  15292. h = "[object Number]",
  15293. d = "[object Object]",
  15294. m = "[object RegExp]",
  15295. y = "[object Set]",
  15296. g = "[object String]",
  15297. v = "[object WeakMap]",
  15298. x = "[object ArrayBuffer]",
  15299. b = "[object Float32Array]",
  15300. E = "[object Float64Array]",
  15301. w = "[object Int8Array]",
  15302. A = "[object Int16Array]",
  15303. _ = "[object Int32Array]",
  15304. S = "[object Uint8Array]",
  15305. T = "[object Uint8ClampedArray]",
  15306. C = "[object Uint16Array]",
  15307. R = "[object Uint32Array]",
  15308. N = {};
  15309. N[b] = N[E] = N[w] = N[A] = N[_] = N[S] = N[T] = N[C] = N[R] = !0,
  15310. N[a] = N[s] = N[x] = N[c] = N[l] = N[u] = N[p] = N[f] = N[h] = N[d] = N[m] = N[y] = N[g] = N[v] = !1;
  15311. var M = Object.prototype,
  15312. P = M.toString;
  15313. t.exports = r
  15314. },
  15315. {
  15316. 172 : 172,
  15317. 173 : 173
  15318. }],
  15319. 196 : [function(e, t, n) {
  15320. function r(e) {
  15321. return i(e, o(e))
  15322. }
  15323. var i = e(108),
  15324. o = e(199);
  15325. t.exports = r
  15326. },
  15327. {
  15328. 108 : 108,
  15329. 199 : 199
  15330. }],
  15331. 197 : [function(e, t, n) {
  15332. var r = e(105),
  15333. i = e(106),
  15334. o = e(146),
  15335. a = o(function(e, t, n) {
  15336. return n ? r(e, t, n) : i(e, t)
  15337. });
  15338. t.exports = a
  15339. },
  15340. {
  15341. 105 : 105,
  15342. 106 : 106,
  15343. 146 : 146
  15344. }],
  15345. 198 : [function(e, t, n) {
  15346. var r = e(165),
  15347. i = e(167),
  15348. o = e(192),
  15349. a = e(183),
  15350. s = r(Object, "keys"),
  15351. c = s ?
  15352. function(e) {
  15353. var t = null == e ? void 0 : e.constructor;
  15354. return "function" == typeof t && t.prototype === e || "function" != typeof e && i(e) ? a(e) : o(e) ? s(e) : []
  15355. }: a;
  15356. t.exports = c
  15357. },
  15358. {
  15359. 165 : 165,
  15360. 167 : 167,
  15361. 183 : 183,
  15362. 192 : 192
  15363. }],
  15364. 199 : [function(e, t, n) {
  15365. function r(e) {
  15366. if (null == e) return [];
  15367. c(e) || (e = Object(e));
  15368. var t = e.length;
  15369. t = t && s(t) && (o(e) || i(e)) && t || 0;
  15370. for (var n = e.constructor,
  15371. r = -1,
  15372. l = "function" == typeof n && n.prototype === e,
  15373. p = Array(t), f = t > 0; ++r < t;) p[r] = r + "";
  15374. for (var h in e) f && a(h, t) || "constructor" == h && (l || !u.call(e, h)) || p.push(h);
  15375. return p
  15376. }
  15377. var i = e(187),
  15378. o = e(188),
  15379. a = e(168),
  15380. s = e(172),
  15381. c = e(192),
  15382. l = Object.prototype,
  15383. u = l.hasOwnProperty;
  15384. t.exports = r
  15385. },
  15386. {
  15387. 168 : 168,
  15388. 172 : 172,
  15389. 187 : 187,
  15390. 188 : 188,
  15391. 192 : 192
  15392. }],
  15393. 200 : [function(e, t, n) {
  15394. var r = e(130),
  15395. i = e(146),
  15396. o = i(r);
  15397. t.exports = o
  15398. },
  15399. {
  15400. 130 : 130,
  15401. 146 : 146
  15402. }],
  15403. 201 : [function(e, t, n) {
  15404. var r = e(101),
  15405. i = e(111),
  15406. o = e(117),
  15407. a = e(140),
  15408. s = e(199),
  15409. c = e(177),
  15410. l = e(178),
  15411. u = e(93),
  15412. p = u(function(e, t) {
  15413. if (null == e) return {};
  15414. if ("function" != typeof t[0]) {
  15415. var t = r(o(t), String);
  15416. return c(e, i(s(e), t))
  15417. }
  15418. var n = a(t[0], t[1], 3);
  15419. return l(e,
  15420. function(e, t, r) {
  15421. return ! n(e, t, r)
  15422. })
  15423. });
  15424. t.exports = p
  15425. },
  15426. {
  15427. 101 : 101,
  15428. 111 : 111,
  15429. 117 : 117,
  15430. 140 : 140,
  15431. 177 : 177,
  15432. 178 : 178,
  15433. 199 : 199,
  15434. 93 : 93
  15435. }],
  15436. 202 : [function(e, t, n) {
  15437. function r(e) {
  15438. e = o(e);
  15439. for (var t = -1,
  15440. n = i(e), r = n.length, a = Array(r); ++t < r;) {
  15441. var s = n[t];
  15442. a[t] = [s, e[s]]
  15443. }
  15444. return a
  15445. }
  15446. var i = e(198),
  15447. o = e(184);
  15448. t.exports = r
  15449. },
  15450. {
  15451. 184 : 184,
  15452. 198 : 198
  15453. }],
  15454. 203 : [function(e, t, n) {
  15455. var r = e(117),
  15456. i = e(140),
  15457. o = e(177),
  15458. a = e(178),
  15459. s = e(93),
  15460. c = s(function(e, t) {
  15461. return null == e ? {}: "function" == typeof t[0] ? a(e, i(t[0], t[1], 3)) : o(e, r(t))
  15462. });
  15463. t.exports = c
  15464. },
  15465. {
  15466. 117 : 117,
  15467. 140 : 140,
  15468. 177 : 177,
  15469. 178 : 178,
  15470. 93 : 93
  15471. }],
  15472. 204 : [function(e, t, n) {
  15473. function r(e) {
  15474. return i(e, o(e))
  15475. }
  15476. var i = e(139),
  15477. o = e(198);
  15478. t.exports = r
  15479. },
  15480. {
  15481. 139 : 139,
  15482. 198 : 198
  15483. }],
  15484. 205 : [function(e, t, n) {
  15485. function r(e) {
  15486. return e
  15487. }
  15488. t.exports = r
  15489. },
  15490. {}],
  15491. 206 : [function(e, t, n) {
  15492. function r() {}
  15493. t.exports = r
  15494. },
  15495. {}],
  15496. 207 : [function(e, t, n) {
  15497. function r(e) {
  15498. return a(e) ? i(e) : o(e)
  15499. }
  15500. var i = e(132),
  15501. o = e(133),
  15502. a = e(170);
  15503. t.exports = r
  15504. },
  15505. {
  15506. 132 : 132,
  15507. 133 : 133,
  15508. 170 : 170
  15509. }],
  15510. 208 : [function(e, t, n) {
  15511. t.exports = function(e, t, n) {
  15512. return 2 == arguments.length ? e.getAttribute(t) : null === n ? e.removeAttribute(t) : (e.setAttribute(t, n), e)
  15513. }
  15514. },
  15515. {}],
  15516. 209 : [function(e, t, n) {
  15517. t.exports = e(216)
  15518. },
  15519. {
  15520. 216 : 216
  15521. }],
  15522. 210 : [function(e, t, n) {
  15523. t.exports = function(e) {
  15524. for (var t; e.childNodes.length;) t = e.childNodes[0],
  15525. e.removeChild(t);
  15526. return e
  15527. }
  15528. },
  15529. {}],
  15530. 211 : [function(e, t, n) {
  15531. t.exports = e(219)
  15532. },
  15533. {
  15534. 219 : 219
  15535. }],
  15536. 212 : [function(e, t, n) {
  15537. t.exports = e(223)
  15538. },
  15539. {
  15540. 223 : 223
  15541. }],
  15542. 213 : [function(e, t, n) {
  15543. t.exports = e(220)
  15544. },
  15545. {
  15546. 220 : 220
  15547. }],
  15548. 214 : [function(e, t, n) {
  15549. t.exports = e(222)
  15550. },
  15551. {
  15552. 222 : 222
  15553. }],
  15554. 215 : [function(e, t, n) {
  15555. t.exports = function(e) {
  15556. e.parentNode && e.parentNode.removeChild(e)
  15557. }
  15558. },
  15559. {}],
  15560. 216 : [function(e, t, n) {
  15561. function r(e) {
  15562. if (!e || !e.nodeType) throw new Error("A DOM element reference is required");
  15563. this.el = e,
  15564. this.list = e.classList
  15565. }
  15566. try {
  15567. var i = e(217)
  15568. } catch(t) {
  15569. var i = e(217)
  15570. }
  15571. var o = /\s+/,
  15572. a = Object.prototype.toString;
  15573. t.exports = function(e) {
  15574. return new r(e)
  15575. },
  15576. r.prototype.add = function(e) {
  15577. if (this.list) return this.list.add(e),
  15578. this;
  15579. var t = this.array(),
  15580. n = i(t, e);
  15581. return~n || t.push(e),
  15582. this.el.className = t.join(" "),
  15583. this
  15584. },
  15585. r.prototype.remove = function(e) {
  15586. if ("[object RegExp]" == a.call(e)) return this.removeMatching(e);
  15587. if (this.list) return this.list.remove(e),
  15588. this;
  15589. var t = this.array(),
  15590. n = i(t, e);
  15591. return~n && t.splice(n, 1),
  15592. this.el.className = t.join(" "),
  15593. this
  15594. },
  15595. r.prototype.removeMatching = function(e) {
  15596. for (var t = this.array(), n = 0; n < t.length; n++) e.test(t[n]) && this.remove(t[n]);
  15597. return this
  15598. },
  15599. r.prototype.toggle = function(e, t) {
  15600. return this.list ? ("undefined" != typeof t ? t !== this.list.toggle(e, t) && this.list.toggle(e) : this.list.toggle(e), this) : ("undefined" != typeof t ? t ? this.add(e) : this.remove(e) : this.has(e) ? this.remove(e) : this.add(e), this)
  15601. },
  15602. r.prototype.array = function() {
  15603. var e = this.el.getAttribute("class") || "",
  15604. t = e.replace(/^\s+|\s+$/g, ""),
  15605. n = t.split(o);
  15606. return "" === n[0] && n.shift(),
  15607. n
  15608. },
  15609. r.prototype.has = r.prototype.contains = function(e) {
  15610. return this.list ? this.list.contains(e) : !!~i(this.array(), e)
  15611. }
  15612. },
  15613. {
  15614. 217 : 217
  15615. }],
  15616. 217 : [function(e, t, n) {
  15617. t.exports = function(e, t) {
  15618. if (e.indexOf) return e.indexOf(t);
  15619. for (var n = 0; n < e.length; ++n) if (e[n] === t) return n;
  15620. return - 1
  15621. }
  15622. },
  15623. {}],
  15624. 218 : [function(e, t, n) {
  15625. var r = e(221);
  15626. t.exports = function(e, t, n, i) {
  15627. for (e = n ? {
  15628. parentNode: e
  15629. }: e, i = i || document; (e = e.parentNode) && e !== document;) {
  15630. if (r(e, t)) return e;
  15631. if (e === i) return
  15632. }
  15633. }
  15634. },
  15635. {
  15636. 221 : 221
  15637. }],
  15638. 219 : [function(e, t, n) {
  15639. try {
  15640. var r = e(218)
  15641. } catch(t) {
  15642. var r = e(218)
  15643. }
  15644. try {
  15645. var i = e(220)
  15646. } catch(t) {
  15647. var i = e(220)
  15648. }
  15649. n.bind = function(e, t, n, o, a) {
  15650. return i.bind(e, n,
  15651. function(n) {
  15652. var i = n.target || n.srcElement;
  15653. n.delegateTarget = r(i, t, !0, e),
  15654. n.delegateTarget && o.call(e, n)
  15655. },
  15656. a)
  15657. },
  15658. n.unbind = function(e, t, n, r) {
  15659. i.unbind(e, t, n, r)
  15660. }
  15661. },
  15662. {
  15663. 218 : 218,
  15664. 220 : 220
  15665. }],
  15666. 220 : [function(e, t, n) {
  15667. var r = window.addEventListener ? "addEventListener": "attachEvent",
  15668. i = window.removeEventListener ? "removeEventListener": "detachEvent",
  15669. o = "addEventListener" !== r ? "on": "";
  15670. n.bind = function(e, t, n, i) {
  15671. return e[r](o + t, n, i || !1),
  15672. n
  15673. },
  15674. n.unbind = function(e, t, n, r) {
  15675. return e[i](o + t, n, r || !1),
  15676. n
  15677. }
  15678. },
  15679. {}],
  15680. 221 : [function(e, t, n) {
  15681. function r(e, t) {
  15682. if (!e || 1 !== e.nodeType) return ! 1;
  15683. if (a) return a.call(e, t);
  15684. for (var n = i.all(t, e.parentNode), r = 0; r < n.length; ++r) if (n[r] == e) return ! 0;
  15685. return ! 1
  15686. }
  15687. try {
  15688. var i = e(222)
  15689. } catch(t) {
  15690. var i = e(222)
  15691. }
  15692. var o = Element.prototype,
  15693. a = o.matches || o.webkitMatchesSelector || o.mozMatchesSelector || o.msMatchesSelector || o.oMatchesSelector;
  15694. t.exports = r
  15695. },
  15696. {
  15697. 222 : 222
  15698. }],
  15699. 222 : [function(e, t, n) {
  15700. function r(e, t) {
  15701. return t.querySelector(e)
  15702. }
  15703. n = t.exports = function(e, t) {
  15704. return t = t || document,
  15705. r(e, t)
  15706. },
  15707. n.all = function(e, t) {
  15708. return t = t || document,
  15709. t.querySelectorAll(e)
  15710. },
  15711. n.engine = function(e) {
  15712. if (!e.one) throw new Error(".one callback required");
  15713. if (!e.all) throw new Error(".all callback required");
  15714. return r = e.one,
  15715. n.all = e.all,
  15716. n
  15717. }
  15718. },
  15719. {}],
  15720. 223 : [function(e, t, n) {
  15721. function r(e, t) {
  15722. if ("string" != typeof e) throw new TypeError("String expected");
  15723. t || (t = document);
  15724. var n = /<([\w:]+)/.exec(e);
  15725. if (!n) return t.createTextNode(e);
  15726. e = e.replace(/^\s+|\s+$/g, "");
  15727. var r = n[1];
  15728. if ("body" == r) {
  15729. var i = t.createElement("html");
  15730. return i.innerHTML = e,
  15731. i.removeChild(i.lastChild)
  15732. }
  15733. var o = a[r] || a._default,
  15734. s = o[0],
  15735. c = o[1],
  15736. l = o[2],
  15737. i = t.createElement("div");
  15738. for (i.innerHTML = c + e + l; s--;) i = i.lastChild;
  15739. if (i.firstChild == i.lastChild) return i.removeChild(i.firstChild);
  15740. for (var u = t.createDocumentFragment(); i.firstChild;) u.appendChild(i.removeChild(i.firstChild));
  15741. return u
  15742. }
  15743. t.exports = r;
  15744. var i, o = !1;
  15745. "undefined" != typeof document && (i = document.createElement("div"), i.innerHTML = ' <link/><table></table><a href="/a">a</a><input type="checkbox"/>', o = !i.getElementsByTagName("link").length, i = void 0);
  15746. var a = {
  15747. legend: [1, "<fieldset>", "</fieldset>"],
  15748. tr: [2, "<table><tbody>", "</tbody></table>"],
  15749. col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
  15750. _default: o ? [1, "X<div>", "</div>"] : [0, "", ""]
  15751. };
  15752. a.td = a.th = [3, "<table><tbody><tr>", "</tr></tbody></table>"],
  15753. a.option = a.optgroup = [1, '<select multiple="multiple">', "</select>"],
  15754. a.thead = a.tbody = a.colgroup = a.caption = a.tfoot = [1, "<table>", "</table>"],
  15755. a.polyline = a.ellipse = a.polygon = a.circle = a.text = a.line = a.path = a.rect = a.g = [1, '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">', "</svg>"]
  15756. },
  15757. {}],
  15758. 224 : [function(e, t, n) {
  15759. t.exports = e(226),
  15760. t.exports.Collection = e(225)
  15761. },
  15762. {
  15763. 225 : 225,
  15764. 226 : 226
  15765. }],
  15766. 225 : [function(e, t, n) {
  15767. "use strict";
  15768. function r(e, t, n, r) {
  15769. var i = n.inverse;
  15770. return Object.defineProperty(e, "remove", {
  15771. value: function(e) {
  15772. var n = this.indexOf(e);
  15773. return n !== -1 && (this.splice(n, 1), t.unset(e, i, r)),
  15774. e
  15775. }
  15776. }),
  15777. Object.defineProperty(e, "contains", {
  15778. value: function(e) {
  15779. return this.indexOf(e) !== -1
  15780. }
  15781. }),
  15782. Object.defineProperty(e, "add", {
  15783. value: function(e) {
  15784. this.contains(e) || (this.push(e), t.set(e, i, r))
  15785. }
  15786. }),
  15787. Object.defineProperty(e, "__refs_collection", {
  15788. value: !0
  15789. }),
  15790. e
  15791. }
  15792. function i(e) {
  15793. return e.__refs_collection === !0
  15794. }
  15795. t.exports.extend = r,
  15796. t.exports.isExtended = i
  15797. },
  15798. {}],
  15799. 226 : [function(e, t, n) {
  15800. "use strict";
  15801. function r(e, t) {
  15802. return Object.prototype.hasOwnProperty.call(e, t.name || t)
  15803. }
  15804. function i(e, t, n) {
  15805. Object.defineProperty(n, t.name, {
  15806. enumerable: t.enumerable,
  15807. value: s.extend(n[t.name] || [], e, t, n)
  15808. })
  15809. }
  15810. function o(e, t, n) {
  15811. var r = t.inverse,
  15812. i = n[t.name];
  15813. Object.defineProperty(n, t.name, {
  15814. enumerable: t.enumerable,
  15815. get: function() {
  15816. return i
  15817. },
  15818. set: function(t) {
  15819. if (t !== i) {
  15820. var o = i;
  15821. i = null,
  15822. o && e.unset(o, r, n),
  15823. i = t,
  15824. e.set(i, r, n)
  15825. }
  15826. }
  15827. })
  15828. }
  15829. function a(e, t) {
  15830. return this instanceof a ? (e.inverse = t, t.inverse = e, this.props = {},
  15831. this.props[e.name] = e, void(this.props[t.name] = t)) : new a(e, t)
  15832. }
  15833. var s = e(225);
  15834. a.prototype.bind = function(e, t) {
  15835. if ("string" == typeof t) {
  15836. if (!this.props[t]) throw new Error("no property <" + t + "> in ref");
  15837. t = this.props[t]
  15838. }
  15839. t.collection ? i(this, t, e) : o(this, t, e)
  15840. },
  15841. a.prototype.ensureRefsCollection = function(e, t) {
  15842. var n = e[t.name];
  15843. return s.isExtended(n) || i(this, t, e),
  15844. n
  15845. },
  15846. a.prototype.ensureBound = function(e, t) {
  15847. r(e, t) || this.bind(e, t)
  15848. },
  15849. a.prototype.unset = function(e, t, n) {
  15850. e && (this.ensureBound(e, t), t.collection ? this.ensureRefsCollection(e, t).remove(n) : e[t.name] = void 0)
  15851. },
  15852. a.prototype.set = function(e, t, n) {
  15853. e && (this.ensureBound(e, t), t.collection ? this.ensureRefsCollection(e, t).add(n) : e[t.name] = n)
  15854. },
  15855. t.exports = a
  15856. },
  15857. {
  15858. 225 : 225
  15859. }]
  15860. },
  15861. {},
  15862. [1])(1)
  15863. });