ÿØÿà JFIF    ÿÛ „  ( %!1"%)+...383-7(-.+  -%%--------+------------/----------------------------ÿÀ  ¶" ÿÄ     ÿÄ @    !1AQaq‘¡"±ÁÑð2’BRráS‚ñ3b¢CT²Ò #cÿÄ    ÿÄ '   1!AQ2a"‘±#ÿÚ   ? ò(/p‘—–¢·,M|¯G»R£üešT. ôŸEoCFñ‡ 4ÔkåóxR|µÁ¨ÓDà!Ç´µ˜‡p ÍQ‹§!þž^õWsŒy  åÁ§$á«%ºq˜™JyyË0y«^Ϗ -3ÃÏËÈ£Æ\P’ä„s&•‹Üs üô'àWt¹pñCp$bÚF`·7.^)¾!)ÒÙ˜–ÅÏš^h¾ø³·ìe±ŒaeÖ—Í,e=B}Jéߦ$$½—šÙÜCC¯¶è8β–Åkèwx LÉngT±æ¹£Ócœ¿Í/©Éÿ ‰ÚCÒ­mq;Tt¶–}0"zÖPcd1š­¤tˆ„ÐÓâqú[™öUCŠ2޿د­É(¸ßúçšmW,Ò ºf‹Ån™ÄLêÁ8üÁkÁ€L¥ÍuJ1œôrÂSŒÓöt!7EUíïb)AËi¬â-ÙHk8òÁiXYwÅ)O^"ÇØriÛô{»wRUKÙÏÚlÓ¬€‚’שT ] ªb—ÊîKC^×M“xùäñz¬zJ× {4[¹M'IÆeH1LCWÕ]œûº WDæà°OÅ‚¹c²ÞuA–rL`HšpCez‡V’— Ž‚Ë„–ñ­'µR0ÕÖ=À:±G»C\nÆÉ5*¢ †3šhQ4ýÒi$Õ1"Ü]¢p-q3zcQ$ªö¨¥æf›‘»´ÝÚHá„e²JÇ–iÊ:·à¬Øc5Åk»Laª*wi [0Ówk ¦a¦0Õ²ÅÅ‚T¸’³q:Æ<¹ú Ò˜Æ}2VE•Ѐp¡Ô3Úº …h³^LJºçì¥Ánó|˜ÖˆÎˆ+« ¦dø‘Mº–d\ªDðÛ„Ì×LÝ——Ð9Ç|•FèçVm™¨€™3õS–9Äå¢<̉Ìm¢±`·º˜&Z²ž Ë®D«¶»6™‰©­HÈ Àá«h­i³04æ’hxœi3ï¨(ÓL·†‹¶ËpŒ ƒÜÒ? :õdsÀ –3æÓ·Üjâ¬9—]8n¼&]I F£¼…ì–—Œ0v°LǐÅfÛ2TÖ’aµ˜N@ÖBSÏ^à´4-±°b×nÈÈœÆD=KdŒø…ÄÈK,›ÖR§fjü$^ÔÎ!„6^ s:Üun\ôkCÞò÷<—Lúl Í›G¹ÀPá¼Nc¡šÒ…ÙWͳœ±vÊáЄ×9‹P‰cEØ‘™›µŸP<×g1 º©Ø¬wiÁ^l5× I/';Ë+´Z‡ÓÄFÕp[Èð’ HÄ ó 9¬Dl4“é±Ï”V=^Hð;žLädÉa‚°Ë,#/Ž~²BÔÛ QãñQtIeórVB,ÏÂf‹4#Μc‹É3ZIÖ Œ¢¥·üxa‡Ãçè„jŠ[5 Ä!U?,3žÎ×…ðdÓ÷háŠA‰ìÄ4÷ÃÜZÃE{‰®+W\ZÍE[‰»µk»MÝ­`¢©†˜ÃV‹-f¢¡†¢a«eŠ%«Y¨©q%jâd,Ôq`) ¤¦…šˆ ¦E>0Ùb²t–Ÿ  ÷jsςҒKÈcø(é›;k(’#ôŒQ ™C> õ³M9óºÆµ¤çâ;uÀ)5>RÔ¸fÓ~Ȧ—’-$fe«"FâUˆÊwµPÏu w+"åÉó¨6s™Û9(À¨ù©hE°½†n`m~“@©›p!Vkhµ Á1šbEqqÊ@ºèl›2 –Yã%‘‚hÛ{a¶‡ÅÞM²¬çL34®Çl]®‹ŽØŒm'RÜe35æöˆ­Á­ cP9šeÁköo´L³Ì=p8]”‡B¶,šº|ɏdzXˆØk*ÇÚ{#ñ‰pã(€¶‡9ý'šÜ³½¯kƒ†Â’ëSOƒ•Å®H6+a¢µˆ‹Y¨b˜b+XˆÖ!°u!¢"µˆˆn2ˆ Å0Ä`Å Ô®c(ÓÜGº•Ä»Œ âWî%q.áÐÄ÷î%umÍ£+ÜQ,Vn¦-GphU¸¢X­&,Gt ·K¢ÅÅ·¥RÄÊÉbKn N­R2g$VµÕó Qr#–ÓZUÏð0ÎtÙÀœz ëöo“Îk¯n„T°"SÞ+³/…€½"ižãO%Í%&Δâ‘ËØ´IˆÓ°Ë‰ÞM3.™yçÁzit›`4C`k¢¼á!álÄï sÂ[×!¤l¾æo"ƒIÔ'@ªu)3›ô®“@Z à¾] üœ'‡4¸PÞkÁ-qÄH‰ÓÍBd´ÿ —¹°ÄA&ÊUC„öz‚‚RæŠtf¬>˜ÑidšEçÑL÷áý¡V±h§­c¿¥¨ƒ@g¼…Ýö^ÞËc.ž„æ“I[ ª+·zÐÒÚ,½Ð»¶€C›7jk$๖€Ž¾ÅÙpp¶ÍþéΤ ½ØÎŒq ñpæžÅ¥#Øâ49ÃÂK^MYV“,¶Éz_òæ:…;Õ«¦I3âJ£¤û5$7Èxün\â]Êe¯(Ÿ&Ž‹¶2<6Ćf× æ¢ƱqWı[(ÙÂŽç‚T7¨@ÈÉÍß‚ïÙ"&3TYlGށ†)†#5ŠA©^T2ÆÁ†)©†©†¤yGXÁ†©"†)©¼ÅV WS†#©]R–r‹q5ÕbâWþBh¯u+ªÅÄ×ü„nÑ^êkªÁj‰jeœWˆÕÕ`µDµ2Ì+Ä µDµµ5Ô{¤Þ0RF’H÷AÛ<ÊÁ§ ƈæ0Ñ£ê4 öÚµ[¬/1²€â<-¬šö²r×0o×w ´xÐÒË„ g01¬„åEM蛇Ã\6µE›‘fÙO k÷CºnÓ1`iîÒ² áÂ!ÑLÄÿ ³¬\õ*:M=Ç»c‹2[‰ØsÕLò\ŒK L^™üÄN\¶#» Ç\……ßïIœÉ$¸ÎñÍ®ÔHÇ Ûí/´>Li”„†g^$ 7NÍÑÑ2M2ªNg=k½Ð}Ÿl6‡ —JWˆ”ÞéT·+µ¦üÂFè¢Vs6ýÆ4»2+2IÝ9ô9®ÇGÙÇ1+Ä8;*Õ§ž½D*îÑWÚçá3Ma¤·ˆ¥t}š²Ü…Q+Æüµ8HíS”üxGéÁˆ¦Ël„éÈ 5 µÄƒ6äÜ(kIš¯S†fÖ&¸®×v|Äyˆ*禌Éù@7-®Ä[]ÎÖ¿ê`º…=:…žJVnݳvðÖKE¼‚ »mà ÷f®:Ë ™–4rð¡4` ܹçž~‹C=œ…¾Ïj|VDtK.ƒ"9 Ï ­–éXá³6WÒïIL-Ї Ç home/smkb8269/public_html/lms.smk-almanshuriyah.sch.id/.grunt/tasks/watch.js000064400000025353152266426120022705 0ustar00/** * This is a wrapper task to handle the grunt watch command. It attempts to use * Watchman to monitor for file changes, if it's installed, because it's much faster. * * If Watchman isn't installed then it falls back to the grunt-contrib-watch file * watcher for backwards compatibility. */ /* eslint-env node */ module.exports = grunt => { /** * This is a wrapper task to handle the grunt watch command. It attempts to use * Watchman to monitor for file changes, if it's installed, because it's much faster. * * If Watchman isn't installed then it falls back to the grunt-contrib-watch file * watcher for backwards compatibility. */ const watchHandler = function() { const async = require('async'); const watchTaskDone = this.async(); let watchInitialised = false; let watchTaskQueue = {}; let processingQueue = false; const watchman = require('fb-watchman'); const watchmanClient = new watchman.Client(); // Grab the tasks and files that have been queued up and execute them. var processWatchTaskQueue = function() { if (!Object.keys(watchTaskQueue).length || processingQueue) { // If there is nothing in the queue or we're already processing then wait. return; } processingQueue = true; // Grab all tasks currently in the queue. var queueToProcess = watchTaskQueue; // Reset the queue. watchTaskQueue = {}; async.forEachSeries( Object.keys(queueToProcess), function(task, next) { var files = queueToProcess[task]; var filesOption = '--files=' + files.join(','); grunt.log.ok('Running task ' + task + ' for files ' + filesOption); // Spawn the task in a child process so that it doesn't kill this one // if it failed. grunt.util.spawn( { // Spawn with the grunt bin. grunt: true, // Run from current working dir and inherit stdio from process. opts: { cwd: grunt.moodleEnv.fullRunDir, stdio: 'inherit' }, args: [task, filesOption] }, function(err, res, code) { if (code !== 0) { // The grunt task failed. grunt.log.error(err); } // Move on to the next task. next(); } ); }, function() { // No longer processing. processingQueue = false; // Once all of the tasks are done then recurse just in case more tasks // were queued while we were processing. processWatchTaskQueue(); } ); }; const originalWatchConfig = grunt.config.get(['watch']); const watchConfig = Object.keys(originalWatchConfig).reduce(function(carry, key) { if (key == 'options') { return carry; } const value = originalWatchConfig[key]; const taskNames = value.tasks; const files = value.files; let excludes = []; if (value.excludes) { excludes = value.excludes; } taskNames.forEach(function(taskName) { carry[taskName] = { files, excludes, }; }); return carry; }, {}); watchmanClient.on('error', function(error) { // We have to add an error handler here and parse the error string because the // example way from the docs to check if Watchman is installed doesn't actually work!! // See: https://github.com/facebook/watchman/issues/509 if (error.message.match('Watchman was not found')) { // If watchman isn't installed then we should fallback to the other watch task. grunt.log.ok('It is recommended that you install Watchman for better performance using the "watch" command.'); // Fallback to the old grunt-contrib-watch task. grunt.renameTask('watch-grunt', 'watch'); grunt.task.run(['watch']); // This task is finished. watchTaskDone(0); } else { grunt.log.error(error); // Fatal error. watchTaskDone(1); } }); watchmanClient.on('subscription', function(resp) { if (resp.subscription !== 'grunt-watch') { return; } resp.files.forEach(function(file) { grunt.log.ok('File changed: ' + file.name); var fullPath = grunt.moodleEnv.fullRunDir + '/' + file.name; Object.keys(watchConfig).forEach(function(task) { const fileGlobs = watchConfig[task].files; var match = fileGlobs.some(function(fileGlob) { return grunt.file.isMatch(`**/${fileGlob}`, fullPath); }); if (match) { // If we are watching a subdirectory then the file.name will be relative // to that directory. However the grunt tasks expect the file paths to be // relative to the Gruntfile.js location so let's normalise them before // adding them to the queue. var relativePath = fullPath.replace(grunt.moodleEnv.gruntFilePath + '/', ''); if (task in watchTaskQueue) { if (!watchTaskQueue[task].includes(relativePath)) { watchTaskQueue[task] = watchTaskQueue[task].concat(relativePath); } } else { watchTaskQueue[task] = [relativePath]; } } }); }); processWatchTaskQueue(); }); process.on('SIGINT', function() { // Let the user know that they may need to manually stop the Watchman daemon if they // no longer want it running. if (watchInitialised) { grunt.log.ok('The Watchman daemon may still be running and may need to be stopped manually.'); } process.exit(); }); // Initiate the watch on the current directory. watchmanClient.command(['watch-project', grunt.moodleEnv.fullRunDir], function(watchError, watchResponse) { if (watchError) { grunt.log.error('Error initiating watch:', watchError); watchTaskDone(1); return; } if ('warning' in watchResponse) { grunt.log.error('warning: ', watchResponse.warning); } var watch = watchResponse.watch; var relativePath = watchResponse.relative_path; watchInitialised = true; watchmanClient.command(['clock', watch], function(clockError, clockResponse) { if (clockError) { grunt.log.error('Failed to query clock:', clockError); watchTaskDone(1); return; } // Generate the expression query used by watchman. // Documentation is limited, but see https://facebook.github.io/watchman/docs/expr/allof.html for examples. // We generate an expression to match any value in the files list of all of our tasks, but excluding // all value in the excludes list of that task. // // [anyof, [ // [allof, [ // [anyof, [ // ['match', validPath, 'wholename'], // ['match', validPath, 'wholename'], // ], // [not, // [anyof, [ // ['match', invalidPath, 'wholename'], // ['match', invalidPath, 'wholename'], // ], // ], // ], var matchWholeName = fileGlob => ['match', fileGlob, 'wholename']; var matches = Object.keys(watchConfig).map(function(task) { const matchAll = []; matchAll.push(['anyof'].concat(watchConfig[task].files.map(matchWholeName))); if (watchConfig[task].excludes.length) { matchAll.push(['not', ['anyof'].concat(watchConfig[task].excludes.map(matchWholeName))]); } return ['allof'].concat(matchAll); }); matches = ['anyof'].concat(matches); var sub = { expression: matches, // Which fields we're interested in. fields: ["name", "size", "type"], // Add our time constraint. since: clockResponse.clock }; if (relativePath) { /* eslint-disable camelcase */ sub.relative_root = relativePath; } watchmanClient.command(['subscribe', watch, 'grunt-watch', sub], function(subscribeError) { if (subscribeError) { // Probably an error in the subscription criteria. grunt.log.error('failed to subscribe: ', subscribeError); watchTaskDone(1); return; } grunt.log.ok('Listening for changes to files in ' + grunt.moodleEnv.fullRunDir); }); }); }); }; // Rename the grunt-contrib-watch "watch" task because we're going to wrap it. grunt.renameTask('watch', 'watch-grunt'); // Register the new watch handler. grunt.registerTask('watch', 'Run tasks on file changes', watchHandler); grunt.config.merge({ watch: { options: { nospawn: true // We need not to spawn so config can be changed dynamically. }, }, }); return watchHandler; };