12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116 |
- module.exports =
- /******/ (function(modules) { // webpackBootstrap
- /******/ // The module cache
- /******/ var installedModules = {};
- /******/
- /******/ // The require function
- /******/ function __webpack_require__(moduleId) {
- /******/
- /******/ // Check if module is in cache
- /******/ if(installedModules[moduleId]) {
- /******/ return installedModules[moduleId].exports;
- /******/ }
- /******/ // Create a new module (and put it into the cache)
- /******/ var module = installedModules[moduleId] = {
- /******/ i: moduleId,
- /******/ l: false,
- /******/ exports: {}
- /******/ };
- /******/
- /******/ // Execute the module function
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
- /******/
- /******/ // Flag the module as loaded
- /******/ module.l = true;
- /******/
- /******/ // Return the exports of the module
- /******/ return module.exports;
- /******/ }
- /******/
- /******/
- /******/ // expose the modules object (__webpack_modules__)
- /******/ __webpack_require__.m = modules;
- /******/
- /******/ // expose the module cache
- /******/ __webpack_require__.c = installedModules;
- /******/
- /******/ // define getter function for harmony exports
- /******/ __webpack_require__.d = function(exports, name, getter) {
- /******/ if(!__webpack_require__.o(exports, name)) {
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
- /******/ }
- /******/ };
- /******/
- /******/ // define __esModule on exports
- /******/ __webpack_require__.r = function(exports) {
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
- /******/ }
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
- /******/ };
- /******/
- /******/ // create a fake namespace object
- /******/ // mode & 1: value is a module id, require it
- /******/ // mode & 2: merge all properties of value into the ns
- /******/ // mode & 4: return value when already ns object
- /******/ // mode & 8|1: behave like require
- /******/ __webpack_require__.t = function(value, mode) {
- /******/ if(mode & 1) value = __webpack_require__(value);
- /******/ if(mode & 8) return value;
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
- /******/ var ns = Object.create(null);
- /******/ __webpack_require__.r(ns);
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
- /******/ return ns;
- /******/ };
- /******/
- /******/ // getDefaultExport function for compatibility with non-harmony modules
- /******/ __webpack_require__.n = function(module) {
- /******/ var getter = module && module.__esModule ?
- /******/ function getDefault() { return module['default']; } :
- /******/ function getModuleExports() { return module; };
- /******/ __webpack_require__.d(getter, 'a', getter);
- /******/ return getter;
- /******/ };
- /******/
- /******/ // Object.prototype.hasOwnProperty.call
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
- /******/
- /******/ // __webpack_public_path__
- /******/ __webpack_require__.p = "";
- /******/
- /******/
- /******/ // Load entry module and return exports
- /******/ return __webpack_require__(__webpack_require__.s = "fb15");
- /******/ })
- /************************************************************************/
- /******/ ({
- /***/ "014b":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // ECMAScript 6 symbols shim
- var global = __webpack_require__("e53d");
- var has = __webpack_require__("07e3");
- var DESCRIPTORS = __webpack_require__("8e60");
- var $export = __webpack_require__("63b6");
- var redefine = __webpack_require__("9138");
- var META = __webpack_require__("ebfd").KEY;
- var $fails = __webpack_require__("294c");
- var shared = __webpack_require__("dbdb");
- var setToStringTag = __webpack_require__("45f2");
- var uid = __webpack_require__("62a0");
- var wks = __webpack_require__("5168");
- var wksExt = __webpack_require__("ccb9");
- var wksDefine = __webpack_require__("6718");
- var enumKeys = __webpack_require__("47ee");
- var isArray = __webpack_require__("9003");
- var anObject = __webpack_require__("e4ae");
- var isObject = __webpack_require__("f772");
- var toIObject = __webpack_require__("36c3");
- var toPrimitive = __webpack_require__("1bc3");
- var createDesc = __webpack_require__("aebd");
- var _create = __webpack_require__("a159");
- var gOPNExt = __webpack_require__("0395");
- var $GOPD = __webpack_require__("bf0b");
- var $DP = __webpack_require__("d9f6");
- var $keys = __webpack_require__("c3a1");
- var gOPD = $GOPD.f;
- var dP = $DP.f;
- var gOPN = gOPNExt.f;
- var $Symbol = global.Symbol;
- var $JSON = global.JSON;
- var _stringify = $JSON && $JSON.stringify;
- var PROTOTYPE = 'prototype';
- var HIDDEN = wks('_hidden');
- var TO_PRIMITIVE = wks('toPrimitive');
- var isEnum = {}.propertyIsEnumerable;
- var SymbolRegistry = shared('symbol-registry');
- var AllSymbols = shared('symbols');
- var OPSymbols = shared('op-symbols');
- var ObjectProto = Object[PROTOTYPE];
- var USE_NATIVE = typeof $Symbol == 'function';
- var QObject = global.QObject;
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
- var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
- var setSymbolDesc = DESCRIPTORS && $fails(function () {
- return _create(dP({}, 'a', {
- get: function () { return dP(this, 'a', { value: 7 }).a; }
- })).a != 7;
- }) ? function (it, key, D) {
- var protoDesc = gOPD(ObjectProto, key);
- if (protoDesc) delete ObjectProto[key];
- dP(it, key, D);
- if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
- } : dP;
- var wrap = function (tag) {
- var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
- sym._k = tag;
- return sym;
- };
- var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
- return typeof it == 'symbol';
- } : function (it) {
- return it instanceof $Symbol;
- };
- var $defineProperty = function defineProperty(it, key, D) {
- if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
- anObject(it);
- key = toPrimitive(key, true);
- anObject(D);
- if (has(AllSymbols, key)) {
- if (!D.enumerable) {
- if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
- it[HIDDEN][key] = true;
- } else {
- if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
- D = _create(D, { enumerable: createDesc(0, false) });
- } return setSymbolDesc(it, key, D);
- } return dP(it, key, D);
- };
- var $defineProperties = function defineProperties(it, P) {
- anObject(it);
- var keys = enumKeys(P = toIObject(P));
- var i = 0;
- var l = keys.length;
- var key;
- while (l > i) $defineProperty(it, key = keys[i++], P[key]);
- return it;
- };
- var $create = function create(it, P) {
- return P === undefined ? _create(it) : $defineProperties(_create(it), P);
- };
- var $propertyIsEnumerable = function propertyIsEnumerable(key) {
- var E = isEnum.call(this, key = toPrimitive(key, true));
- if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
- return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
- };
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
- it = toIObject(it);
- key = toPrimitive(key, true);
- if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
- var D = gOPD(it, key);
- if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
- return D;
- };
- var $getOwnPropertyNames = function getOwnPropertyNames(it) {
- var names = gOPN(toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
- } return result;
- };
- var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
- var IS_OP = it === ObjectProto;
- var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
- var result = [];
- var i = 0;
- var key;
- while (names.length > i) {
- if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
- } return result;
- };
- // 19.4.1.1 Symbol([description])
- if (!USE_NATIVE) {
- $Symbol = function Symbol() {
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
- var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
- var $set = function (value) {
- if (this === ObjectProto) $set.call(OPSymbols, value);
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
- setSymbolDesc(this, tag, createDesc(1, value));
- };
- if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
- return wrap(tag);
- };
- redefine($Symbol[PROTOTYPE], 'toString', function toString() {
- return this._k;
- });
- $GOPD.f = $getOwnPropertyDescriptor;
- $DP.f = $defineProperty;
- __webpack_require__("6abf").f = gOPNExt.f = $getOwnPropertyNames;
- __webpack_require__("355d").f = $propertyIsEnumerable;
- __webpack_require__("9aa9").f = $getOwnPropertySymbols;
- if (DESCRIPTORS && !__webpack_require__("b8e3")) {
- redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
- }
- wksExt.f = function (name) {
- return wrap(wks(name));
- };
- }
- $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
- for (var es6Symbols = (
- // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
- 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
- ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
- for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
- $export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
- // 19.4.2.1 Symbol.for(key)
- 'for': function (key) {
- return has(SymbolRegistry, key += '')
- ? SymbolRegistry[key]
- : SymbolRegistry[key] = $Symbol(key);
- },
- // 19.4.2.5 Symbol.keyFor(sym)
- keyFor: function keyFor(sym) {
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
- for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
- },
- useSetter: function () { setter = true; },
- useSimple: function () { setter = false; }
- });
- $export($export.S + $export.F * !USE_NATIVE, 'Object', {
- // 19.1.2.2 Object.create(O [, Properties])
- create: $create,
- // 19.1.2.4 Object.defineProperty(O, P, Attributes)
- defineProperty: $defineProperty,
- // 19.1.2.3 Object.defineProperties(O, Properties)
- defineProperties: $defineProperties,
- // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
- // 19.1.2.7 Object.getOwnPropertyNames(O)
- getOwnPropertyNames: $getOwnPropertyNames,
- // 19.1.2.8 Object.getOwnPropertySymbols(O)
- getOwnPropertySymbols: $getOwnPropertySymbols
- });
- // 24.3.2 JSON.stringify(value [, replacer [, space]])
- $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
- var S = $Symbol();
- // MS Edge converts symbol values to JSON as {}
- // WebKit converts symbol values to JSON as null
- // V8 throws on boxed symbols
- return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
- })), 'JSON', {
- stringify: function stringify(it) {
- var args = [it];
- var i = 1;
- var replacer, $replacer;
- while (arguments.length > i) args.push(arguments[i++]);
- $replacer = replacer = args[1];
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
- if (!isArray(replacer)) replacer = function (key, value) {
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
- if (!isSymbol(value)) return value;
- };
- args[1] = replacer;
- return _stringify.apply($JSON, args);
- }
- });
- // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
- $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__("35e8")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
- // 19.4.3.5 Symbol.prototype[@@toStringTag]
- setToStringTag($Symbol, 'Symbol');
- // 20.2.1.9 Math[@@toStringTag]
- setToStringTag(Math, 'Math', true);
- // 24.3.3 JSON[@@toStringTag]
- setToStringTag(global.JSON, 'JSON', true);
- /***/ }),
- /***/ "01f9":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var LIBRARY = __webpack_require__("2d00");
- var $export = __webpack_require__("5ca1");
- var redefine = __webpack_require__("2aba");
- var hide = __webpack_require__("32e9");
- var Iterators = __webpack_require__("84f2");
- var $iterCreate = __webpack_require__("41a0");
- var setToStringTag = __webpack_require__("7f20");
- var getPrototypeOf = __webpack_require__("38fd");
- var ITERATOR = __webpack_require__("2b4c")('iterator');
- var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
- var FF_ITERATOR = '@@iterator';
- var KEYS = 'keys';
- var VALUES = 'values';
- var returnThis = function () { return this; };
- module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
- $iterCreate(Constructor, NAME, next);
- var getMethod = function (kind) {
- if (!BUGGY && kind in proto) return proto[kind];
- switch (kind) {
- case KEYS: return function keys() { return new Constructor(this, kind); };
- case VALUES: return function values() { return new Constructor(this, kind); };
- } return function entries() { return new Constructor(this, kind); };
- };
- var TAG = NAME + ' Iterator';
- var DEF_VALUES = DEFAULT == VALUES;
- var VALUES_BUG = false;
- var proto = Base.prototype;
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
- var $default = $native || getMethod(DEFAULT);
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
- var methods, key, IteratorPrototype;
- // Fix native
- if ($anyNative) {
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
- // Set @@toStringTag to native iterators
- setToStringTag(IteratorPrototype, TAG, true);
- // fix for some old engines
- if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
- }
- }
- // fix Array#{values, @@iterator}.name in V8 / FF
- if (DEF_VALUES && $native && $native.name !== VALUES) {
- VALUES_BUG = true;
- $default = function values() { return $native.call(this); };
- }
- // Define iterator
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
- hide(proto, ITERATOR, $default);
- }
- // Plug for library
- Iterators[NAME] = $default;
- Iterators[TAG] = returnThis;
- if (DEFAULT) {
- methods = {
- values: DEF_VALUES ? $default : getMethod(VALUES),
- keys: IS_SET ? $default : getMethod(KEYS),
- entries: $entries
- };
- if (FORCED) for (key in methods) {
- if (!(key in proto)) redefine(proto, key, methods[key]);
- } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
- }
- return methods;
- };
- /***/ }),
- /***/ "02f4":
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__("4588");
- var defined = __webpack_require__("be13");
- // true -> String#at
- // false -> String#codePointAt
- module.exports = function (TO_STRING) {
- return function (that, pos) {
- var s = String(defined(that));
- var i = toInteger(pos);
- var l = s.length;
- var a, b;
- if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
- a = s.charCodeAt(i);
- return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
- ? TO_STRING ? s.charAt(i) : a
- : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
- };
- };
- /***/ }),
- /***/ "0390":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var at = __webpack_require__("02f4")(true);
- // `AdvanceStringIndex` abstract operation
- // https://tc39.github.io/ecma262/#sec-advancestringindex
- module.exports = function (S, index, unicode) {
- return index + (unicode ? at(S, index).length : 1);
- };
- /***/ }),
- /***/ "0395":
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
- var toIObject = __webpack_require__("36c3");
- var gOPN = __webpack_require__("6abf").f;
- var toString = {}.toString;
- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
- ? Object.getOwnPropertyNames(window) : [];
- var getWindowNames = function (it) {
- try {
- return gOPN(it);
- } catch (e) {
- return windowNames.slice();
- }
- };
- module.exports.f = function getOwnPropertyNames(it) {
- return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
- };
- /***/ }),
- /***/ "07e3":
- /***/ (function(module, exports) {
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
- /***/ }),
- /***/ "0bfb":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // 21.2.5.3 get RegExp.prototype.flags
- var anObject = __webpack_require__("cb7c");
- module.exports = function () {
- var that = anObject(this);
- var result = '';
- if (that.global) result += 'g';
- if (that.ignoreCase) result += 'i';
- if (that.multiline) result += 'm';
- if (that.unicode) result += 'u';
- if (that.sticky) result += 'y';
- return result;
- };
- /***/ }),
- /***/ "0d58":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__("ce10");
- var enumBugKeys = __webpack_require__("e11e");
- module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
- };
- /***/ }),
- /***/ "0fc9":
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__("3a38");
- var max = Math.max;
- var min = Math.min;
- module.exports = function (index, length) {
- index = toInteger(index);
- return index < 0 ? max(index + length, 0) : min(index, length);
- };
- /***/ }),
- /***/ "11e9":
- /***/ (function(module, exports, __webpack_require__) {
- var pIE = __webpack_require__("52a7");
- var createDesc = __webpack_require__("4630");
- var toIObject = __webpack_require__("6821");
- var toPrimitive = __webpack_require__("6a99");
- var has = __webpack_require__("69a8");
- var IE8_DOM_DEFINE = __webpack_require__("c69a");
- var gOPD = Object.getOwnPropertyDescriptor;
- exports.f = __webpack_require__("9e1e") ? gOPD : function getOwnPropertyDescriptor(O, P) {
- O = toIObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE) try {
- return gOPD(O, P);
- } catch (e) { /* empty */ }
- if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
- };
- /***/ }),
- /***/ "1495":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("86cc");
- var anObject = __webpack_require__("cb7c");
- var getKeys = __webpack_require__("0d58");
- module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
- return O;
- };
- /***/ }),
- /***/ "1691":
- /***/ (function(module, exports) {
- // IE 8- don't enum bug keys
- module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
- ).split(',');
- /***/ }),
- /***/ "1bc3":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.1 ToPrimitive(input [, PreferredType])
- var isObject = __webpack_require__("f772");
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
- // and the second argument - flag - preferred type is a string
- module.exports = function (it, S) {
- if (!isObject(it)) return it;
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- throw TypeError("Can't convert object to primitive value");
- };
- /***/ }),
- /***/ "1ec9":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("f772");
- var document = __webpack_require__("e53d").document;
- // typeof document.createElement is 'object' in old IE
- var is = isObject(document) && isObject(document.createElement);
- module.exports = function (it) {
- return is ? document.createElement(it) : {};
- };
- /***/ }),
- /***/ "214f":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- __webpack_require__("b0c5");
- var redefine = __webpack_require__("2aba");
- var hide = __webpack_require__("32e9");
- var fails = __webpack_require__("79e5");
- var defined = __webpack_require__("be13");
- var wks = __webpack_require__("2b4c");
- var regexpExec = __webpack_require__("520a");
- var SPECIES = wks('species');
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
- // #replace needs built-in support for named groups.
- // #match works fine because it just return the exec results, even if it has
- // a "grops" property.
- var re = /./;
- re.exec = function () {
- var result = [];
- result.groups = { a: '7' };
- return result;
- };
- return ''.replace(re, '$<a>') !== '7';
- });
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = (function () {
- // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
- var re = /(?:)/;
- var originalExec = re.exec;
- re.exec = function () { return originalExec.apply(this, arguments); };
- var result = 'ab'.split(re);
- return result.length === 2 && result[0] === 'a' && result[1] === 'b';
- })();
- module.exports = function (KEY, length, exec) {
- var SYMBOL = wks(KEY);
- var DELEGATES_TO_SYMBOL = !fails(function () {
- // String methods call symbol-named RegEp methods
- var O = {};
- O[SYMBOL] = function () { return 7; };
- return ''[KEY](O) != 7;
- });
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL ? !fails(function () {
- // Symbol-named RegExp methods call .exec
- var execCalled = false;
- var re = /a/;
- re.exec = function () { execCalled = true; return null; };
- if (KEY === 'split') {
- // RegExp[@@split] doesn't call the regex's exec method, but first creates
- // a new one. We need to return the patched regex when creating the new one.
- re.constructor = {};
- re.constructor[SPECIES] = function () { return re; };
- }
- re[SYMBOL]('');
- return !execCalled;
- }) : undefined;
- if (
- !DELEGATES_TO_SYMBOL ||
- !DELEGATES_TO_EXEC ||
- (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
- (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
- ) {
- var nativeRegExpMethod = /./[SYMBOL];
- var fns = exec(
- defined,
- SYMBOL,
- ''[KEY],
- function maybeCallNative(nativeMethod, regexp, str, arg2, forceStringMethod) {
- if (regexp.exec === regexpExec) {
- if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
- // The native String method already delegates to @@method (this
- // polyfilled function), leasing to infinite recursion.
- // We avoid it by directly calling the native @@method method.
- return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
- }
- return { done: true, value: nativeMethod.call(str, regexp, arg2) };
- }
- return { done: false };
- }
- );
- var strfn = fns[0];
- var rxfn = fns[1];
- redefine(String.prototype, KEY, strfn);
- hide(RegExp.prototype, SYMBOL, length == 2
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
- ? function (string, arg) { return rxfn.call(string, this, arg); }
- // 21.2.5.6 RegExp.prototype[@@match](string)
- // 21.2.5.9 RegExp.prototype[@@search](string)
- : function (string) { return rxfn.call(string, this); }
- );
- }
- };
- /***/ }),
- /***/ "230e":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("d3f4");
- var document = __webpack_require__("7726").document;
- // typeof document.createElement is 'object' in old IE
- var is = isObject(document) && isObject(document.createElement);
- module.exports = function (it) {
- return is ? document.createElement(it) : {};
- };
- /***/ }),
- /***/ "2350":
- /***/ (function(module, exports) {
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- */
- // css base code, injected by the css-loader
- module.exports = function(useSourceMap) {
- var list = [];
- // return the list of modules as css string
- list.toString = function toString() {
- return this.map(function (item) {
- var content = cssWithMappingToString(item, useSourceMap);
- if(item[2]) {
- return "@media " + item[2] + "{" + content + "}";
- } else {
- return content;
- }
- }).join("");
- };
- // import a list of modules into the list
- list.i = function(modules, mediaQuery) {
- if(typeof modules === "string")
- modules = [[null, modules, ""]];
- var alreadyImportedModules = {};
- for(var i = 0; i < this.length; i++) {
- var id = this[i][0];
- if(typeof id === "number")
- alreadyImportedModules[id] = true;
- }
- for(i = 0; i < modules.length; i++) {
- var item = modules[i];
- // skip already imported module
- // this implementation is not 100% perfect for weird media query combinations
- // when a module is imported multiple times with different media queries.
- // I hope this will never occur (Hey this way we have smaller bundles)
- if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
- if(mediaQuery && !item[2]) {
- item[2] = mediaQuery;
- } else if(mediaQuery) {
- item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
- }
- list.push(item);
- }
- }
- };
- return list;
- };
- function cssWithMappingToString(item, useSourceMap) {
- var content = item[1] || '';
- var cssMapping = item[3];
- if (!cssMapping) {
- return content;
- }
- if (useSourceMap && typeof btoa === 'function') {
- var sourceMapping = toComment(cssMapping);
- var sourceURLs = cssMapping.sources.map(function (source) {
- return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
- });
- return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
- }
- return [content].join('\n');
- }
- // Adapted from convert-source-map (MIT)
- function toComment(sourceMap) {
- // eslint-disable-next-line no-undef
- var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
- var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
- return '/*# ' + data + ' */';
- }
- /***/ }),
- /***/ "23c6":
- /***/ (function(module, exports, __webpack_require__) {
- // getting tag from 19.1.3.6 Object.prototype.toString()
- var cof = __webpack_require__("2d95");
- var TAG = __webpack_require__("2b4c")('toStringTag');
- // ES3 wrong here
- var ARG = cof(function () { return arguments; }()) == 'Arguments';
- // fallback for IE11 Script Access Denied error
- var tryGet = function (it, key) {
- try {
- return it[key];
- } catch (e) { /* empty */ }
- };
- module.exports = function (it) {
- var O, T, B;
- return it === undefined ? 'Undefined' : it === null ? 'Null'
- // @@toStringTag case
- : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
- // builtinTag case
- : ARG ? cof(O)
- // ES3 arguments fallback
- : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
- };
- /***/ }),
- /***/ "241e":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.13 ToObject(argument)
- var defined = __webpack_require__("25eb");
- module.exports = function (it) {
- return Object(defined(it));
- };
- /***/ }),
- /***/ "25eb":
- /***/ (function(module, exports) {
- // 7.2.1 RequireObjectCoercible(argument)
- module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
- };
- /***/ }),
- /***/ "268f":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("fde4");
- /***/ }),
- /***/ "28a5":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var isRegExp = __webpack_require__("aae3");
- var anObject = __webpack_require__("cb7c");
- var speciesConstructor = __webpack_require__("ebd6");
- var advanceStringIndex = __webpack_require__("0390");
- var toLength = __webpack_require__("9def");
- var callRegExpExec = __webpack_require__("5f1b");
- var regexpExec = __webpack_require__("520a");
- var fails = __webpack_require__("79e5");
- var $min = Math.min;
- var $push = [].push;
- var $SPLIT = 'split';
- var LENGTH = 'length';
- var LAST_INDEX = 'lastIndex';
- var MAX_UINT32 = 0xffffffff;
- // babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
- var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
- // @@split logic
- __webpack_require__("214f")('split', 2, function (defined, SPLIT, $split, maybeCallNative) {
- var internalSplit;
- if (
- 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
- 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
- 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
- '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
- '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
- ''[$SPLIT](/.?/)[LENGTH]
- ) {
- // based on es5-shim implementation, need to rework it
- internalSplit = function (separator, limit) {
- var string = String(this);
- if (separator === undefined && limit === 0) return [];
- // If `separator` is not a regex, use native split
- if (!isRegExp(separator)) return $split.call(string, separator, limit);
- var output = [];
- var flags = (separator.ignoreCase ? 'i' : '') +
- (separator.multiline ? 'm' : '') +
- (separator.unicode ? 'u' : '') +
- (separator.sticky ? 'y' : '');
- var lastLastIndex = 0;
- var splitLimit = limit === undefined ? MAX_UINT32 : limit >>> 0;
- // Make `global` and avoid `lastIndex` issues by working with a copy
- var separatorCopy = new RegExp(separator.source, flags + 'g');
- var match, lastIndex, lastLength;
- while (match = regexpExec.call(separatorCopy, string)) {
- lastIndex = separatorCopy[LAST_INDEX];
- if (lastIndex > lastLastIndex) {
- output.push(string.slice(lastLastIndex, match.index));
- if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
- lastLength = match[0][LENGTH];
- lastLastIndex = lastIndex;
- if (output[LENGTH] >= splitLimit) break;
- }
- if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
- }
- if (lastLastIndex === string[LENGTH]) {
- if (lastLength || !separatorCopy.test('')) output.push('');
- } else output.push(string.slice(lastLastIndex));
- return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
- };
- // Chakra, V8
- } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
- internalSplit = function (separator, limit) {
- return separator === undefined && limit === 0 ? [] : $split.call(this, separator, limit);
- };
- } else {
- internalSplit = $split;
- }
- return [
- // `String.prototype.split` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.split
- function split(separator, limit) {
- var O = defined(this);
- var splitter = separator == undefined ? undefined : separator[SPLIT];
- return splitter !== undefined
- ? splitter.call(separator, O, limit)
- : internalSplit.call(String(O), separator, limit);
- },
- // `RegExp.prototype[@@split]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split
- //
- // NOTE: This cannot be properly polyfilled in engines that don't support
- // the 'y' flag.
- function (regexp, limit) {
- var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== $split);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- var C = speciesConstructor(rx, RegExp);
- var unicodeMatching = rx.unicode;
- var flags = (rx.ignoreCase ? 'i' : '') +
- (rx.multiline ? 'm' : '') +
- (rx.unicode ? 'u' : '') +
- (SUPPORTS_Y ? 'y' : 'g');
- // ^(? + rx + ) is needed, in combination with some S slicing, to
- // simulate the 'y' flag.
- var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);
- var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
- if (lim === 0) return [];
- if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
- var p = 0;
- var q = 0;
- var A = [];
- while (q < S.length) {
- splitter.lastIndex = SUPPORTS_Y ? q : 0;
- var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));
- var e;
- if (
- z === null ||
- (e = $min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p
- ) {
- q = advanceStringIndex(S, q, unicodeMatching);
- } else {
- A.push(S.slice(p, q));
- if (A.length === lim) return A;
- for (var i = 1; i <= z.length - 1; i++) {
- A.push(z[i]);
- if (A.length === lim) return A;
- }
- q = p = e;
- }
- }
- A.push(S.slice(p));
- return A;
- }
- ];
- });
- /***/ }),
- /***/ "294c":
- /***/ (function(module, exports) {
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
- };
- /***/ }),
- /***/ "2aba":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("7726");
- var hide = __webpack_require__("32e9");
- var has = __webpack_require__("69a8");
- var SRC = __webpack_require__("ca5a")('src');
- var $toString = __webpack_require__("fa5b");
- var TO_STRING = 'toString';
- var TPL = ('' + $toString).split(TO_STRING);
- __webpack_require__("8378").inspectSource = function (it) {
- return $toString.call(it);
- };
- (module.exports = function (O, key, val, safe) {
- var isFunction = typeof val == 'function';
- if (isFunction) has(val, 'name') || hide(val, 'name', key);
- if (O[key] === val) return;
- if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
- if (O === global) {
- O[key] = val;
- } else if (!safe) {
- delete O[key];
- hide(O, key, val);
- } else if (O[key]) {
- O[key] = val;
- } else {
- hide(O, key, val);
- }
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
- })(Function.prototype, TO_STRING, function toString() {
- return typeof this == 'function' && this[SRC] || $toString.call(this);
- });
- /***/ }),
- /***/ "2aeb":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- var anObject = __webpack_require__("cb7c");
- var dPs = __webpack_require__("1495");
- var enumBugKeys = __webpack_require__("e11e");
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
- var Empty = function () { /* empty */ };
- var PROTOTYPE = 'prototype';
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
- var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = __webpack_require__("230e")('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- __webpack_require__("fab2").appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
- return createDict();
- };
- module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE] = anObject(O);
- result = new Empty();
- Empty[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
- };
- /***/ }),
- /***/ "2b4c":
- /***/ (function(module, exports, __webpack_require__) {
- var store = __webpack_require__("5537")('wks');
- var uid = __webpack_require__("ca5a");
- var Symbol = __webpack_require__("7726").Symbol;
- var USE_SYMBOL = typeof Symbol == 'function';
- var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
- };
- $exports.store = store;
- /***/ }),
- /***/ "2d00":
- /***/ (function(module, exports) {
- module.exports = false;
- /***/ }),
- /***/ "2d95":
- /***/ (function(module, exports) {
- var toString = {}.toString;
- module.exports = function (it) {
- return toString.call(it).slice(8, -1);
- };
- /***/ }),
- /***/ "32a6":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 Object.keys(O)
- var toObject = __webpack_require__("241e");
- var $keys = __webpack_require__("c3a1");
- __webpack_require__("ce7e")('keys', function () {
- return function keys(it) {
- return $keys(toObject(it));
- };
- });
- /***/ }),
- /***/ "32e9":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("86cc");
- var createDesc = __webpack_require__("4630");
- module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
- /***/ }),
- /***/ "32fc":
- /***/ (function(module, exports, __webpack_require__) {
- var document = __webpack_require__("e53d").document;
- module.exports = document && document.documentElement;
- /***/ }),
- /***/ "335c":
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__("6b4c");
- // eslint-disable-next-line no-prototype-builtins
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
- };
- /***/ }),
- /***/ "355d":
- /***/ (function(module, exports) {
- exports.f = {}.propertyIsEnumerable;
- /***/ }),
- /***/ "35e8":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("d9f6");
- var createDesc = __webpack_require__("aebd");
- module.exports = __webpack_require__("8e60") ? function (object, key, value) {
- return dP.f(object, key, createDesc(1, value));
- } : function (object, key, value) {
- object[key] = value;
- return object;
- };
- /***/ }),
- /***/ "36bd":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
- var toObject = __webpack_require__("4bf8");
- var toAbsoluteIndex = __webpack_require__("77f1");
- var toLength = __webpack_require__("9def");
- module.exports = function fill(value /* , start = 0, end = @length */) {
- var O = toObject(this);
- var length = toLength(O.length);
- var aLen = arguments.length;
- var index = toAbsoluteIndex(aLen > 1 ? arguments[1] : undefined, length);
- var end = aLen > 2 ? arguments[2] : undefined;
- var endPos = end === undefined ? length : toAbsoluteIndex(end, length);
- while (endPos > index) O[index++] = value;
- return O;
- };
- /***/ }),
- /***/ "36c3":
- /***/ (function(module, exports, __webpack_require__) {
- // to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__("335c");
- var defined = __webpack_require__("25eb");
- module.exports = function (it) {
- return IObject(defined(it));
- };
- /***/ }),
- /***/ "382e":
- /***/ (function(module, exports, __webpack_require__) {
- exports = module.exports = __webpack_require__("2350")(false);
- // imports
- // module
- exports.push([module.i, ".alt-grid-container{position:relative}.alt-grid-container .alt-grid-item{position:absolute;background:grey}.alt-grid-container .alt-grid-item.can-drag{cursor:move}.alt-grid-container.alt-grid-container-operating .alt-grid-item{-webkit-transition-duration:.3s;transition-duration:.3s}.alt-grid-container.alt-grid-container-operating .alt-grid-item.operated-item{-webkit-transition-duration:.1s;transition-duration:.1s}.alt-grid-container .alt-grid-item:hover .alt-grid-item-resize-handler{display:block}.alt-grid-container .alt-grid-item-resize-handler{display:none;position:absolute;right:1px;bottom:1px;cursor:se-resize}.alt-grid-container .alt-g-i-r-h-default-style{width:0;height:0;border-top:5px solid transparent;border-left:5px solid transparent;border-right:5px solid #000;border-bottom:5px solid #000}.alt-grid-item-drag-placeholder{position:absolute;width:0;height:0;background:red;visibility:hidden}.alt-grid-container-operating .alt-grid-item-drag-placeholder{visibility:visible}.alt-grid-container-operating{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.alt-grid-container-operating .mask{width:100%;height:100%;position:absolute;z-index:2}.alt-grid-container-operating.alt-move .mask{cursor:move}.alt-grid-container-operating.alt-resize .mask{cursor:se-resize}", ""]);
- // exports
- /***/ }),
- /***/ "3846":
- /***/ (function(module, exports, __webpack_require__) {
- // 21.2.5.3 get RegExp.prototype.flags()
- if (__webpack_require__("9e1e") && /./g.flags != 'g') __webpack_require__("86cc").f(RegExp.prototype, 'flags', {
- configurable: true,
- get: __webpack_require__("0bfb")
- });
- /***/ }),
- /***/ "386d":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var anObject = __webpack_require__("cb7c");
- var sameValue = __webpack_require__("83a1");
- var regExpExec = __webpack_require__("5f1b");
- // @@search logic
- __webpack_require__("214f")('search', 1, function (defined, SEARCH, $search, maybeCallNative) {
- return [
- // `String.prototype.search` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.search
- function search(regexp) {
- var O = defined(this);
- var fn = regexp == undefined ? undefined : regexp[SEARCH];
- return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));
- },
- // `RegExp.prototype[@@search]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search
- function (regexp) {
- var res = maybeCallNative($search, regexp, this);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- var previousLastIndex = rx.lastIndex;
- if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
- var result = regExpExec(rx, S);
- if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
- return result === null ? -1 : result.index;
- }
- ];
- });
- /***/ }),
- /***/ "38fd":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
- var has = __webpack_require__("69a8");
- var toObject = __webpack_require__("4bf8");
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
- var ObjectProto = Object.prototype;
- module.exports = Object.getPrototypeOf || function (O) {
- O = toObject(O);
- if (has(O, IE_PROTO)) return O[IE_PROTO];
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
- return O.constructor.prototype;
- } return O instanceof Object ? ObjectProto : null;
- };
- /***/ }),
- /***/ "3a38":
- /***/ (function(module, exports) {
- // 7.1.4 ToInteger
- var ceil = Math.ceil;
- var floor = Math.floor;
- module.exports = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
- };
- /***/ }),
- /***/ "3b2b":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("7726");
- var inheritIfRequired = __webpack_require__("5dbc");
- var dP = __webpack_require__("86cc").f;
- var gOPN = __webpack_require__("9093").f;
- var isRegExp = __webpack_require__("aae3");
- var $flags = __webpack_require__("0bfb");
- var $RegExp = global.RegExp;
- var Base = $RegExp;
- var proto = $RegExp.prototype;
- var re1 = /a/g;
- var re2 = /a/g;
- // "new" creates a new object, old webkit buggy here
- var CORRECT_NEW = new $RegExp(re1) !== re1;
- if (__webpack_require__("9e1e") && (!CORRECT_NEW || __webpack_require__("79e5")(function () {
- re2[__webpack_require__("2b4c")('match')] = false;
- // RegExp constructor can alter flags and IsRegExp works correct with @@match
- return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';
- }))) {
- $RegExp = function RegExp(p, f) {
- var tiRE = this instanceof $RegExp;
- var piRE = isRegExp(p);
- var fiU = f === undefined;
- return !tiRE && piRE && p.constructor === $RegExp && fiU ? p
- : inheritIfRequired(CORRECT_NEW
- ? new Base(piRE && !fiU ? p.source : p, f)
- : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)
- , tiRE ? this : proto, $RegExp);
- };
- var proxy = function (key) {
- key in $RegExp || dP($RegExp, key, {
- configurable: true,
- get: function () { return Base[key]; },
- set: function (it) { Base[key] = it; }
- });
- };
- for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);
- proto.constructor = $RegExp;
- $RegExp.prototype = proto;
- __webpack_require__("2aba")(global, 'RegExp', $RegExp);
- }
- __webpack_require__("7a56")('RegExp');
- /***/ }),
- /***/ "41a0":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var create = __webpack_require__("2aeb");
- var descriptor = __webpack_require__("4630");
- var setToStringTag = __webpack_require__("7f20");
- var IteratorPrototype = {};
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
- __webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; });
- module.exports = function (Constructor, NAME, next) {
- Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
- setToStringTag(Constructor, NAME + ' Iterator');
- };
- /***/ }),
- /***/ "454f":
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__("46a7");
- var $Object = __webpack_require__("584a").Object;
- module.exports = function defineProperty(it, key, desc) {
- return $Object.defineProperty(it, key, desc);
- };
- /***/ }),
- /***/ "456d":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 Object.keys(O)
- var toObject = __webpack_require__("4bf8");
- var $keys = __webpack_require__("0d58");
- __webpack_require__("5eda")('keys', function () {
- return function keys(it) {
- return $keys(toObject(it));
- };
- });
- /***/ }),
- /***/ "4588":
- /***/ (function(module, exports) {
- // 7.1.4 ToInteger
- var ceil = Math.ceil;
- var floor = Math.floor;
- module.exports = function (it) {
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
- };
- /***/ }),
- /***/ "45f2":
- /***/ (function(module, exports, __webpack_require__) {
- var def = __webpack_require__("d9f6").f;
- var has = __webpack_require__("07e3");
- var TAG = __webpack_require__("5168")('toStringTag');
- module.exports = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
- };
- /***/ }),
- /***/ "4630":
- /***/ (function(module, exports) {
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
- /***/ }),
- /***/ "46a7":
- /***/ (function(module, exports, __webpack_require__) {
- var $export = __webpack_require__("63b6");
- // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
- $export($export.S + $export.F * !__webpack_require__("8e60"), 'Object', { defineProperty: __webpack_require__("d9f6").f });
- /***/ }),
- /***/ "47ee":
- /***/ (function(module, exports, __webpack_require__) {
- // all enumerable object keys, includes symbols
- var getKeys = __webpack_require__("c3a1");
- var gOPS = __webpack_require__("9aa9");
- var pIE = __webpack_require__("355d");
- module.exports = function (it) {
- var result = getKeys(it);
- var getSymbols = gOPS.f;
- if (getSymbols) {
- var symbols = getSymbols(it);
- var isEnum = pIE.f;
- var i = 0;
- var key;
- while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
- } return result;
- };
- /***/ }),
- /***/ "4917":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var anObject = __webpack_require__("cb7c");
- var toLength = __webpack_require__("9def");
- var advanceStringIndex = __webpack_require__("0390");
- var regExpExec = __webpack_require__("5f1b");
- // @@match logic
- __webpack_require__("214f")('match', 1, function (defined, MATCH, $match, maybeCallNative) {
- return [
- // `String.prototype.match` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.match
- function match(regexp) {
- var O = defined(this);
- var fn = regexp == undefined ? undefined : regexp[MATCH];
- return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));
- },
- // `RegExp.prototype[@@match]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match
- function (regexp) {
- var res = maybeCallNative($match, regexp, this);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- if (!rx.global) return regExpExec(rx, S);
- var fullUnicode = rx.unicode;
- rx.lastIndex = 0;
- var A = [];
- var n = 0;
- var result;
- while ((result = regExpExec(rx, S)) !== null) {
- var matchStr = String(result[0]);
- A[n] = matchStr;
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
- n++;
- }
- return n === 0 ? null : A;
- }
- ];
- });
- /***/ }),
- /***/ "499e":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/listToStyles.js
- /**
- * Translates the list format produced by css-loader into something
- * easier to manipulate.
- */
- function listToStyles (parentId, list) {
- var styles = []
- var newStyles = {}
- for (var i = 0; i < list.length; i++) {
- var item = list[i]
- var id = item[0]
- var css = item[1]
- var media = item[2]
- var sourceMap = item[3]
- var part = {
- id: parentId + ':' + i,
- css: css,
- media: media,
- sourceMap: sourceMap
- }
- if (!newStyles[id]) {
- styles.push(newStyles[id] = { id: id, parts: [part] })
- } else {
- newStyles[id].parts.push(part)
- }
- }
- return styles
- }
- // CONCATENATED MODULE: ./node_modules/vue-style-loader/lib/addStylesClient.js
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return addStylesClient; });
- /*
- MIT License http://www.opensource.org/licenses/mit-license.php
- Author Tobias Koppers @sokra
- Modified by Evan You @yyx990803
- */
- var hasDocument = typeof document !== 'undefined'
- if (typeof DEBUG !== 'undefined' && DEBUG) {
- if (!hasDocument) {
- throw new Error(
- 'vue-style-loader cannot be used in a non-browser environment. ' +
- "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
- ) }
- }
- /*
- type StyleObject = {
- id: number;
- parts: Array<StyleObjectPart>
- }
- type StyleObjectPart = {
- css: string;
- media: string;
- sourceMap: ?string
- }
- */
- var stylesInDom = {/*
- [id: number]: {
- id: number,
- refs: number,
- parts: Array<(obj?: StyleObjectPart) => void>
- }
- */}
- var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
- var singletonElement = null
- var singletonCounter = 0
- var isProduction = false
- var noop = function () {}
- var options = null
- var ssrIdKey = 'data-vue-ssr-id'
- // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
- // tags it will allow on a page
- var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())
- function addStylesClient (parentId, list, _isProduction, _options) {
- isProduction = _isProduction
- options = _options || {}
- var styles = listToStyles(parentId, list)
- addStylesToDom(styles)
- return function update (newList) {
- var mayRemove = []
- for (var i = 0; i < styles.length; i++) {
- var item = styles[i]
- var domStyle = stylesInDom[item.id]
- domStyle.refs--
- mayRemove.push(domStyle)
- }
- if (newList) {
- styles = listToStyles(parentId, newList)
- addStylesToDom(styles)
- } else {
- styles = []
- }
- for (var i = 0; i < mayRemove.length; i++) {
- var domStyle = mayRemove[i]
- if (domStyle.refs === 0) {
- for (var j = 0; j < domStyle.parts.length; j++) {
- domStyle.parts[j]()
- }
- delete stylesInDom[domStyle.id]
- }
- }
- }
- }
- function addStylesToDom (styles /* Array<StyleObject> */) {
- for (var i = 0; i < styles.length; i++) {
- var item = styles[i]
- var domStyle = stylesInDom[item.id]
- if (domStyle) {
- domStyle.refs++
- for (var j = 0; j < domStyle.parts.length; j++) {
- domStyle.parts[j](item.parts[j])
- }
- for (; j < item.parts.length; j++) {
- domStyle.parts.push(addStyle(item.parts[j]))
- }
- if (domStyle.parts.length > item.parts.length) {
- domStyle.parts.length = item.parts.length
- }
- } else {
- var parts = []
- for (var j = 0; j < item.parts.length; j++) {
- parts.push(addStyle(item.parts[j]))
- }
- stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
- }
- }
- }
- function createStyleElement () {
- var styleElement = document.createElement('style')
- styleElement.type = 'text/css'
- head.appendChild(styleElement)
- return styleElement
- }
- function addStyle (obj /* StyleObjectPart */) {
- var update, remove
- var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')
- if (styleElement) {
- if (isProduction) {
- // has SSR styles and in production mode.
- // simply do nothing.
- return noop
- } else {
- // has SSR styles but in dev mode.
- // for some reason Chrome can't handle source map in server-rendered
- // style tags - source maps in <style> only works if the style tag is
- // created and inserted dynamically. So we remove the server rendered
- // styles and inject new ones.
- styleElement.parentNode.removeChild(styleElement)
- }
- }
- if (isOldIE) {
- // use singleton mode for IE9.
- var styleIndex = singletonCounter++
- styleElement = singletonElement || (singletonElement = createStyleElement())
- update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
- remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
- } else {
- // use multi-style-tag mode in all other cases
- styleElement = createStyleElement()
- update = applyToTag.bind(null, styleElement)
- remove = function () {
- styleElement.parentNode.removeChild(styleElement)
- }
- }
- update(obj)
- return function updateStyle (newObj /* StyleObjectPart */) {
- if (newObj) {
- if (newObj.css === obj.css &&
- newObj.media === obj.media &&
- newObj.sourceMap === obj.sourceMap) {
- return
- }
- update(obj = newObj)
- } else {
- remove()
- }
- }
- }
- var replaceText = (function () {
- var textStore = []
- return function (index, replacement) {
- textStore[index] = replacement
- return textStore.filter(Boolean).join('\n')
- }
- })()
- function applyToSingletonTag (styleElement, index, remove, obj) {
- var css = remove ? '' : obj.css
- if (styleElement.styleSheet) {
- styleElement.styleSheet.cssText = replaceText(index, css)
- } else {
- var cssNode = document.createTextNode(css)
- var childNodes = styleElement.childNodes
- if (childNodes[index]) styleElement.removeChild(childNodes[index])
- if (childNodes.length) {
- styleElement.insertBefore(cssNode, childNodes[index])
- } else {
- styleElement.appendChild(cssNode)
- }
- }
- }
- function applyToTag (styleElement, obj) {
- var css = obj.css
- var media = obj.media
- var sourceMap = obj.sourceMap
- if (media) {
- styleElement.setAttribute('media', media)
- }
- if (options.ssrId) {
- styleElement.setAttribute(ssrIdKey, obj.id)
- }
- if (sourceMap) {
- // https://developer.chrome.com/devtools/docs/javascript-debugging
- // this makes source maps inside style tags work properly in Chrome
- css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
- // http://stackoverflow.com/a/26603875
- css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
- }
- if (styleElement.styleSheet) {
- styleElement.styleSheet.cssText = css
- } else {
- while (styleElement.firstChild) {
- styleElement.removeChild(styleElement.firstChild)
- }
- styleElement.appendChild(document.createTextNode(css))
- }
- }
- /***/ }),
- /***/ "4bf8":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.13 ToObject(argument)
- var defined = __webpack_require__("be13");
- module.exports = function (it) {
- return Object(defined(it));
- };
- /***/ }),
- /***/ "4f6b":
- /***/ (function(module, exports, __webpack_require__) {
- // style-loader: Adds some css to the DOM by adding a <style> tag
- // load the styles
- var content = __webpack_require__("382e");
- if(typeof content === 'string') content = [[module.i, content, '']];
- if(content.locals) module.exports = content.locals;
- // add the styles to the DOM
- var add = __webpack_require__("499e").default
- var update = add("1d0f7901", content, true, {"sourceMap":false,"shadowMode":false});
- /***/ }),
- /***/ "5168":
- /***/ (function(module, exports, __webpack_require__) {
- var store = __webpack_require__("dbdb")('wks');
- var uid = __webpack_require__("62a0");
- var Symbol = __webpack_require__("e53d").Symbol;
- var USE_SYMBOL = typeof Symbol == 'function';
- var $exports = module.exports = function (name) {
- return store[name] || (store[name] =
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
- };
- $exports.store = store;
- /***/ }),
- /***/ "520a":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var regexpFlags = __webpack_require__("0bfb");
- var nativeExec = RegExp.prototype.exec;
- // This always refers to the native implementation, because the
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
- // which loads this file before patching the method.
- var nativeReplace = String.prototype.replace;
- var patchedExec = nativeExec;
- var LAST_INDEX = 'lastIndex';
- var UPDATES_LAST_INDEX_WRONG = (function () {
- var re1 = /a/,
- re2 = /b*/g;
- nativeExec.call(re1, 'a');
- nativeExec.call(re2, 'a');
- return re1[LAST_INDEX] !== 0 || re2[LAST_INDEX] !== 0;
- })();
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
- if (PATCH) {
- patchedExec = function exec(str) {
- var re = this;
- var lastIndex, reCopy, match, i;
- if (NPCG_INCLUDED) {
- reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
- }
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re[LAST_INDEX];
- match = nativeExec.call(re, str);
- if (UPDATES_LAST_INDEX_WRONG && match) {
- re[LAST_INDEX] = re.global ? match.index + match[0].length : lastIndex;
- }
- if (NPCG_INCLUDED && match && match.length > 1) {
- // Fix browsers whose `exec` methods don't consistently return `undefined`
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
- // eslint-disable-next-line no-loop-func
- nativeReplace.call(match[0], reCopy, function () {
- for (i = 1; i < arguments.length - 2; i++) {
- if (arguments[i] === undefined) match[i] = undefined;
- }
- });
- }
- return match;
- };
- }
- module.exports = patchedExec;
- /***/ }),
- /***/ "52a7":
- /***/ (function(module, exports) {
- exports.f = {}.propertyIsEnumerable;
- /***/ }),
- /***/ "5537":
- /***/ (function(module, exports, __webpack_require__) {
- var core = __webpack_require__("8378");
- var global = __webpack_require__("7726");
- var SHARED = '__core-js_shared__';
- var store = global[SHARED] || (global[SHARED] = {});
- (module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
- })('versions', []).push({
- version: core.version,
- mode: __webpack_require__("2d00") ? 'pure' : 'global',
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
- });
- /***/ }),
- /***/ "5559":
- /***/ (function(module, exports, __webpack_require__) {
- var shared = __webpack_require__("dbdb")('keys');
- var uid = __webpack_require__("62a0");
- module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
- };
- /***/ }),
- /***/ "584a":
- /***/ (function(module, exports) {
- var core = module.exports = { version: '2.6.5' };
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
- /***/ }),
- /***/ "5b4e":
- /***/ (function(module, exports, __webpack_require__) {
- // false -> Array#indexOf
- // true -> Array#includes
- var toIObject = __webpack_require__("36c3");
- var toLength = __webpack_require__("b447");
- var toAbsoluteIndex = __webpack_require__("0fc9");
- module.exports = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
- if (O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
- };
- /***/ }),
- /***/ "5ca1":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("7726");
- var core = __webpack_require__("8378");
- var hide = __webpack_require__("32e9");
- var redefine = __webpack_require__("2aba");
- var ctx = __webpack_require__("9b43");
- var PROTOTYPE = 'prototype';
- var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
- var key, own, out, exp;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- // export native or passed
- out = (own ? target : source)[key];
- // bind timers to global for call from export context
- exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // extend global
- if (target) redefine(target, key, out, type & $export.U);
- // export
- if (exports[key] != out) hide(exports, key, exp);
- if (IS_PROTO && expProto[key] != out) expProto[key] = out;
- }
- };
- global.core = core;
- // type bitmap
- $export.F = 1; // forced
- $export.G = 2; // global
- $export.S = 4; // static
- $export.P = 8; // proto
- $export.B = 16; // bind
- $export.W = 32; // wrap
- $export.U = 64; // safe
- $export.R = 128; // real proto method for `library`
- module.exports = $export;
- /***/ }),
- /***/ "5dbc":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("d3f4");
- var setPrototypeOf = __webpack_require__("8b97").set;
- module.exports = function (that, target, C) {
- var S = target.constructor;
- var P;
- if (S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf) {
- setPrototypeOf(that, P);
- } return that;
- };
- /***/ }),
- /***/ "5eda":
- /***/ (function(module, exports, __webpack_require__) {
- // most Object methods by ES6 should accept primitives
- var $export = __webpack_require__("5ca1");
- var core = __webpack_require__("8378");
- var fails = __webpack_require__("79e5");
- module.exports = function (KEY, exec) {
- var fn = (core.Object || {})[KEY] || Object[KEY];
- var exp = {};
- exp[KEY] = exec(fn);
- $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
- };
- /***/ }),
- /***/ "5f1b":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var classof = __webpack_require__("23c6");
- var builtinExec = RegExp.prototype.exec;
- // `RegExpExec` abstract operation
- // https://tc39.github.io/ecma262/#sec-regexpexec
- module.exports = function (R, S) {
- var exec = R.exec;
- if (typeof exec === 'function') {
- var result = exec.call(R, S);
- if (typeof result !== 'object') {
- throw new TypeError('RegExp exec method returned something other than an Object or null');
- }
- return result;
- }
- if (classof(R) !== 'RegExp') {
- throw new TypeError('RegExp#exec called on incompatible receiver');
- }
- return builtinExec.call(R, S);
- };
- /***/ }),
- /***/ "613b":
- /***/ (function(module, exports, __webpack_require__) {
- var shared = __webpack_require__("5537")('keys');
- var uid = __webpack_require__("ca5a");
- module.exports = function (key) {
- return shared[key] || (shared[key] = uid(key));
- };
- /***/ }),
- /***/ "626a":
- /***/ (function(module, exports, __webpack_require__) {
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
- var cof = __webpack_require__("2d95");
- // eslint-disable-next-line no-prototype-builtins
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
- return cof(it) == 'String' ? it.split('') : Object(it);
- };
- /***/ }),
- /***/ "62a0":
- /***/ (function(module, exports) {
- var id = 0;
- var px = Math.random();
- module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
- };
- /***/ }),
- /***/ "63b6":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("e53d");
- var core = __webpack_require__("584a");
- var ctx = __webpack_require__("d864");
- var hide = __webpack_require__("35e8");
- var has = __webpack_require__("07e3");
- var PROTOTYPE = 'prototype';
- var $export = function (type, name, source) {
- var IS_FORCED = type & $export.F;
- var IS_GLOBAL = type & $export.G;
- var IS_STATIC = type & $export.S;
- var IS_PROTO = type & $export.P;
- var IS_BIND = type & $export.B;
- var IS_WRAP = type & $export.W;
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
- var expProto = exports[PROTOTYPE];
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
- var key, own, out;
- if (IS_GLOBAL) source = name;
- for (key in source) {
- // contains in native
- own = !IS_FORCED && target && target[key] !== undefined;
- if (own && has(exports, key)) continue;
- // export native or passed
- out = own ? target[key] : source[key];
- // prevent global pollution for namespaces
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
- // bind timers to global for call from export context
- : IS_BIND && own ? ctx(out, global)
- // wrap global constructors for prevent change them in library
- : IS_WRAP && target[key] == out ? (function (C) {
- var F = function (a, b, c) {
- if (this instanceof C) {
- switch (arguments.length) {
- case 0: return new C();
- case 1: return new C(a);
- case 2: return new C(a, b);
- } return new C(a, b, c);
- } return C.apply(this, arguments);
- };
- F[PROTOTYPE] = C[PROTOTYPE];
- return F;
- // make static versions for prototype methods
- })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
- // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
- if (IS_PROTO) {
- (exports.virtual || (exports.virtual = {}))[key] = out;
- // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
- if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
- }
- }
- };
- // type bitmap
- $export.F = 1; // forced
- $export.G = 2; // global
- $export.S = 4; // static
- $export.P = 8; // proto
- $export.B = 16; // bind
- $export.W = 32; // wrap
- $export.U = 64; // safe
- $export.R = 128; // real proto method for `library`
- module.exports = $export;
- /***/ }),
- /***/ "6718":
- /***/ (function(module, exports, __webpack_require__) {
- var global = __webpack_require__("e53d");
- var core = __webpack_require__("584a");
- var LIBRARY = __webpack_require__("b8e3");
- var wksExt = __webpack_require__("ccb9");
- var defineProperty = __webpack_require__("d9f6").f;
- module.exports = function (name) {
- var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
- if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
- };
- /***/ }),
- /***/ "6821":
- /***/ (function(module, exports, __webpack_require__) {
- // to indexed object, toObject with fallback for non-array-like ES3 strings
- var IObject = __webpack_require__("626a");
- var defined = __webpack_require__("be13");
- module.exports = function (it) {
- return IObject(defined(it));
- };
- /***/ }),
- /***/ "69a8":
- /***/ (function(module, exports) {
- var hasOwnProperty = {}.hasOwnProperty;
- module.exports = function (it, key) {
- return hasOwnProperty.call(it, key);
- };
- /***/ }),
- /***/ "6a99":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.1 ToPrimitive(input [, PreferredType])
- var isObject = __webpack_require__("d3f4");
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
- // and the second argument - flag - preferred type is a string
- module.exports = function (it, S) {
- if (!isObject(it)) return it;
- var fn, val;
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
- throw TypeError("Can't convert object to primitive value");
- };
- /***/ }),
- /***/ "6abf":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- var $keys = __webpack_require__("e6f3");
- var hiddenKeys = __webpack_require__("1691").concat('length', 'prototype');
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return $keys(O, hiddenKeys);
- };
- /***/ }),
- /***/ "6b4c":
- /***/ (function(module, exports) {
- var toString = {}.toString;
- module.exports = function (it) {
- return toString.call(it).slice(8, -1);
- };
- /***/ }),
- /***/ "6b54":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- __webpack_require__("3846");
- var anObject = __webpack_require__("cb7c");
- var $flags = __webpack_require__("0bfb");
- var DESCRIPTORS = __webpack_require__("9e1e");
- var TO_STRING = 'toString';
- var $toString = /./[TO_STRING];
- var define = function (fn) {
- __webpack_require__("2aba")(RegExp.prototype, TO_STRING, fn, true);
- };
- // 21.2.5.14 RegExp.prototype.toString()
- if (__webpack_require__("79e5")(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
- define(function toString() {
- var R = anObject(this);
- return '/'.concat(R.source, '/',
- 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
- });
- // FF44- RegExp#toString has a wrong name
- } else if ($toString.name != TO_STRING) {
- define(function toString() {
- return $toString.call(this);
- });
- }
- /***/ }),
- /***/ "6c7b":
- /***/ (function(module, exports, __webpack_require__) {
- // 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)
- var $export = __webpack_require__("5ca1");
- $export($export.P, 'Array', { fill: __webpack_require__("36bd") });
- __webpack_require__("9c6c")('fill');
- /***/ }),
- /***/ "7726":
- /***/ (function(module, exports) {
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
- /***/ }),
- /***/ "77f1":
- /***/ (function(module, exports, __webpack_require__) {
- var toInteger = __webpack_require__("4588");
- var max = Math.max;
- var min = Math.min;
- module.exports = function (index, length) {
- index = toInteger(index);
- return index < 0 ? max(index + length, 0) : min(index, length);
- };
- /***/ }),
- /***/ "794b":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = !__webpack_require__("8e60") && !__webpack_require__("294c")(function () {
- return Object.defineProperty(__webpack_require__("1ec9")('div'), 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "79aa":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
- };
- /***/ }),
- /***/ "79e5":
- /***/ (function(module, exports) {
- module.exports = function (exec) {
- try {
- return !!exec();
- } catch (e) {
- return true;
- }
- };
- /***/ }),
- /***/ "7a56":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var global = __webpack_require__("7726");
- var dP = __webpack_require__("86cc");
- var DESCRIPTORS = __webpack_require__("9e1e");
- var SPECIES = __webpack_require__("2b4c")('species');
- module.exports = function (KEY) {
- var C = global[KEY];
- if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {
- configurable: true,
- get: function () { return this; }
- });
- };
- /***/ }),
- /***/ "7cdf":
- /***/ (function(module, exports, __webpack_require__) {
- // 20.1.2.3 Number.isInteger(number)
- var $export = __webpack_require__("5ca1");
- $export($export.S, 'Number', { isInteger: __webpack_require__("9c12") });
- /***/ }),
- /***/ "7e90":
- /***/ (function(module, exports, __webpack_require__) {
- var dP = __webpack_require__("d9f6");
- var anObject = __webpack_require__("e4ae");
- var getKeys = __webpack_require__("c3a1");
- module.exports = __webpack_require__("8e60") ? Object.defineProperties : function defineProperties(O, Properties) {
- anObject(O);
- var keys = getKeys(Properties);
- var length = keys.length;
- var i = 0;
- var P;
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
- return O;
- };
- /***/ }),
- /***/ "7f20":
- /***/ (function(module, exports, __webpack_require__) {
- var def = __webpack_require__("86cc").f;
- var has = __webpack_require__("69a8");
- var TAG = __webpack_require__("2b4c")('toStringTag');
- module.exports = function (it, tag, stat) {
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
- };
- /***/ }),
- /***/ "8378":
- /***/ (function(module, exports) {
- var core = module.exports = { version: '2.6.5' };
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
- /***/ }),
- /***/ "83a1":
- /***/ (function(module, exports) {
- // 7.2.9 SameValue(x, y)
- module.exports = Object.is || function is(x, y) {
- // eslint-disable-next-line no-self-compare
- return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
- };
- /***/ }),
- /***/ "84f2":
- /***/ (function(module, exports) {
- module.exports = {};
- /***/ }),
- /***/ "85f2":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("454f");
- /***/ }),
- /***/ "86cc":
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__("cb7c");
- var IE8_DOM_DEFINE = __webpack_require__("c69a");
- var toPrimitive = __webpack_require__("6a99");
- var dP = Object.defineProperty;
- exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return dP(O, P, Attributes);
- } catch (e) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
- /***/ }),
- /***/ "8aae":
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__("32a6");
- module.exports = __webpack_require__("584a").Object.keys;
- /***/ }),
- /***/ "8b97":
- /***/ (function(module, exports, __webpack_require__) {
- // Works with __proto__ only. Old v8 can't work with null proto objects.
- /* eslint-disable no-proto */
- var isObject = __webpack_require__("d3f4");
- var anObject = __webpack_require__("cb7c");
- var check = function (O, proto) {
- anObject(O);
- if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
- };
- module.exports = {
- set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
- function (test, buggy, set) {
- try {
- set = __webpack_require__("9b43")(Function.call, __webpack_require__("11e9").f(Object.prototype, '__proto__').set, 2);
- set(test, []);
- buggy = !(test instanceof Array);
- } catch (e) { buggy = true; }
- return function setPrototypeOf(O, proto) {
- check(O, proto);
- if (buggy) O.__proto__ = proto;
- else set(O, proto);
- return O;
- };
- }({}, false) : undefined),
- check: check
- };
- /***/ }),
- /***/ "8bbf":
- /***/ (function(module, exports) {
- module.exports = require("vue");
- /***/ }),
- /***/ "8e60":
- /***/ (function(module, exports, __webpack_require__) {
- // Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__("294c")(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "9003":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.2.2 IsArray(argument)
- var cof = __webpack_require__("6b4c");
- module.exports = Array.isArray || function isArray(arg) {
- return cof(arg) == 'Array';
- };
- /***/ }),
- /***/ "9093":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- var $keys = __webpack_require__("ce10");
- var hiddenKeys = __webpack_require__("e11e").concat('length', 'prototype');
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
- return $keys(O, hiddenKeys);
- };
- /***/ }),
- /***/ "9138":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("35e8");
- /***/ }),
- /***/ "9aa9":
- /***/ (function(module, exports) {
- exports.f = Object.getOwnPropertySymbols;
- /***/ }),
- /***/ "9b43":
- /***/ (function(module, exports, __webpack_require__) {
- // optional / simple context binding
- var aFunction = __webpack_require__("d8e8");
- module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
- };
- /***/ }),
- /***/ "9c12":
- /***/ (function(module, exports, __webpack_require__) {
- // 20.1.2.3 Number.isInteger(number)
- var isObject = __webpack_require__("d3f4");
- var floor = Math.floor;
- module.exports = function isInteger(it) {
- return !isObject(it) && isFinite(it) && floor(it) === it;
- };
- /***/ }),
- /***/ "9c6c":
- /***/ (function(module, exports, __webpack_require__) {
- // 22.1.3.31 Array.prototype[@@unscopables]
- var UNSCOPABLES = __webpack_require__("2b4c")('unscopables');
- var ArrayProto = Array.prototype;
- if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {});
- module.exports = function (key) {
- ArrayProto[UNSCOPABLES][key] = true;
- };
- /***/ }),
- /***/ "9def":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.15 ToLength
- var toInteger = __webpack_require__("4588");
- var min = Math.min;
- module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
- };
- /***/ }),
- /***/ "9e1e":
- /***/ (function(module, exports, __webpack_require__) {
- // Thank's IE8 for his funny defineProperty
- module.exports = !__webpack_require__("79e5")(function () {
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "a159":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- var anObject = __webpack_require__("e4ae");
- var dPs = __webpack_require__("7e90");
- var enumBugKeys = __webpack_require__("1691");
- var IE_PROTO = __webpack_require__("5559")('IE_PROTO');
- var Empty = function () { /* empty */ };
- var PROTOTYPE = 'prototype';
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
- var createDict = function () {
- // Thrash, waste and sodomy: IE GC bug
- var iframe = __webpack_require__("1ec9")('iframe');
- var i = enumBugKeys.length;
- var lt = '<';
- var gt = '>';
- var iframeDocument;
- iframe.style.display = 'none';
- __webpack_require__("32fc").appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
- iframeDocument.close();
- createDict = iframeDocument.F;
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
- return createDict();
- };
- module.exports = Object.create || function create(O, Properties) {
- var result;
- if (O !== null) {
- Empty[PROTOTYPE] = anObject(O);
- result = new Empty();
- Empty[PROTOTYPE] = null;
- // add "__proto__" for Object.getPrototypeOf polyfill
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : dPs(result, Properties);
- };
- /***/ }),
- /***/ "a481":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var anObject = __webpack_require__("cb7c");
- var toObject = __webpack_require__("4bf8");
- var toLength = __webpack_require__("9def");
- var toInteger = __webpack_require__("4588");
- var advanceStringIndex = __webpack_require__("0390");
- var regExpExec = __webpack_require__("5f1b");
- var max = Math.max;
- var min = Math.min;
- var floor = Math.floor;
- var SUBSTITUTION_SYMBOLS = /\$([$&`']|\d\d?|<[^>]*>)/g;
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&`']|\d\d?)/g;
- var maybeToString = function (it) {
- return it === undefined ? it : String(it);
- };
- // @@replace logic
- __webpack_require__("214f")('replace', 2, function (defined, REPLACE, $replace, maybeCallNative) {
- return [
- // `String.prototype.replace` method
- // https://tc39.github.io/ecma262/#sec-string.prototype.replace
- function replace(searchValue, replaceValue) {
- var O = defined(this);
- var fn = searchValue == undefined ? undefined : searchValue[REPLACE];
- return fn !== undefined
- ? fn.call(searchValue, O, replaceValue)
- : $replace.call(String(O), searchValue, replaceValue);
- },
- // `RegExp.prototype[@@replace]` method
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
- function (regexp, replaceValue) {
- var res = maybeCallNative($replace, regexp, this, replaceValue);
- if (res.done) return res.value;
- var rx = anObject(regexp);
- var S = String(this);
- var functionalReplace = typeof replaceValue === 'function';
- if (!functionalReplace) replaceValue = String(replaceValue);
- var global = rx.global;
- if (global) {
- var fullUnicode = rx.unicode;
- rx.lastIndex = 0;
- }
- var results = [];
- while (true) {
- var result = regExpExec(rx, S);
- if (result === null) break;
- results.push(result);
- if (!global) break;
- var matchStr = String(result[0]);
- if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
- }
- var accumulatedResult = '';
- var nextSourcePosition = 0;
- for (var i = 0; i < results.length; i++) {
- result = results[i];
- var matched = String(result[0]);
- var position = max(min(toInteger(result.index), S.length), 0);
- var captures = [];
- // NOTE: This is equivalent to
- // captures = result.slice(1).map(maybeToString)
- // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
- // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
- // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
- for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
- var namedCaptures = result.groups;
- if (functionalReplace) {
- var replacerArgs = [matched].concat(captures, position, S);
- if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
- var replacement = String(replaceValue.apply(undefined, replacerArgs));
- } else {
- replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
- }
- if (position >= nextSourcePosition) {
- accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
- nextSourcePosition = position + matched.length;
- }
- }
- return accumulatedResult + S.slice(nextSourcePosition);
- }
- ];
- // https://tc39.github.io/ecma262/#sec-getsubstitution
- function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
- var tailPos = position + matched.length;
- var m = captures.length;
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
- if (namedCaptures !== undefined) {
- namedCaptures = toObject(namedCaptures);
- symbols = SUBSTITUTION_SYMBOLS;
- }
- return $replace.call(replacement, symbols, function (match, ch) {
- var capture;
- switch (ch.charAt(0)) {
- case '$': return '$';
- case '&': return matched;
- case '`': return str.slice(0, position);
- case "'": return str.slice(tailPos);
- case '<':
- capture = namedCaptures[ch.slice(1, -1)];
- break;
- default: // \d\d?
- var n = +ch;
- if (n === 0) return match;
- if (n > m) {
- var f = floor(n / 10);
- if (f === 0) return match;
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
- return match;
- }
- capture = captures[n - 1];
- }
- return capture === undefined ? '' : capture;
- });
- }
- });
- /***/ }),
- /***/ "a4bb":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("8aae");
- /***/ }),
- /***/ "aa77":
- /***/ (function(module, exports, __webpack_require__) {
- var $export = __webpack_require__("5ca1");
- var defined = __webpack_require__("be13");
- var fails = __webpack_require__("79e5");
- var spaces = __webpack_require__("fdef");
- var space = '[' + spaces + ']';
- var non = '\u200b\u0085';
- var ltrim = RegExp('^' + space + space + '*');
- var rtrim = RegExp(space + space + '*$');
- var exporter = function (KEY, exec, ALIAS) {
- var exp = {};
- var FORCE = fails(function () {
- return !!spaces[KEY]() || non[KEY]() != non;
- });
- var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
- if (ALIAS) exp[ALIAS] = fn;
- $export($export.P + $export.F * FORCE, 'String', exp);
- };
- // 1 -> String#trimLeft
- // 2 -> String#trimRight
- // 3 -> String#trim
- var trim = exporter.trim = function (string, TYPE) {
- string = String(defined(string));
- if (TYPE & 1) string = string.replace(ltrim, '');
- if (TYPE & 2) string = string.replace(rtrim, '');
- return string;
- };
- module.exports = exporter;
- /***/ }),
- /***/ "aae3":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.2.8 IsRegExp(argument)
- var isObject = __webpack_require__("d3f4");
- var cof = __webpack_require__("2d95");
- var MATCH = __webpack_require__("2b4c")('match');
- module.exports = function (it) {
- var isRegExp;
- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
- };
- /***/ }),
- /***/ "ac6a":
- /***/ (function(module, exports, __webpack_require__) {
- var $iterators = __webpack_require__("cadf");
- var getKeys = __webpack_require__("0d58");
- var redefine = __webpack_require__("2aba");
- var global = __webpack_require__("7726");
- var hide = __webpack_require__("32e9");
- var Iterators = __webpack_require__("84f2");
- var wks = __webpack_require__("2b4c");
- var ITERATOR = wks('iterator');
- var TO_STRING_TAG = wks('toStringTag');
- var ArrayValues = Iterators.Array;
- var DOMIterables = {
- CSSRuleList: true, // TODO: Not spec compliant, should be false.
- CSSStyleDeclaration: false,
- CSSValueList: false,
- ClientRectList: false,
- DOMRectList: false,
- DOMStringList: false,
- DOMTokenList: true,
- DataTransferItemList: false,
- FileList: false,
- HTMLAllCollection: false,
- HTMLCollection: false,
- HTMLFormElement: false,
- HTMLSelectElement: false,
- MediaList: true, // TODO: Not spec compliant, should be false.
- MimeTypeArray: false,
- NamedNodeMap: false,
- NodeList: true,
- PaintRequestList: false,
- Plugin: false,
- PluginArray: false,
- SVGLengthList: false,
- SVGNumberList: false,
- SVGPathSegList: false,
- SVGPointList: false,
- SVGStringList: false,
- SVGTransformList: false,
- SourceBufferList: false,
- StyleSheetList: true, // TODO: Not spec compliant, should be false.
- TextTrackCueList: false,
- TextTrackList: false,
- TouchList: false
- };
- for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
- var NAME = collections[i];
- var explicit = DOMIterables[NAME];
- var Collection = global[NAME];
- var proto = Collection && Collection.prototype;
- var key;
- if (proto) {
- if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
- if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
- Iterators[NAME] = ArrayValues;
- if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
- }
- }
- /***/ }),
- /***/ "aebd":
- /***/ (function(module, exports) {
- module.exports = function (bitmap, value) {
- return {
- enumerable: !(bitmap & 1),
- configurable: !(bitmap & 2),
- writable: !(bitmap & 4),
- value: value
- };
- };
- /***/ }),
- /***/ "b0c5":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var regexpExec = __webpack_require__("520a");
- __webpack_require__("5ca1")({
- target: 'RegExp',
- proto: true,
- forced: regexpExec !== /./.exec
- }, {
- exec: regexpExec
- });
- /***/ }),
- /***/ "b447":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.1.15 ToLength
- var toInteger = __webpack_require__("3a38");
- var min = Math.min;
- module.exports = function (it) {
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
- };
- /***/ }),
- /***/ "b8e3":
- /***/ (function(module, exports) {
- module.exports = true;
- /***/ }),
- /***/ "be13":
- /***/ (function(module, exports) {
- // 7.2.1 RequireObjectCoercible(argument)
- module.exports = function (it) {
- if (it == undefined) throw TypeError("Can't call method on " + it);
- return it;
- };
- /***/ }),
- /***/ "bf0b":
- /***/ (function(module, exports, __webpack_require__) {
- var pIE = __webpack_require__("355d");
- var createDesc = __webpack_require__("aebd");
- var toIObject = __webpack_require__("36c3");
- var toPrimitive = __webpack_require__("1bc3");
- var has = __webpack_require__("07e3");
- var IE8_DOM_DEFINE = __webpack_require__("794b");
- var gOPD = Object.getOwnPropertyDescriptor;
- exports.f = __webpack_require__("8e60") ? gOPD : function getOwnPropertyDescriptor(O, P) {
- O = toIObject(O);
- P = toPrimitive(P, true);
- if (IE8_DOM_DEFINE) try {
- return gOPD(O, P);
- } catch (e) { /* empty */ }
- if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
- };
- /***/ }),
- /***/ "bf90":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
- var toIObject = __webpack_require__("36c3");
- var $getOwnPropertyDescriptor = __webpack_require__("bf0b").f;
- __webpack_require__("ce7e")('getOwnPropertyDescriptor', function () {
- return function getOwnPropertyDescriptor(it, key) {
- return $getOwnPropertyDescriptor(toIObject(it), key);
- };
- });
- /***/ }),
- /***/ "c366":
- /***/ (function(module, exports, __webpack_require__) {
- // false -> Array#indexOf
- // true -> Array#includes
- var toIObject = __webpack_require__("6821");
- var toLength = __webpack_require__("9def");
- var toAbsoluteIndex = __webpack_require__("77f1");
- module.exports = function (IS_INCLUDES) {
- return function ($this, el, fromIndex) {
- var O = toIObject($this);
- var length = toLength(O.length);
- var index = toAbsoluteIndex(fromIndex, length);
- var value;
- // Array#includes uses SameValueZero equality algorithm
- // eslint-disable-next-line no-self-compare
- if (IS_INCLUDES && el != el) while (length > index) {
- value = O[index++];
- // eslint-disable-next-line no-self-compare
- if (value != value) return true;
- // Array#indexOf ignores holes, Array#includes - not
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
- if (O[index] === el) return IS_INCLUDES || index || 0;
- } return !IS_INCLUDES && -1;
- };
- };
- /***/ }),
- /***/ "c3a1":
- /***/ (function(module, exports, __webpack_require__) {
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- var $keys = __webpack_require__("e6f3");
- var enumBugKeys = __webpack_require__("1691");
- module.exports = Object.keys || function keys(O) {
- return $keys(O, enumBugKeys);
- };
- /***/ }),
- /***/ "c5f6":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var global = __webpack_require__("7726");
- var has = __webpack_require__("69a8");
- var cof = __webpack_require__("2d95");
- var inheritIfRequired = __webpack_require__("5dbc");
- var toPrimitive = __webpack_require__("6a99");
- var fails = __webpack_require__("79e5");
- var gOPN = __webpack_require__("9093").f;
- var gOPD = __webpack_require__("11e9").f;
- var dP = __webpack_require__("86cc").f;
- var $trim = __webpack_require__("aa77").trim;
- var NUMBER = 'Number';
- var $Number = global[NUMBER];
- var Base = $Number;
- var proto = $Number.prototype;
- // Opera ~12 has broken Object#toString
- var BROKEN_COF = cof(__webpack_require__("2aeb")(proto)) == NUMBER;
- var TRIM = 'trim' in String.prototype;
- // 7.1.3 ToNumber(argument)
- var toNumber = function (argument) {
- var it = toPrimitive(argument, false);
- if (typeof it == 'string' && it.length > 2) {
- it = TRIM ? it.trim() : $trim(it, 3);
- var first = it.charCodeAt(0);
- var third, radix, maxCode;
- if (first === 43 || first === 45) {
- third = it.charCodeAt(2);
- if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
- } else if (first === 48) {
- switch (it.charCodeAt(1)) {
- case 66: case 98: radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i
- case 79: case 111: radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i
- default: return +it;
- }
- for (var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++) {
- code = digits.charCodeAt(i);
- // parseInt parses a string to a first unavailable symbol
- // but ToNumber should return NaN if a string contains unavailable symbols
- if (code < 48 || code > maxCode) return NaN;
- } return parseInt(digits, radix);
- }
- } return +it;
- };
- if (!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')) {
- $Number = function Number(value) {
- var it = arguments.length < 1 ? 0 : value;
- var that = this;
- return that instanceof $Number
- // check on 1..constructor(foo) case
- && (BROKEN_COF ? fails(function () { proto.valueOf.call(that); }) : cof(that) != NUMBER)
- ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);
- };
- for (var keys = __webpack_require__("9e1e") ? gOPN(Base) : (
- // ES3:
- 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
- // ES6 (in case, if modules with ES6 Number statics required before):
- 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +
- 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'
- ).split(','), j = 0, key; keys.length > j; j++) {
- if (has(Base, key = keys[j]) && !has($Number, key)) {
- dP($Number, key, gOPD(Base, key));
- }
- }
- $Number.prototype = proto;
- proto.constructor = $Number;
- __webpack_require__("2aba")(global, NUMBER, $Number);
- }
- /***/ }),
- /***/ "c69a":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
- return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
- });
- /***/ }),
- /***/ "ca5a":
- /***/ (function(module, exports) {
- var id = 0;
- var px = Math.random();
- module.exports = function (key) {
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
- };
- /***/ }),
- /***/ "cadf":
- /***/ (function(module, exports, __webpack_require__) {
- "use strict";
- var addToUnscopables = __webpack_require__("9c6c");
- var step = __webpack_require__("d53b");
- var Iterators = __webpack_require__("84f2");
- var toIObject = __webpack_require__("6821");
- // 22.1.3.4 Array.prototype.entries()
- // 22.1.3.13 Array.prototype.keys()
- // 22.1.3.29 Array.prototype.values()
- // 22.1.3.30 Array.prototype[@@iterator]()
- module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) {
- this._t = toIObject(iterated); // target
- this._i = 0; // next index
- this._k = kind; // kind
- // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
- }, function () {
- var O = this._t;
- var kind = this._k;
- var index = this._i++;
- if (!O || index >= O.length) {
- this._t = undefined;
- return step(1);
- }
- if (kind == 'keys') return step(0, index);
- if (kind == 'values') return step(0, O[index]);
- return step(0, [index, O[index]]);
- }, 'values');
- // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
- Iterators.Arguments = Iterators.Array;
- addToUnscopables('keys');
- addToUnscopables('values');
- addToUnscopables('entries');
- /***/ }),
- /***/ "cb7c":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("d3f4");
- module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
- };
- /***/ }),
- /***/ "ccb9":
- /***/ (function(module, exports, __webpack_require__) {
- exports.f = __webpack_require__("5168");
- /***/ }),
- /***/ "ce10":
- /***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__("69a8");
- var toIObject = __webpack_require__("6821");
- var arrayIndexOf = __webpack_require__("c366")(false);
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
- module.exports = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
- };
- /***/ }),
- /***/ "ce7e":
- /***/ (function(module, exports, __webpack_require__) {
- // most Object methods by ES6 should accept primitives
- var $export = __webpack_require__("63b6");
- var core = __webpack_require__("584a");
- var fails = __webpack_require__("294c");
- module.exports = function (KEY, exec) {
- var fn = (core.Object || {})[KEY] || Object[KEY];
- var exp = {};
- exp[KEY] = exec(fn);
- $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
- };
- /***/ }),
- /***/ "d3f4":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
- /***/ }),
- /***/ "d53b":
- /***/ (function(module, exports) {
- module.exports = function (done, value) {
- return { value: value, done: !!done };
- };
- /***/ }),
- /***/ "d812":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4f6b");
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__);
- /* unused harmony reexport * */
- /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
- /***/ }),
- /***/ "d864":
- /***/ (function(module, exports, __webpack_require__) {
- // optional / simple context binding
- var aFunction = __webpack_require__("79aa");
- module.exports = function (fn, that, length) {
- aFunction(fn);
- if (that === undefined) return fn;
- switch (length) {
- case 1: return function (a) {
- return fn.call(that, a);
- };
- case 2: return function (a, b) {
- return fn.call(that, a, b);
- };
- case 3: return function (a, b, c) {
- return fn.call(that, a, b, c);
- };
- }
- return function (/* ...args */) {
- return fn.apply(that, arguments);
- };
- };
- /***/ }),
- /***/ "d8e8":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
- return it;
- };
- /***/ }),
- /***/ "d9f6":
- /***/ (function(module, exports, __webpack_require__) {
- var anObject = __webpack_require__("e4ae");
- var IE8_DOM_DEFINE = __webpack_require__("794b");
- var toPrimitive = __webpack_require__("1bc3");
- var dP = Object.defineProperty;
- exports.f = __webpack_require__("8e60") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
- anObject(O);
- P = toPrimitive(P, true);
- anObject(Attributes);
- if (IE8_DOM_DEFINE) try {
- return dP(O, P, Attributes);
- } catch (e) { /* empty */ }
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
- if ('value' in Attributes) O[P] = Attributes.value;
- return O;
- };
- /***/ }),
- /***/ "dbdb":
- /***/ (function(module, exports, __webpack_require__) {
- var core = __webpack_require__("584a");
- var global = __webpack_require__("e53d");
- var SHARED = '__core-js_shared__';
- var store = global[SHARED] || (global[SHARED] = {});
- (module.exports = function (key, value) {
- return store[key] || (store[key] = value !== undefined ? value : {});
- })('versions', []).push({
- version: core.version,
- mode: __webpack_require__("b8e3") ? 'pure' : 'global',
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
- });
- /***/ }),
- /***/ "e11e":
- /***/ (function(module, exports) {
- // IE 8- don't enum bug keys
- module.exports = (
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
- ).split(',');
- /***/ }),
- /***/ "e265":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("ed33");
- /***/ }),
- /***/ "e4ae":
- /***/ (function(module, exports, __webpack_require__) {
- var isObject = __webpack_require__("f772");
- module.exports = function (it) {
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
- return it;
- };
- /***/ }),
- /***/ "e53d":
- /***/ (function(module, exports) {
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
- ? window : typeof self != 'undefined' && self.Math == Math ? self
- // eslint-disable-next-line no-new-func
- : Function('return this')();
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
- /***/ }),
- /***/ "e6f3":
- /***/ (function(module, exports, __webpack_require__) {
- var has = __webpack_require__("07e3");
- var toIObject = __webpack_require__("36c3");
- var arrayIndexOf = __webpack_require__("5b4e")(false);
- var IE_PROTO = __webpack_require__("5559")('IE_PROTO');
- module.exports = function (object, names) {
- var O = toIObject(object);
- var i = 0;
- var result = [];
- var key;
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
- // Don't enum bug & hidden keys
- while (names.length > i) if (has(O, key = names[i++])) {
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
- };
- /***/ }),
- /***/ "ebd6":
- /***/ (function(module, exports, __webpack_require__) {
- // 7.3.20 SpeciesConstructor(O, defaultConstructor)
- var anObject = __webpack_require__("cb7c");
- var aFunction = __webpack_require__("d8e8");
- var SPECIES = __webpack_require__("2b4c")('species');
- module.exports = function (O, D) {
- var C = anObject(O).constructor;
- var S;
- return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
- };
- /***/ }),
- /***/ "ebfd":
- /***/ (function(module, exports, __webpack_require__) {
- var META = __webpack_require__("62a0")('meta');
- var isObject = __webpack_require__("f772");
- var has = __webpack_require__("07e3");
- var setDesc = __webpack_require__("d9f6").f;
- var id = 0;
- var isExtensible = Object.isExtensible || function () {
- return true;
- };
- var FREEZE = !__webpack_require__("294c")(function () {
- return isExtensible(Object.preventExtensions({}));
- });
- var setMeta = function (it) {
- setDesc(it, META, { value: {
- i: 'O' + ++id, // object ID
- w: {} // weak collections IDs
- } });
- };
- var fastKey = function (it, create) {
- // return primitive with prefix
- if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return 'F';
- // not necessary to add metadata
- if (!create) return 'E';
- // add missing metadata
- setMeta(it);
- // return object ID
- } return it[META].i;
- };
- var getWeak = function (it, create) {
- if (!has(it, META)) {
- // can't set metadata to uncaught frozen object
- if (!isExtensible(it)) return true;
- // not necessary to add metadata
- if (!create) return false;
- // add missing metadata
- setMeta(it);
- // return hash weak collections IDs
- } return it[META].w;
- };
- // add metadata on freeze-family methods calling
- var onFreeze = function (it) {
- if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
- return it;
- };
- var meta = module.exports = {
- KEY: META,
- NEED: false,
- fastKey: fastKey,
- getWeak: getWeak,
- onFreeze: onFreeze
- };
- /***/ }),
- /***/ "ed33":
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__("014b");
- module.exports = __webpack_require__("584a").Object.getOwnPropertySymbols;
- /***/ }),
- /***/ "f6fd":
- /***/ (function(module, exports) {
- // document.currentScript polyfill by Adam Miller
- // MIT license
- (function(document){
- var currentScript = "currentScript",
- scripts = document.getElementsByTagName('script'); // Live NodeList collection
- // If browser needs currentScript polyfill, add get currentScript() to the document object
- if (!(currentScript in document)) {
- Object.defineProperty(document, currentScript, {
- get: function(){
- // IE 6-10 supports script readyState
- // IE 10+ support stack trace
- try { throw new Error(); }
- catch (err) {
- // Find the second match for the "at" string to get file src url from stack.
- // Specifically works with the format of stack traces in IE.
- var i, res = ((/.*at [^\(]*\((.*):.+:.+\)$/ig).exec(err.stack) || [false])[1];
- // For all scripts on the page, if src matches or if ready state is interactive, return the script tag
- for(i in scripts){
- if(scripts[i].src == res || scripts[i].readyState == "interactive"){
- return scripts[i];
- }
- }
- // If no match, return null
- return null;
- }
- }
- });
- }
- })(document);
- /***/ }),
- /***/ "f772":
- /***/ (function(module, exports) {
- module.exports = function (it) {
- return typeof it === 'object' ? it !== null : typeof it === 'function';
- };
- /***/ }),
- /***/ "fa5b":
- /***/ (function(module, exports, __webpack_require__) {
- module.exports = __webpack_require__("5537")('native-function-to-string', Function.toString);
- /***/ }),
- /***/ "fab2":
- /***/ (function(module, exports, __webpack_require__) {
- var document = __webpack_require__("7726").document;
- module.exports = document && document.documentElement;
- /***/ }),
- /***/ "fb15":
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
- // This file is imported into lib/wc client bundles.
- if (typeof window !== 'undefined') {
- if (true) {
- __webpack_require__("f6fd")
- }
- var setPublicPath_i
- if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
- __webpack_require__.p = setPublicPath_i[1] // eslint-disable-line
- }
- }
- // Indicate to webpack that this file can be concatenated
- /* harmony default export */ var setPublicPath = (null);
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-descriptor.js
- var get_own_property_descriptor = __webpack_require__("268f");
- var get_own_property_descriptor_default = /*#__PURE__*/__webpack_require__.n(get_own_property_descriptor);
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/get-own-property-symbols.js
- var get_own_property_symbols = __webpack_require__("e265");
- var get_own_property_symbols_default = /*#__PURE__*/__webpack_require__.n(get_own_property_symbols);
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/keys.js
- var keys = __webpack_require__("a4bb");
- var keys_default = /*#__PURE__*/__webpack_require__.n(keys);
- // EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/core-js/object/define-property.js
- var define_property = __webpack_require__("85f2");
- var define_property_default = /*#__PURE__*/__webpack_require__.n(define_property);
- // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty.js
- function _defineProperty(obj, key, value) {
- if (key in obj) {
- define_property_default()(obj, key, {
- value: value,
- enumerable: true,
- configurable: true,
- writable: true
- });
- } else {
- obj[key] = value;
- }
- return obj;
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/objectSpread.js
- function _objectSpread(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i] != null ? arguments[i] : {};
- var ownKeys = keys_default()(source);
- if (typeof get_own_property_symbols_default.a === 'function') {
- ownKeys = ownKeys.concat(get_own_property_symbols_default()(source).filter(function (sym) {
- return get_own_property_descriptor_default()(source, sym).enumerable;
- }));
- }
- ownKeys.forEach(function (key) {
- _defineProperty(target, key, source[key]);
- });
- }
- return target;
- }
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fa0e932-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/grid.vue?vue&type=template&id=07769ba6&
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"alt-grid-container",class:_vm.operatorClass,style:(_vm.containerStyle)},[_c('div',{staticClass:"alt-grid-item-drag-placeholder",class:_vm.placeholderClass,style:(_vm.getCardStyleForPlaceholder(_vm.placeholder))}),_vm._l((_vm.innerLayout),function(item,index){return _c('div',{key:item._id,ref:"cards",refInFor:true,staticClass:"alt-grid-item",class:[_vm.canDragClass(item.isDraggable), _vm.gridItemClass, item.gridItemClass],style:(item._alt_style),attrs:{"dg-id":item._id}},[(_vm.getFirstSetValue(item.isShowOriginCloseBtn, _vm.isShowOriginCloseBtn, true))?_c('button',{class:[_vm.closeHandlerClass, item.closeHandlerClass],on:{"click":function($event){return _vm.closeWidget(item._id)}}},[_vm._v("关闭")]):_vm._e(),_c(item.type,{ref:item._id,refInFor:true,tag:"component",attrs:{"alt-card-props":_vm.getPropsForInject(index, item)}}),(_vm.getFirstSetValue(item.isResizable, _vm.isResizable, true))?_c('span',{staticClass:"alt-grid-item-resize-handler",class:[_vm.resizeHandlerClass, item.resizeHandlerClass]}):_vm._e()],1)}),_c('div',{staticClass:"mask"})],2)}
- var staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/grid.vue?vue&type=template&id=07769ba6&
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.match.js
- var es6_regexp_match = __webpack_require__("4917");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.search.js
- var es6_regexp_search = __webpack_require__("386d");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js
- var es6_array_iterator = __webpack_require__("cadf");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
- var es6_object_keys = __webpack_require__("456d");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.replace.js
- var es6_regexp_replace = __webpack_require__("a481");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
- var web_dom_iterable = __webpack_require__("ac6a");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js
- var es6_regexp_split = __webpack_require__("28a5");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.constructor.js
- var es6_regexp_constructor = __webpack_require__("3b2b");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.constructor.js
- var es6_number_constructor = __webpack_require__("c5f6");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.number.is-integer.js
- var es6_number_is_integer = __webpack_require__("7cdf");
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.to-string.js
- var es6_regexp_to_string = __webpack_require__("6b54");
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__("8bbf");
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
- // CONCATENATED MODULE: ./src/utils/util.js
- // 深拷贝
- function deepCopy() {
- return JSON.parse(JSON.stringify(arguments.length <= 0 ? undefined : arguments[0]));
- } // 获取变量类型
- function getVariType(vari) {
- return Object.prototype.toString.call(vari).slice(8, -1).toLowerCase();
- } // 判断值是否为 undefined 或 null
- function isNil(val) {
- return val === undefined || val === null;
- } // 获取vue对象
- function getVue() {
- var temp = external_commonjs_vue_commonjs2_vue_root_Vue_default.a;
- if (temp) return temp;
- if (window.Vue) return window.Vue;
- return null;
- } // 判断是否为整数
- function isInteger(num) {
- if (Number.isInteger) return Number.isInteger(num);
- var s = num + '';
- return !~s.indexOf('.');
- } // 判断是否含有某个class
- function hasClass(dom, className) {
- var reg = new RegExp('(\\s|^)' + className + '(\\s|$)');
- var domClassName = dom.className;
- return reg.test(domClassName); // return ~domClassName.indexOf(className);
- } // 从event.path中遍历查找包含某个class的元素
- function findParentThoughEvtPath(evtPath, parentClass, stopClass) {
- var dom = null;
- for (var i = 0, l = evtPath.length; i < l; i++) {
- dom = evtPath[i];
- if (hasClass(dom, parentClass)) {
- return dom;
- }
- if (hasClass(dom, stopClass)) {
- return null;
- }
- }
- return null;
- }
- function util_getFirstSetValue() {
- var args = arguments;
- var l = args.length;
- for (var i = 0; i < l; i++) {
- if (!isNil(args[i])) return args[i];
- }
- return args[l - 1];
- }
- function forEach(arr, callBack) {
- if (!arr || !arr.length) return;
- for (var i = 0, j = arr.length; i < j; i++) {
- callBack && callBack(arr[i], i);
- }
- }
- function forEachValue(obj, fn) {
- Object.keys(obj).forEach(function (key) {
- return fn(obj[key], key);
- });
- }
- function getIndexOfArrayByAttr(arr, value, attr) {
- for (var i = 0; i < arr.length; i++) {
- if (attr) {
- if (arr[i][attr] === value) return i;
- } else {
- if (arr[i] === value) return i;
- }
- }
- return -1;
- } // 获取event.path的polyfill
- function getEventPath(event) {
- var target = event.target || null;
- var pathArr = [target];
- if (!target || !target.parentElement) {
- return [];
- }
- while (target.parentElement) {
- target = target.parentElement;
- pathArr.unshift(target);
- }
- return pathArr;
- } // 标准化event对象
- function normalizeEvent(event) {
- var evt = event;
- if (!evt.path) {
- evt.path = evt.composedPath && evt.composedPath() || getEventPath(event);
- }
- return evt;
- }
- function isDragIgnoreFrom(target, currentCard, ignoreFrom) {
- var ignoreElementList = currentCard.querySelectorAll(ignoreFrom);
- for (var i = 0, j = ignoreElementList.length; i < j; i++) {
- if (ignoreElementList[i] === target) {
- return true;
- }
- }
- return false;
- }
- function getUniqueID(len, radix) {
- var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
- var uuid = [],
- i;
- radix = radix || chars.length;
- if (len) {
- // Compact form
- for (i = 0; i < len; i++) {
- uuid[i] = chars[0 | Math.random() * radix];
- }
- } else {
- // 参考rfc4122,https://tools.ietf.org/html/rfc4122
- var r;
- uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
- uuid[14] = '4';
- for (i = 0; i < 36; i++) {
- if (!uuid[i]) {
- r = 0 | Math.random() * 16;
- uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r];
- }
- }
- }
- return uuid.join('');
- }
- // CONCATENATED MODULE: ./src/utils/device.js
- var platform = navigator.platform;
- var isMac = ['Mac68K', 'MacPPC', 'Macintosh', 'MacIntel'].indexOf(platform) > -1;
- var device = {
- isMac: isMac
- };
- /* harmony default export */ var utils_device = (device);
- // CONCATENATED MODULE: ./src/utils/watch-box-size.js
- function watchBoxSizeChange(el, handler) {
- if (!(el instanceof HTMLElement)) {
- throw new TypeError('第一个参数必须是一个html元素');
- }
- if (/^(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr|script|style|textarea|title)$/i.test(el.tagName)) {
- throw new TypeError('不支持当前元素类型,可以尝试使用div');
- }
- if (typeof handler !== 'function') {
- throw new TypeError('第二个参数必须是一个函数');
- }
- this.el = el;
- this.handler = handler;
- this.hadInitScrollListener = false;
- this.checkHidden();
- }
- watchBoxSizeChange.prototype.checkHidden = function checkHidden() {
- var _this = this;
- requestAnimationFrame(function () {
- var width = _this.el.offsetWidth;
- var height = _this.el.offsetHeight;
- if (width === 0 && height === 0) {
- _this.checkHidden();
- } else {
- _this.handler();
- _this.init();
- _this.hadInitScrollListener = true;
- }
- });
- };
- watchBoxSizeChange.prototype.init = function init() {
- // 最后一次变动的宽高
- this.lastWidth = this.el.offsetWidth || 1;
- this.lastHeight = this.el.offsetHeight || 1; // 最大宽高
- this.maxWidth = 10000 * this.lastWidth;
- this.maxHeight = 10000 * this.lastHeight; // 变动宽高
- this.newWidth = 0;
- this.newHeight = 0;
- this.expand = document.createElement('div');
- this.expand.style.cssText = 'position:absolute;top:0;bottom:0;left:0;right:0;z-index=-10000;overflow:hidden;visibility:hidden;';
- this.shrink = this.expand.cloneNode(false);
- var expandChild = document.createElement('div');
- expandChild.style.cssText = 'transition:0s;animation:none;';
- var shrinkChild = expandChild.cloneNode(false);
- expandChild.style.width = this.maxWidth + 'px';
- expandChild.style.height = this.maxHeight + 'px';
- shrinkChild.style.width = '250%';
- shrinkChild.style.height = '250%';
- this.expand.appendChild(expandChild);
- this.shrink.appendChild(shrinkChild);
- this.el.appendChild(this.expand);
- this.el.appendChild(this.shrink);
- if (this.expand.offsetParent !== this.el) {
- this.el.style.position = 'relative';
- }
- this.expand.scrollTop = this.shrink.scrollTop = this.maxHeight;
- this.expand.scrollLeft = this.shrink.scrollLeft = this.maxWidth;
- this.bindOnScroll = null;
- this.addListener();
- };
- watchBoxSizeChange.prototype.onScroll = function onScroll() {
- this.newWidth = this.el.offsetWidth || 1;
- this.newHeight = this.el.offsetHeight || 1;
- if (this.newWidth !== this.lastWidth || this.newHeight !== this.lastHeight) {
- requestAnimationFrame(this.onResize.bind(this));
- }
- this.expand.scrollTop = this.shrink.scrollTop = this.maxHeight;
- this.expand.scrollLeft = this.shrink.scrollLeft = this.maxWidth;
- };
- watchBoxSizeChange.prototype.onResize = function onResize() {
- this.lastWidth = this.newWidth;
- this.lastHeight = this.newHeight;
- this.handler(this.lastWidth, this.lastHeight);
- };
- watchBoxSizeChange.prototype.addListener = function addListener() {
- this.bindOnScroll = this.onScroll.bind(this);
- this.expand.addEventListener('scroll', this.bindOnScroll, false);
- this.shrink.addEventListener('scroll', this.bindOnScroll, false);
- };
- watchBoxSizeChange.prototype.removeListener = function removeListener() {
- this.expand.removeEventListener('scroll', this.bindOnScroll, false);
- this.shrink.removeEventListener('scroll', this.bindOnScroll, false);
- };
- watchBoxSizeChange.prototype.destroy = function destroy() {
- if (this.hadInitScrollListener) {
- this.removeListener();
- this.el.removeChild(this.expand);
- this.el.removeChild(this.shrink);
- }
- };
- /* harmony default export */ var watch_box_size = (watchBoxSizeChange);
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.fill.js
- var es6_array_fill = __webpack_require__("6c7b");
- // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/classCallCheck.js
- function _classCallCheck(instance, Constructor) {
- if (!(instance instanceof Constructor)) {
- throw new TypeError("Cannot call a class as a function");
- }
- }
- // CONCATENATED MODULE: ./node_modules/@babel/runtime-corejs2/helpers/esm/createClass.js
- function _defineProperties(target, props) {
- for (var i = 0; i < props.length; i++) {
- var descriptor = props[i];
- descriptor.enumerable = descriptor.enumerable || false;
- descriptor.configurable = true;
- if ("value" in descriptor) descriptor.writable = true;
- define_property_default()(target, descriptor.key, descriptor);
- }
- }
- function _createClass(Constructor, protoProps, staticProps) {
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
- if (staticProps) _defineProperties(Constructor, staticProps);
- return Constructor;
- }
- // CONCATENATED MODULE: ./src/utils/rect.js
- var rect_Rect =
- /*#__PURE__*/
- function () {
- function Rect() {
- var info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var coors = arguments.length > 1 ? arguments[1] : undefined;
- _classCallCheck(this, Rect);
- this.appendUniqueId(info);
- this.x = this.isNotNegativeNumber(info.x) ? info.x : 0;
- this.y = this.isNotNegativeNumber(info.y) ? info.y : 0;
- this.w = this.isPositiveNumber(info.w) ? info.w : 1;
- this.h = this.isPositiveNumber(info.h) ? info.h : 1;
- this.id = info._id;
- this.rawInfo = info;
- this.coors = coors;
- }
- _createClass(Rect, [{
- key: "setPos",
- value: function setPos(pos) {
- var attrs = ['x', 'y', 'w', 'h'];
- var attrName;
- var tempValue;
- for (var i = 0, j = attrs.length; i < j; i++) {
- attrName = attrs[i];
- tempValue = pos[attrName];
- if (!isNil(tempValue)) {
- this[attrName] = tempValue;
- this.rawInfo[attrName] = tempValue;
- }
- }
- }
- }, {
- key: "moveTo",
- value: function moveTo(x, y) {
- if (this.coors.maxWidth && x + this.w > this.coors.maxWidth) {
- x = this.coors.maxWidth - this.w;
- }
- if (x < 0) x = 0;
- if (y < 0) y = 0;
- this.coors._moveTo(this.id, {
- x: x,
- y: y
- });
- }
- }, {
- key: "resizeTo",
- value: function resizeTo(w, h) {
- if (this.coors.maxWidth && w + this.x > this.coors.maxWidth) {
- w = this.coors.maxWidth - this.x;
- }
- if (w < 1) w = 1;
- if (h < 1) h = 1;
- this.coors._resizeTo(this.id, {
- w: w,
- h: h
- });
- }
- }, {
- key: "moveDown",
- value: function moveDown(rows) {
- this.coors._moveDown(this.id, rows);
- }
- }, {
- key: "fill",
- value: function fill(value) {
- this.coors.coorsFillRect(this.x, this.y, this.w, this.h, value);
- } // 判断是否是正整数
- }, {
- key: "isPositiveNumber",
- value: function isPositiveNumber(num) {
- if (isNil(num)) return false;
- return num > 0;
- } // 判断是否为非负数 也就是 大于等于0
- }, {
- key: "isNotNegativeNumber",
- value: function isNotNegativeNumber(num) {
- if (isNil(num)) return false;
- return num >= 0;
- }
- }, {
- key: "appendUniqueId",
- value: function appendUniqueId(item) {
- if (!item._id) {
- item._id = this.getUniqueId();
- }
- }
- }, {
- key: "getUniqueId",
- value: function getUniqueId(len, radix) {
- var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
- var uuid = [],
- i;
- radix = radix || chars.length;
- if (len) {
- // Compact form
- for (i = 0; i < len; i++) {
- uuid[i] = chars[0 | Math.random() * radix];
- }
- } else {
- // 参考rfc4122,https://tools.ietf.org/html/rfc4122
- var r;
- uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
- uuid[14] = '4';
- for (i = 0; i < 36; i++) {
- if (!uuid[i]) {
- r = 0 | Math.random() * 16;
- uuid[i] = chars[i == 19 ? r & 0x3 | 0x8 : r];
- }
- }
- }
- return uuid.join('');
- }
- }]);
- return Rect;
- }();
- /* harmony default export */ var utils_rect = (rect_Rect);
- // CONCATENATED MODULE: ./src/utils/coordinate.js
- var coordinate_Coordinate =
- /*#__PURE__*/
- function () {
- function Coordinate() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- _classCallCheck(this, Coordinate);
- this.coors = [];
- this.coorItemsMap = {};
- this.maxWidth = options.maxWidth;
- }
- _createClass(Coordinate, [{
- key: "add",
- value: function add(info) {
- /**
- * 1. 判断位置参数合法性,不合法则自动分配
- * 2. 添加到坐标系
- * 3. 返回 id
- */
- var rectItem = new utils_rect(info, this);
- this.distributeRectPosition(rectItem);
- this.coorsFillRect(rectItem.x, rectItem.y, rectItem.w, rectItem.h, rectItem);
- this.coorItemsMap[rectItem.id] = rectItem;
- return rectItem;
- }
- }, {
- key: "coorsFillRect",
- value: function coorsFillRect(x, y, w, h, value) {
- var arr = this.coors;
- var row;
- for (var i = y; i < y + h; i++) {
- row = arr[i];
- if (isNil(row)) {
- arr[i] = [];
- }
- for (var j = x; j < x + w; j++) {
- arr[i][j] = value;
- }
- }
- }
- }, {
- key: "coorsGetRectItems",
- value: function coorsGetRectItems(x, y, w, h) {
- var itemsList = [];
- var row, cell;
- for (var i = y; i < y + h; i++) {
- row = this.coors[i] || [];
- for (var j = x; j < x + w; j++) {
- cell = row[j];
- if (!isNil(cell)) {
- itemsList.push(cell);
- }
- }
- }
- return itemsList;
- }
- }, {
- key: "distributeRectPosition",
- value: function distributeRectPosition(rectInstance) {
- if (!this.checkRectPositionIsLegal(rectInstance, this.coors)) {
- var legalPos = this.getLegalPosition(rectInstance, this.coorItemsMap);
- rectInstance.setPos(legalPos);
- }
- }
- }, {
- key: "getLegalPosition",
- value: function getLegalPosition(rectInstance, itemsMap) {
- var x = rectInstance.x;
- var y = rectInstance.y;
- var w = rectInstance.w;
- var h = rectInstance.h;
- var colsHeight = [];
- var tempItem = null;
- var tempY = 0;
- forEach(Object.keys(itemsMap), function (key) {
- tempItem = itemsMap[key];
- tempY = tempItem.y + tempItem.h;
- for (var m = tempItem.x; m < tempItem.x + tempItem.w; m++) {
- if (tempY > (colsHeight[m] || 0)) {
- colsHeight[m] = tempY;
- }
- }
- });
- var max = this.maxWidth || colsHeight.length + w;
- for (var i = 0; i < max; i++) {
- if (isNil(colsHeight[i])) {
- colsHeight[i] = 0;
- }
- }
- var index = this.getMinPeek(colsHeight, w);
- x = ~index ? index : 0;
- y = colsHeight[x] || 0;
- return {
- x: x,
- y: y,
- w: w,
- h: h
- };
- }
- }, {
- key: "getMinPeek",
- value: function getMinPeek(arr, w) {
- if (w === 1) {
- var minVal = Math.min.apply(null, arr);
- return arr.indexOf(minVal);
- }
- var index = -1;
- var value = Infinity;
- for (var i = 0; i < arr.length - w + 1; i++) {
- var flag = true;
- var item = arr[i];
- for (var j = i + 1; j < i + w; j++) {
- if (item < arr[j]) {
- flag = false;
- break;
- }
- }
- if (flag && item < value) {
- value = item;
- index = i;
- }
- }
- return index;
- } // 检查位置是否合法
- }, {
- key: "checkRectPositionIsLegal",
- value: function checkRectPositionIsLegal(item, coors) {
- var x = item.x;
- var y = item.y;
- var w = item.w;
- var h = item.h;
- for (var i = y; i < y + h; i++) {
- if (isNil(coors[i])) continue;
- for (var j = x; j < x + w; j++) {
- if (!isNil(coors[i][j])) {
- return false;
- }
- }
- }
- return true;
- }
- }, {
- key: "_moveTo",
- value: function _moveTo(id) {
- var pos = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- /**
- * 1. 找到对应的id
- * 2. 判断移动的
- */
- if (isNil(pos.x) || isNil(pos.y)) return;
- var rectItem = this.coorItemsMap[id];
- rectItem.fill(null);
- var targetRect = {
- x: pos.x,
- y: pos.y,
- w: rectItem.w,
- h: rectItem.h
- };
- var targetAreaRectItems = this.coorsGetFirstItemForColsInRect(targetRect);
- var targetBottomLine = {
- x: targetRect.x,
- y: targetRect.y + targetRect.h,
- w: targetRect.w
- };
- forEach(targetAreaRectItems, function (item) {
- item.moveDown(targetBottomLine.y - item.y);
- });
- rectItem.setPos(targetRect);
- this.coorsFillRect(targetRect.x, targetRect.y, targetRect.w, targetRect.h, rectItem);
- this._moveUpAll();
- }
- }, {
- key: "_resizeTo",
- value: function _resizeTo(id) {
- var rect = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
- if (isNil(rect.w) || isNil(rect.h)) return;
- var rectItem = this.coorItemsMap[id];
- rectItem.fill(null);
- var targetRect = {
- x: rectItem.x,
- y: rectItem.y,
- w: rect.w,
- h: rect.h
- };
- var targetAreaRectItems = this.coorsGetFirstItemForColsInRect(targetRect);
- var targetBottomLine = {
- x: targetRect.x,
- y: targetRect.y + targetRect.h,
- w: targetRect.w
- };
- forEach(targetAreaRectItems, function (item) {
- item.moveDown(targetBottomLine.y - item.y);
- });
- rectItem.setPos(targetRect);
- rectItem.fill(rectItem); // this.coorsFillRect(targetRect.x, targetRect.y, targetRect.w, targetRect.h, rectItem);
- this._moveUpAll();
- }
- }, {
- key: "_moveDown",
- value: function _moveDown(id, rows) {
- var rectItem = this.coorItemsMap[id];
- rectItem.fill(null);
- var belowItems = this.coorsGetFirstItemForColsInRect({
- x: rectItem.x,
- y: rectItem.y + rectItem.h,
- w: rectItem.w,
- h: rectItem.h + rows
- });
- var targetBottomLine = {
- x: rectItem.x,
- y: rectItem.y + rectItem.h + rows,
- w: rectItem.w
- };
- forEach(belowItems, function (item) {
- item.moveDown(targetBottomLine.y - item.y);
- });
- rectItem.setPos({
- y: rectItem.y + rows
- });
- rectItem.fill(rectItem);
- }
- }, {
- key: "coorsGetFirstItemForColsInRect",
- value: function coorsGetFirstItemForColsInRect(rect) {
- var x = rect.x,
- y = rect.y,
- w = rect.w,
- h = rect.h;
- var itemsList = [];
- var mapList = [];
- var row, cell;
- for (var i = y; i < y + h; i++) {
- row = this.coors[i] || [];
- for (var j = x; j < x + w; j++) {
- cell = row[j];
- if (!isNil(cell) && !mapList[j] && this.checkLineIsLegal(cell, mapList)) {
- mapList[j] = cell;
- if (!~itemsList.indexOf(cell)) {
- itemsList.push(cell);
- }
- }
- }
- if (itemsList.length >= w) break;
- }
- return itemsList;
- }
- }, {
- key: "checkLineIsLegal",
- value: function checkLineIsLegal(cell, line) {
- for (var i = cell.x; i < cell.x + cell.w; i++) {
- if (!isNil(line[i]) && cell !== line[i]) {
- return false;
- }
- }
- return true;
- }
- }, {
- key: "getEmptyRowsBeforeLine",
- value: function getEmptyRowsBeforeLine(x, y, w) {
- if (y === 0) return 0;
- var count = 0;
- var row, cell;
- for (var rowNum = y - 1; rowNum >= 0; rowNum--) {
- row = this.coors[rowNum] || [];
- for (var colNum = x; colNum < x + w; colNum++) {
- cell = row[colNum];
- if (!isNil(cell)) {
- return count;
- }
- }
- count++;
- }
- return count;
- }
- }, {
- key: "_moveUpAll",
- value: function _moveUpAll() {
- var me = this;
- forEach(this.coors, function (row) {
- forEach(row || [], function (cell) {
- if (!cell || cell.y === 0) return;
- var canUpRows = me.getEmptyRowsBeforeLine(cell.x, cell.y, cell.w);
- cell.fill(null);
- cell.setPos({
- y: cell.y - canUpRows
- });
- cell.fill(cell);
- });
- });
- }
- }, {
- key: "clear",
- value: function clear() {
- this.coors = [];
- this.coorItemsMap = {};
- }
- }, {
- key: "batchAddItem",
- value: function batchAddItem(itemList) {
- var me = this;
- forEach(itemList, function (item) {
- me.add(item);
- });
- this._moveUpAll();
- }
- }, {
- key: "getAllItems",
- value: function getAllItems() {
- var list = [];
- var itemMap = this.coorItemsMap;
- forEach(Object.keys(itemMap), function (key) {
- list.push(itemMap[key].rawInfo);
- });
- return list;
- }
- }, {
- key: "remove",
- value: function remove(id) {
- var rectItem = this.coorItemsMap[id];
- if (rectItem) {
- rectItem.fill(null);
- delete this.coorItemsMap[id];
- this._moveUpAll();
- }
- return rectItem;
- }
- }, {
- key: "replace",
- value: function replace(id, info) {
- var rectItem = this.coorItemsMap[id];
- if (rectItem && rectItem.x === info.x && rectItem.y === info.y && rectItem.w === info.w && rectItem.h === info.h) {
- rectItem.fill(null);
- delete this.coorItemsMap[id];
- var newRectItem = new utils_rect(info, this);
- newRectItem.fill(newRectItem);
- this.coorItemsMap[newRectItem.id] = newRectItem;
- return newRectItem;
- }
- return null;
- }
- }, {
- key: "getItemById",
- value: function getItemById(id) {
- return this.coorItemsMap[id];
- }
- }]);
- return Coordinate;
- }();
- /* harmony default export */ var coordinate = (coordinate_Coordinate);
- // CONCATENATED MODULE: ./src/utils/coordinate.test.js
- function autoMove(that, layout) {
- // that.coors.moveItemTo(layout[6], {
- // x: layout[6].x,
- // y: layout[6].y - 1
- // })
- // for(let i = 4; i > 0; i--){
- // that.coors.moveItemTo(layout[3], {
- // x: layout[3].x - 1,
- // y: layout[3].y
- // })
- // }
- // for(let i = 4; i > 0; i--){
- // that.coors.moveItemTo(layout[3], {
- // x: layout[3].x + 1,
- // y: layout[3].y
- // })
- // }
- // that.coors.moveItemTo(layout[0], {
- // x: layout[0].x + 1,
- // y: layout[0].y
- // })
- // that.coors.moveItemTo(layout[0], {
- // x: layout[0].x + 1,
- // y: layout[0].y
- // })
- // that.coors.moveItemTo(layout[2], {
- // x: layout[2].x - 1,
- // y: layout[2].y
- // })
- // for(let i = 4; i > 0; i--){
- // that.coors.moveItemTo(layout[3], {
- // x: layout[3].x - 1,
- // y: layout[3].y
- // })
- // }
- // that.coors.moveItemTo(layout[3], {
- // x: layout[3].x,
- // y: layout[3].y + 1
- // })
- that.coors.moveItemTo(layout[6], {
- x: 2,
- y: 1
- });
- }
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"0fa0e932-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.render.vue?vue&type=template&id=67aab659&
- var Widget_rendervue_type_template_id_67aab659_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
- var Widget_rendervue_type_template_id_67aab659_staticRenderFns = []
- // CONCATENATED MODULE: ./src/components/Widget.render.vue?vue&type=template&id=67aab659&
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.render.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- /* harmony default export */ var Widget_rendervue_type_script_lang_js_ = ({
- props: ['altCardProps']
- });
- // CONCATENATED MODULE: ./src/components/Widget.render.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Widget_rendervue_type_script_lang_js_ = (Widget_rendervue_type_script_lang_js_);
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
- /* globals __VUE_SSR_CONTEXT__ */
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
- // This module is a runtime utility for cleaner component module output and will
- // be included in the final webpack user bundle.
- function normalizeComponent (
- scriptExports,
- render,
- staticRenderFns,
- functionalTemplate,
- injectStyles,
- scopeId,
- moduleIdentifier, /* server only */
- shadowMode /* vue-cli only */
- ) {
- // Vue.extend constructor export interop
- var options = typeof scriptExports === 'function'
- ? scriptExports.options
- : scriptExports
- // render functions
- if (render) {
- options.render = render
- options.staticRenderFns = staticRenderFns
- options._compiled = true
- }
- // functional template
- if (functionalTemplate) {
- options.functional = true
- }
- // scopedId
- if (scopeId) {
- options._scopeId = 'data-v-' + scopeId
- }
- var hook
- if (moduleIdentifier) { // server build
- hook = function (context) {
- // 2.3 injection
- context =
- context || // cached call
- (this.$vnode && this.$vnode.ssrContext) || // stateful
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
- // 2.2 with runInNewContext: true
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
- context = __VUE_SSR_CONTEXT__
- }
- // inject component styles
- if (injectStyles) {
- injectStyles.call(this, context)
- }
- // register component module identifier for async chunk inferrence
- if (context && context._registeredComponents) {
- context._registeredComponents.add(moduleIdentifier)
- }
- }
- // used by ssr in case component is cached and beforeCreate
- // never gets called
- options._ssrRegister = hook
- } else if (injectStyles) {
- hook = shadowMode
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
- : injectStyles
- }
- if (hook) {
- if (options.functional) {
- // for template-only hot-reload because in that case the render fn doesn't
- // go through the normalizer
- options._injectStyles = hook
- // register for functioal component in vue file
- var originalRender = options.render
- options.render = function renderWithStyleInjection (h, context) {
- hook.call(context)
- return originalRender(h, context)
- }
- } else {
- // inject component registration as beforeCreate hook
- var existing = options.beforeCreate
- options.beforeCreate = existing
- ? [].concat(existing, hook)
- : [hook]
- }
- }
- return {
- exports: scriptExports,
- options: options
- }
- }
- // CONCATENATED MODULE: ./src/components/Widget.render.vue
- /* normalize component */
- var component = normalizeComponent(
- components_Widget_rendervue_type_script_lang_js_,
- Widget_rendervue_type_template_id_67aab659_render,
- Widget_rendervue_type_template_id_67aab659_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* harmony default export */ var Widget_render = (component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.template.vue?vue&type=script&lang=js&
- /* harmony default export */ var Widget_templatevue_type_script_lang_js_ = ({
- props: ['altCardProps'],
- template: '<div></div>'
- });
- // CONCATENATED MODULE: ./src/components/Widget.template.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Widget_templatevue_type_script_lang_js_ = (Widget_templatevue_type_script_lang_js_);
- // CONCATENATED MODULE: ./src/components/Widget.template.vue
- var Widget_template_render, Widget_template_staticRenderFns
- /* normalize component */
- var Widget_template_component = normalizeComponent(
- components_Widget_templatevue_type_script_lang_js_,
- Widget_template_render,
- Widget_template_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* harmony default export */ var Widget_template = (Widget_template_component.exports);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Widget.vuecomponent.vue?vue&type=script&lang=js&
- /* harmony default export */ var Widget_vuecomponentvue_type_script_lang_js_ = ({
- props: ['altCardProps']
- });
- // CONCATENATED MODULE: ./src/components/Widget.vuecomponent.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_Widget_vuecomponentvue_type_script_lang_js_ = (Widget_vuecomponentvue_type_script_lang_js_);
- // CONCATENATED MODULE: ./src/components/Widget.vuecomponent.vue
- var Widget_vuecomponent_render, Widget_vuecomponent_staticRenderFns
- /* normalize component */
- var Widget_vuecomponent_component = normalizeComponent(
- components_Widget_vuecomponentvue_type_script_lang_js_,
- Widget_vuecomponent_render,
- Widget_vuecomponent_staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* harmony default export */ var Widget_vuecomponent = (Widget_vuecomponent_component.exports);
- // CONCATENATED MODULE: ./src/components/props.js
- var props_props = {
- layout: {
- type: Array,
- default: function _default() {
- return [];
- }
- },
- isDraggable: {
- // 是否可以拖拽
- type: Boolean,
- default: true
- },
- isResizable: {
- // 是否可以调整大小
- type: Boolean,
- default: true
- },
- rowHeight: {
- // 每行高度
- type: Number,
- default: 150,
- validator: function validator(value) {
- return !isNaN(value) && value > 0;
- }
- },
- maxRows: {
- // 最大
- type: Number,
- default: Infinity
- },
- margin: {
- type: Array,
- default: function _default() {
- return [10, 10];
- }
- },
- // 元素的右边距和下边距
- colNum: {
- // 列数
- type: Number,
- default: 12
- },
- backgroundColor: {
- // 背景颜色
- type: String,
- default: 'rgba(200,200,200,1)'
- },
- gridItemClass: {
- // 每一个卡片的class
- type: String,
- default: ''
- },
- closeHandlerClass: {
- // 关闭按钮的class
- type: String,
- default: ''
- },
- resizeHandlerClass: {
- // 设置大小按钮的class
- type: String,
- default: 'alt-g-i-r-h-default-style'
- },
- placeholderClass: {
- // 拖拽时 placeholder 的class
- type: String,
- default: ''
- },
- isShowOriginCloseBtn: {
- type: Boolean,
- default: true
- },
- width: {
- type: [Number, Boolean],
- default: false
- }
- };
- /* harmony default export */ var components_props = (props_props);
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/grid.vue?vue&type=script&lang=js&
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- // import elementResizeDetectorMaker from 'element-resize-detector'
- var Vue = getVue();
- /* harmony default export */ var gridvue_type_script_lang_js_ = ({
- name: 'alt-grid-layout',
- addWidgetType: function addWidgetType() {
- var args0 = arguments[0];
- var type = getVariType(args0);
- if (type === 'string') {
- this._addWidgetType.apply(this, arguments);
- } else if (type === 'object') {
- for (var key in args0) {
- args0.hasOwnProperty(key) && this._addWidgetType(key, args0[key]);
- }
- }
- },
- // 添加组件类型处理函数
- _addWidgetType: function _addWidgetType(type, widget) {
- var parentWidget = widget.template ? Widget_template : Widget_render;
- if (widget.super == Vue) {
- this.components[type] = widget.extend(Widget_vuecomponent);
- return;
- }
- this.components[type] = _objectSpread({}, widget, {
- extends: parentWidget
- });
- },
- props: components_props,
- data: function data() {
- return {
- innerLayout: [],
- // 布局源数据
- defVal: {
- minH: 1,
- // 默认每个卡片的最小高度
- minW: 1,
- // 默认每个卡片的最小宽度
- maxH: Infinity,
- // 默认每个卡片的最大高度
- maxW: Infinity,
- // 默认每个卡片的最大宽度
- isDraggable: true,
- // 默认每个卡片是否支持拖拽
- isResizable: true,
- // 默认每个卡片是否支持设置大小
- isShowOriginCloseBtn: true,
- // 是否显示默认的关闭按钮
- dragIgnoreFrom: 'a, input, button, textarea'
- },
- containerHeight: 0,
- // 容器高度
- cols: [],
- cacheComputed: {},
- placeholder: null,
- // 拖拽的placeholder
- preOperator: 0,
- // 防止点击事件是触发拖动样式,先赋值给preOperator,如果用户继续执行move,则将preOperator赋值给operator
- operator: 0,
- // 当前操作状态,0 - 无操作,1 - 拖拽, 2 - 缩放
- operatedItem: null,
- // 当前被操作的元素的状态
- containerWidth: 0,
- boxWatchHandler: null,
- coors: null,
- timer: null,
- animation: null,
- animationHandler: null,
- eventHandler: {
- mousedown: null,
- mousemove: null,
- mouseup: null
- }
- };
- },
- mounted: function mounted() {
- var _this = this;
- this.initCols();
- if (this.width === false) {
- this.boxWatchHandler = new watch_box_size(this.$el, function () {
- _this.initCols();
- });
- } // 绑定拖拽事件
- this.bindEvents();
- this.setLayout(this.layout);
- },
- destroyed: function destroyed() {
- this.boxWatchHandler.destroy(); // this.erd.uninstall(this.$el);
- this.unbindEvents();
- clearTimeout(this.timer);
- },
- watch: {
- // layout(val){
- // this.setLayout(val);
- // },
- rowHeight: function rowHeight() {
- this.reRenderStyle({
- triggerEventEnd: true,
- onlyReRender: true
- });
- },
- colNum: function colNum(val) {
- // console.log('change col number');
- if (this.coors) {
- this.coors.setMaxWidth = parseInt(val);
- }
- this.initCols();
- },
- cols: function cols() {
- // console.log('cols change');
- this.cacheComputed = {};
- if (this.operator) return;
- this.reRenderStyle({
- triggerEventEnd: true,
- onlyReRender: true
- });
- },
- margin: function margin() {
- this.cacheComputed = {};
- this.reRenderStyle();
- },
- backgroundColor: function backgroundColor() {
- // this.reRenderStyle();
- this.forceReRenderStyle();
- },
- width: function width() {
- this.initCols();
- }
- },
- computed: {
- containerStyle: function containerStyle() {
- return {
- height: this.containerHeight + 'px'
- };
- },
- operatorClass: function operatorClass() {
- if (!this.operator) return '';
- if (this.operator === 1) {
- return 'alt-grid-container-operating alt-move';
- } else if (this.operator === 2) {
- return 'alt-grid-container-operating alt-resize';
- }
- return '';
- }
- },
- methods: {
- resetResize: function resetResize() {
- var _this2 = this;
- this.boxWatchHandler.destroy();
- this.boxWatchHandler = new watch_box_size(this.$el, function () {
- _this2.initCols();
- });
- },
- bindEvents: function bindEvents() {
- this.eventHandler.mousedown = this.mousedown.bind(this);
- this.eventHandler.mousemove = this.mousemove.bind(this);
- this.eventHandler.mouseup = this.mouseup.bind(this);
- this.$el.addEventListener('mousedown', this.eventHandler.mousedown);
- document.addEventListener('mousemove', this.eventHandler.mousemove);
- document.addEventListener('mouseup', this.eventHandler.mouseup);
- },
- unbindEvents: function unbindEvents() {
- this.$el.removeEventListener('mousedown', this.eventHandler.mousedown);
- document.removeEventListener('mousemove', this.eventHandler.mousemove);
- document.removeEventListener('mouseup', this.eventHandler.mouseup);
- },
- canDragClass: function canDragClass(isDraggable) {
- return util_getFirstSetValue(isDraggable, this.isDraggable, true) ? 'can-drag' : '';
- },
- forceReRenderStyle: function forceReRenderStyle() {
- var _this3 = this;
- if (this.timer) clearTimeout(this.timer);
- this.timer = setTimeout(function () {
- _this3.innerLayout.forEach(function (item) {
- var style = _this3.getCardStyle(item);
- _this3.$set(item, '_alt_style', style); // item.style = style;
- });
- }, 10);
- },
- reRenderStyle: function reRenderStyle() {
- var _this4 = this;
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var ignoreId = options.ignoreId;
- var triggerEventEnd = options.triggerEventEnd;
- var onlyReRender = options.onlyReRender;
- if (this.timer) clearTimeout(this.timer);
- this.timer = setTimeout(function () {
- _this4.containerHeight = 0;
- _this4.innerLayout.forEach(function (item, index) {
- if (item._id === ignoreId) return;
- var card = _this4.$refs.cards[index];
- var oldStyle = {
- style: card.style,
- width: card.style.width,
- height: card.style.height,
- transform: card.style.transform
- };
- if (oldStyle.transform) {
- oldStyle.transform = oldStyle.transform.replace(/\s/g, '');
- }
- var styleRaw = _this4.getCardStyle(item, true);
- _this4.$set(item, '_alt_style', styleRaw.style); // item.style = style;
- var status = _this4.getCardRectChangeStatus(oldStyle, styleRaw, ['width', 'height', 'transform'], {
- triggerEventEnd: triggerEventEnd
- });
- if (status === 'none') return;
- _this4.dispatchEvent(item._id, status, {
- w: item.w,
- h: item.h,
- x: item.x,
- y: item.y,
- layout: _this4.innerLayout,
- onlyReRender: onlyReRender
- }); // console.log('create Style:', styleRaw, oldStyle, index);
- });
- }, 10);
- },
- getCardRectChangeStatus: function getCardRectChangeStatus(arg1, arg2, range) {
- var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
- var triggerEventEnd = options.triggerEventEnd;
- var keys = range || Object.keys(arg1);
- for (var i = 0, l = keys.length; i < l; i++) {
- var key = keys[i];
- if (arg1[key] !== arg2[key]) {
- if (key === 'width' || key === 'height') {
- if (triggerEventEnd) {
- return 'resized';
- }
- return 'resize';
- }
- if (key === 'transform') {
- if (triggerEventEnd) {
- return 'moved';
- }
- return 'move';
- }
- }
- }
- return 'none';
- },
- dispatchEvent: function dispatchEvent(dragId, type, pos) {
- var _this5 = this;
- this.$nextTick(function () {
- _this5.$nextTick(function () {
- _this5.$refs[dragId] && _this5.$refs[dragId][0].$emit(type, pos);
- });
- });
- },
- getFirstSetValue: function getFirstSetValue() {
- return util_getFirstSetValue.apply(void 0, arguments);
- },
- getPropsForInject: function getPropsForInject(index, item) {
- return {
- id: item._id,
- card: item,
- layout: this.innerLayout,
- close: this.closeWidget.bind(this, item._id)
- };
- },
- // 初始化每个列宽
- initCols: function initCols() {
- // // // console.log('init cols');
- var containerWidth = 0;
- if (this.width === false) {
- containerWidth = this.$el.clientWidth;
- } else {
- containerWidth = this.width > 0 ? this.width : 0;
- } // let containerWidth = this.$el.clientWidth;
- if (this.colNum === this.cols.length && this.containerWidth && this.containerWidth === containerWidth) {
- return;
- }
- this.containerWidth = containerWidth;
- var colNum = this.colNum;
- var cols = []; // let containerWidth = this.$el.clientWidth;
- var remainder = containerWidth % colNum; // 余数
- var quotient = Math.floor(containerWidth / colNum); // 商数
- for (var i = 0; i < colNum; i++) {
- if (remainder) {
- cols[i] = quotient + 1;
- remainder--;
- } else {
- cols[i] = quotient;
- }
- }
- this.cols = cols;
- },
- // 设置布局layout数组
- setLayout: function setLayout() {
- var _this6 = this;
- var layout = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
- // this.layout = deepCopy(layout);
- // this.layout = layout;
- // // console.log(deepCopy)
- if (!this.coors) {
- this.coors = new coordinate({
- maxWidth: this.colNum
- });
- }
- this.coors.clear();
- this.coors.batchAddItem(layout);
- var layoutOverCalc = this.coors.getAllItems();
- layoutOverCalc.forEach(function (item) {
- var style = _this6.getCardStyle(item);
- _this6.$set(item, '_alt_style', style); // item.style = style;
- });
- this.innerLayout = layoutOverCalc;
- if (/_env=altdev/.test(window.location.search)) {
- autoMove(this, this.innerLayout);
- }
- },
- // 设置总容器高度
- setContainerHeight: function setContainerHeight(y, h) {
- var containerHeight = this.containerHeight;
- var height = y + h;
- if (height > containerHeight) {
- this.containerHeight = height;
- }
- },
- // 获取卡片大小和位移
- getCardStyle: function getCardStyle(item, raw) {
- if (!item) return {};
- var x = this.computeColsWidth(0, item.x) + 'px';
- var w = this.getCardWidth(item.x, item.x + item.w) + 'px';
- var y = item.y * this.rowHeight;
- var yPx = y + 'px';
- var h = item.h * this.rowHeight - this.margin[1];
- var hPx = h + 'px';
- this.setContainerHeight(y, h);
- var transform = '';
- if (utils_device.isMac) {
- transform = "translate(".concat(x, ",").concat(yPx, ")");
- } else {
- transform = "translate3d(".concat(x, ",").concat(yPx, ",0px)");
- }
- var style = "transform:".concat(transform, ";width:").concat(w, ";height:").concat(hPx, ";background-color:").concat(this.backgroundColor, ";");
- if (raw) {
- return {
- style: style,
- x: x,
- y: y,
- width: w,
- height: h,
- transform: transform
- };
- }
- return style; // return {
- // transform: `translate(${x}px,${y}px)`,
- // width: w + 'px',
- // height: h + 'px'
- // }
- },
- getCardStyleForRealTime: function getCardStyleForRealTime(item) {
- if (!item) return;
- var w = item.w;
- var x = item.x;
- if (x < 0) {
- x = 0;
- } else if (x + w > this.containerWidth) {
- x = this.containerWidth - w;
- }
- var y = item.y;
- if (y < 0) {
- y = 0;
- }
- var transform = "transform:translate3d(".concat(x, "px,").concat(y, "px,0);");
- var style = "".concat(transform, "width:").concat(w, "px;height:").concat(item.h, "px;background-color:").concat(this.backgroundColor, ";z-index:1;");
- return style;
- },
- getCardStyleForPlaceholder: function getCardStyleForPlaceholder(item) {
- if (!item) return {};
- var x = this.computeColsWidth(0, item.x);
- var w = this.getCardWidth(item.x, item.x + item.w);
- var y = item.y * this.rowHeight;
- var h = item.h * this.rowHeight - this.margin[1];
- this.setContainerHeight(y, h);
- var transform = "transform:translate3d(".concat(x, "px,").concat(y, "px,0);");
- var style = "".concat(transform, "width:").concat(w, "px;height:").concat(h, "px;");
- return style;
- },
- // 计算卡片的宽度
- getCardWidth: function getCardWidth(start, end) {
- var width = this.computeColsWidth(start, end);
- if (end !== this.cols.length) {
- width -= this.margin[0];
- }
- return width;
- },
- // 计算某几列的宽度
- computeColsWidth: function computeColsWidth(start, end) {
- var key = start + ';' + end;
- if (this.cacheComputed[key]) return this.cacheComputed[key];
- var cols = this.cols;
- var width = 0;
- for (var i = start; i < end; i++) {
- width += cols[i];
- }
- this.cacheComputed[key] = width;
- return width;
- },
- computeRowsHeight: function computeRowsHeight(start, end) {
- return (end - start) * this.rowHeight;
- },
- mousedown: function mousedown(event) {
- this.mousedownTimeStamp = new Date().getTime();
- var evt = normalizeEvent(event);
- var srcElement = evt.srcElement;
- var target = evt.target;
- var targetCard = findParentThoughEvtPath(evt.path, 'alt-grid-item', 'alt-grid-container');
- if (!targetCard) return;
- var dragId = this.getDragId(targetCard);
- var node = this.getNodeByDragId(dragId);
- if (hasClass(target, this.resizeHandlerClass)) {
- if (!util_getFirstSetValue(node.isResizable, this.isResizable, this.defVal.isResizable)) {
- return;
- }
- this.preOperator = 2; // resize
- }
- if (targetCard && !this.preOperator) {
- if (!util_getFirstSetValue(node.isDraggable, this.isDraggable, this.defVal.isDraggable)) {
- return;
- }
- var dragIgnoreFrom = util_getFirstSetValue(node.dragIgnoreFrom, this.defVal.dragIgnoreFrom);
- if (isDragIgnoreFrom(target, targetCard, dragIgnoreFrom)) return;
- this.preOperator = 1; // 拖拽
- }
- if (!targetCard && !this.preOperator) return; // if(!hasClass(target, 'alt-grid-item')) return;
- var targetCardStyle = targetCard.style;
- var translate = targetCardStyle.transform.match(/\(([-.\d]*)px, ([-.\d]*)px/);
- this.operatedItem = {
- srcElement: srcElement,
- el: targetCard,
- node: node,
- dragId: dragId,
- linkEmit: this.$refs[dragId] ? this.$refs[dragId][0].$emit : function () {},
- startX: evt.clientX,
- startY: evt.clientY,
- cacheStyle: {
- x: parseInt(translate[1]),
- y: parseInt(translate[2]),
- w: parseInt(targetCardStyle.width.match(/\d+/)[0]),
- h: parseInt(targetCardStyle.height.match(/\d+/)[0])
- }
- };
- this.placeholder = {
- _id: '__placeHolder__',
- x: node.x,
- y: node.y,
- w: node.w,
- h: node.h
- };
- this.coors.replace(node._id, this.placeholder); // this.coors.remove(node._id);
- // this.coors.add(this.placeholder);
- // console.log('down', evt, this.operatedItem);
- // if(hasClass(target, this.resizeHandlerClass)){
- // this.operator = 2;
- // } else {
- // this.operator = 1;
- // }
- },
- mousemove: function mousemove(evt) {
- if (!this.preOperator) return;
- this.operator = this.preOperator; // console.log('mouse move');
- this.operatedItem.el.classList.add('operated-item');
- var ex = evt.clientX;
- var ey = evt.clientY;
- var sx = this.operatedItem.startX;
- var sy = this.operatedItem.startY;
- if (this.operator === 1) {
- this.dragMove(this.operatedItem, sx, sy, ex, ey);
- } else if (this.operator === 2) {
- this.resizeMove(this.operatedItem, sx, sy, ex, ey);
- }
- },
- mouseup: function mouseup() {
- var time = new Date().getTime();
- if (time - this.mousedownTimeStamp < 10) {
- this.operatedItem && this.operatedItem.srcElement && this.operatedItem.srcElement.click();
- }
- var operatedItem = this.operatedItem;
- if (operatedItem) {
- this.applyChange();
- this.$set(operatedItem.node, '_alt_style', this.getCardStyle(operatedItem.node)); // item.node[] = this.getCardStyle(item.node);
- this.coors.replace(this.placeholder._id, operatedItem.node); // this.coors.remove(this.placeholder._id);
- // this.coors.add(operatedItem.node);
- }
- this.clearDragEnv();
- this.$emit('update:layout', this.innerLayout);
- },
- applyChange: function applyChange() {
- var x = this.placeholder.x;
- var y = this.placeholder.y;
- var w = this.placeholder.w;
- var h = this.placeholder.h;
- var dragId = this.operatedItem.dragId;
- var node = this.operatedItem.node;
- if (this.operator === 1) {
- if (node.x === x && node.y === y) return;
- node.x = x;
- node.y = y;
- this.dispatchEvent(dragId, 'moved', {
- x: x,
- y: y,
- w: node.w,
- h: node.h,
- layout: this.innerLayout
- });
- } else if (this.operator === 2) {
- if (node.w === w && node.h === h) return;
- node.w = this.placeholder.w;
- node.h = this.placeholder.h;
- node.x = this.placeholder.x;
- node.y = this.placeholder.y;
- this.dispatchEvent(dragId, 'resized', {
- x: x,
- y: y,
- w: w,
- h: h,
- layout: this.innerLayout
- });
- }
- },
- clearDragEnv: function clearDragEnv() {
- this.preOperator = 0;
- this.operator = 0;
- this.operatedItem = null;
- this.placeholder = null;
- },
- getNodeByDragId: function getNodeByDragId(dragId) {
- var index = getIndexOfArrayByAttr(this.innerLayout, dragId, '_id');
- if (index === -1) return null;
- return this.innerLayout[index];
- },
- getDragId: function getDragId(target) {
- return target.getAttribute('dg-id');
- },
- dragMove: function dragMove(operatedItem, sx, sy, ex, ey) {
- // console.log('drag move');
- var placeholder = this.placeholder;
- var cacheStyle = operatedItem.cacheStyle;
- var dx = ex - sx;
- var dy = ey - sy;
- var startCol = dx > 0 ? operatedItem.node.x + operatedItem.node.w : operatedItem.node.x;
- var stepX = this.getMoveCols(dx, startCol);
- var stepY = this.getMoveRows(dy, operatedItem.node.y); // console.log('calc over step');
- var targetX = operatedItem.node.x + stepX;
- var targetY = operatedItem.node.y + stepY;
- this.coors.getItemById(placeholder._id).moveTo(targetX, targetY);
- var x = cacheStyle.x + dx;
- var y = cacheStyle.y + dy;
- operatedItem.node['_alt_style'] = this.getCardStyleForRealTime({
- x: x,
- y: y,
- w: cacheStyle.w,
- h: cacheStyle.h
- }); // this.coors.moveAllItemUp();
- this.reRenderStyle({
- ignoreId: operatedItem.dragId
- });
- this.dispatchEvent(operatedItem.dragId, 'move', {
- x: this.placeholder.x,
- y: this.placeholder.y,
- w: this.placeholder.w,
- h: this.placeholder.h,
- layout: this.innerLayout
- });
- },
- resizeMove: function resizeMove(operatedItem, sx, sy, ex, ey) {
- var placeholder = this.placeholder;
- var node = operatedItem.node;
- var cacheStyle = operatedItem.cacheStyle;
- var dx = ex - sx;
- var dy = ey - sy;
- var stepX = this.getMoveCols(dx, node.x + node.w);
- var stepY = this.getMoveRows(dy, node.y + node.h);
- var size = this.getItemLegalSize(node, {
- w: node.w + stepX,
- h: node.h + stepY
- });
- this.coors.getItemById(placeholder._id).resizeTo(size.w, size.h);
- var pixiesSize = this.getItemLegalSizeInPixies(node, {
- width: cacheStyle.w + dx,
- height: cacheStyle.h + dy
- });
- if (cacheStyle.x + pixiesSize.width > this.containerWidth) {
- pixiesSize.width = this.containerWidth - cacheStyle.x;
- }
- operatedItem.node['_alt_style'] = this.getCardStyleForRealTime({
- x: cacheStyle.x,
- y: cacheStyle.y,
- w: pixiesSize.width,
- h: pixiesSize.height
- });
- this.reRenderStyle({
- ignoreId: operatedItem.dragId
- });
- this.dispatchEvent(operatedItem.dragId, 'resize', {
- x: this.placeholder.x,
- y: this.placeholder.y,
- w: this.placeholder.w,
- h: this.placeholder.h,
- layout: this.innerLayout
- });
- },
- getItemLegalSizeInPixies: function getItemLegalSizeInPixies(node, size) {
- var pixiesLimit = this.getPixiesLimit(node);
- var width = size.width;
- var height = size.height;
- if (width > pixiesLimit.maxWidth) {
- width = pixiesLimit.maxWidth;
- } else if (width < pixiesLimit.minWidth - 10) {
- width = pixiesLimit.minWidth - 10;
- }
- if (height > pixiesLimit.maxHeight) {
- height = pixiesLimit.maxHeight;
- } else if (height < pixiesLimit.minHeight - 10) {
- height = pixiesLimit.minHeight - 10;
- }
- return {
- width: width,
- height: height
- };
- },
- getPixiesLimit: function getPixiesLimit(node) {
- var pixiesLimit = {
- minWidth: 0,
- minHeight: 0,
- maxWidth: Infinity,
- maxHeight: Infinity
- };
- var minW = util_getFirstSetValue(node.minW, this.defVal.minW);
- var minH = util_getFirstSetValue(node.minH, this.defVal.minH);
- if (minW && minW > 0) {
- pixiesLimit.minWidth = this.getCardWidth(node.x, node.x + minW);
- }
- if (minH && minH > 0) {
- pixiesLimit.minHeight = minH * this.rowHeight - this.margin[1];
- }
- if (node.maxW && node.maxW > 0) {
- pixiesLimit.maxWidth = this.getCardWidth(node.x, node.x + node.maxW);
- }
- if (node.maxH && node.maxH > 0) {
- pixiesLimit.maxHeight = node.maxH * this.rowHeight - this.margin[1];
- }
- return pixiesLimit;
- },
- getMoveCols: function getMoveCols(dx, startCol) {
- if (startCol <= 0 && dx < 0) return 0;
- var flag = dx < 0 ? '-' : '+';
- var absDx = Math.abs(dx);
- if (absDx < 15) return 0;
- var i = 0;
- var c = startCol;
- while (absDx > 0) {
- if (flag === '-') {
- c--;
- absDx -= this.cols[c] || 0;
- i++;
- if (c <= 0) break;
- } else {
- c++;
- absDx -= this.cols[c] || 0;
- i++;
- if (c >= this.cols.length) break;
- }
- }
- return parseInt(flag + i);
- },
- getMoveRows: function getMoveRows(dy, startRow) {
- if (startRow <= 0 && dy < 0) return 0;
- var flag = dy < 0 ? '-' : '+';
- var absDy = Math.abs(dy);
- if (absDy < this.rowHeight / 2) return 0;
- var i = 0;
- var row = startRow;
- while (absDy > 0) {
- if (flag === '-') {
- absDy -= this.rowHeight;
- i++;
- row--;
- if (row <= 0) break;
- } else {
- absDy -= this.rowHeight;
- i++;
- row++;
- }
- }
- return parseInt(flag + i);
- },
- addItem: function addItem(item) {
- if (!this.coors) {
- this.setLayout();
- }
- var distributeItem = this.coors.add(item);
- var style = this.getCardStyle(distributeItem);
- this.$set(distributeItem.rawInfo, '_alt_style', style);
- this.innerLayout.push(distributeItem.rawInfo);
- this.$emit('update:layout', this.innerLayout);
- return distributeItem.id;
- },
- deleteItem: function deleteItem(id) {
- return this.closeWidget(id);
- },
- getAllItems: function getAllItems() {
- return this.innerLayout;
- },
- getItemLegalSize: function getItemLegalSize(item, size) {
- var minH = util_getFirstSetValue(item.minH, this.defVal.minH);
- var minW = util_getFirstSetValue(item.minW, this.defVal.minW);
- var maxH = util_getFirstSetValue(item.maxH, this.defVal.maxH);
- var maxW = util_getFirstSetValue(item.maxW, this.defVal.maxW);
- var h = size.h;
- var w = size.w;
- if (size.h <= minH) {
- h = minH;
- }
- if (size.h >= maxH) {
- h = maxH;
- }
- if (size.w <= minW) {
- w = minW;
- }
- if (size.w >= maxW) {
- w = maxW;
- }
- return {
- h: h,
- w: w
- };
- },
- closeWidget: function closeWidget(_id) {
- var index = getIndexOfArrayByAttr(this.innerLayout, _id, '_id');
- if (index === -1) return false;
- var item = this.innerLayout[index];
- this.coors.remove(item._id); // this.coors.moveAllItemUp();
- this.innerLayout.splice(index, 1);
- this.reRenderStyle(); // this.reRenderCount++;
- this.clearDragEnv();
- this.$emit('update:layout', this.innerLayout);
- }
- },
- updated: function updated() {
- this.$emit('updated');
- }
- });
- // CONCATENATED MODULE: ./src/components/grid.vue?vue&type=script&lang=js&
- /* harmony default export */ var components_gridvue_type_script_lang_js_ = (gridvue_type_script_lang_js_);
- // EXTERNAL MODULE: ./src/components/grid.vue?vue&type=style&index=0&lang=css&
- var gridvue_type_style_index_0_lang_css_ = __webpack_require__("d812");
- // CONCATENATED MODULE: ./src/components/grid.vue
- /* normalize component */
- var grid_component = normalizeComponent(
- components_gridvue_type_script_lang_js_,
- render,
- staticRenderFns,
- false,
- null,
- null,
- null
-
- )
- /* harmony default export */ var components_grid = (grid_component.exports);
- // CONCATENATED MODULE: ./src/alt-store/mixin.js
- function mixin(Vue) {
- Vue.mixin({
- beforeCreate: altStoreInit
- });
- function altStoreInit() {
- var options = this.$options;
- if (options.altStore) {
- this.$altStore = options.altStore;
- } else if (options.parent && options.parent.$altStore) {
- this.$altStore = options.parent.$altStore;
- }
- }
- }
- // CONCATENATED MODULE: ./src/alt-store/util.js
- function util_forEachValue(obj, fn) {
- Object.keys(obj).forEach(function (key) {
- return fn(obj[key], key);
- });
- }
- // CONCATENATED MODULE: ./src/alt-store/store.js
- var store_Vue;
- var store_AltStore =
- /*#__PURE__*/
- function () {
- function AltStore(options) {
- _classCallCheck(this, AltStore);
- this._mutations = Object.create(null);
- this.initVm(options.state);
- this.initMutations(options.mutations);
- }
- _createClass(AltStore, [{
- key: "commit",
- value: function commit(type, payload) {
- var entry = this._mutations[type];
- if (!entry) {
- console.error('[altStore] unknown commit type.');
- return;
- }
- entry.forEach(function (handler) {
- handler(payload);
- });
- }
- }, {
- key: "getOriginState",
- value: function getOriginState() {
- return this._vm._data.$$state;
- }
- }, {
- key: "initMutations",
- value: function initMutations(mutations) {
- var store = this;
- var state = this.getOriginState();
- util_forEachValue(mutations, function (handler, key) {
- var entry = store._mutations[key] || (store._mutations[key] = []);
- entry.push(function wrapperHandler(payload) {
- handler.call(store, state, payload);
- });
- });
- }
- }, {
- key: "initVm",
- value: function initVm(state) {
- var oldVm = this._vm;
- this._vm = new store_Vue({
- data: {
- $$state: state
- }
- });
- if (oldVm) {
- store_Vue.nextTick(function () {
- return oldVm.$destroy();
- });
- }
- }
- }, {
- key: "state",
- get: function get() {
- return this._vm._data.$$state;
- },
- set: function set(v) {
- console.error('cannot set state directly.');
- }
- }]);
- return AltStore;
- }();
- function install(_Vue) {
- if (store_Vue && _Vue === store_Vue) {
- if (false) {}
- return;
- }
- store_Vue = _Vue;
- mixin(store_Vue);
- }
- // CONCATENATED MODULE: ./src/alt-store/index.js
- /* harmony default export */ var alt_store = ({
- Store: store_AltStore,
- install: install
- });
- // CONCATENATED MODULE: ./src/index.js
- // import Vue from "vue";
- // Vue.component('AltVueGridLayout', VueGridLayout);
- function factory() {
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
- var grid = _objectSpread({}, components_grid, {
- components: {}
- });
- if (options.altStore && options.altStore instanceof alt_store.Store) {
- grid.altStore = options.altStore;
- }
- return grid;
- } // export default VueGridLayout;
- /* harmony default export */ var src = ({
- createGrid: factory,
- grid: components_grid,
- altStore: alt_store
- });
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
- /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src);
- /***/ }),
- /***/ "fde4":
- /***/ (function(module, exports, __webpack_require__) {
- __webpack_require__("bf90");
- var $Object = __webpack_require__("584a").Object;
- module.exports = function getOwnPropertyDescriptor(it, key) {
- return $Object.getOwnPropertyDescriptor(it, key);
- };
- /***/ }),
- /***/ "fdef":
- /***/ (function(module, exports) {
- module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
- '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
- /***/ })
- /******/ })["default"];
- //# sourceMappingURL=doesburg.common.js.map
|