From ae9479f21d97ac7394673910618b3309c278d13d Mon Sep 17 00:00:00 2001 From: justinhunt Date: Thu, 12 Dec 2019 15:16:40 +0900 Subject: [PATCH] fixed broken shimming --- CHANGES.txt | 3 +- amd/build/drawingboard.min.js | 2 +- amd/build/lzflash.min.js | 1 - amd/build/lzloader.min.js | 2 + amd/build/poodll_flashrecorder.min.js | 2 +- amd/build/poodll_flashsnapshotrecorder.min.js | 2 +- amd/build/poodll_red5recorder.min.js | 2 +- amd/build/poodll_shims.min.js | 1 - amd/src/drawingboard.js | 1211 ++++++++++- amd/src/lzflash.js | 5 - amd/src/lzloader.js | 1915 +++++++++++++++++ amd/src/poodll_flashrecorder.js | 2 +- amd/src/poodll_flashsnapshotrecorder.js | 2 +- amd/src/poodll_red5recorder.js | 2 +- amd/src/poodll_shims.js | 15 - version.php | 4 +- 16 files changed, 3135 insertions(+), 36 deletions(-) delete mode 100644 amd/build/lzflash.min.js create mode 100644 amd/build/lzloader.min.js delete mode 100644 amd/build/poodll_shims.min.js delete mode 100644 amd/src/lzflash.js create mode 100644 amd/src/lzloader.js delete mode 100644 amd/src/poodll_shims.js diff --git a/CHANGES.txt b/CHANGES.txt index 2d342f30..51796f61 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,7 +1,8 @@ Change List ========= -Version 3.1.25 (Build 201911XXXX) +Version 3.1.25 (Build 2019121200) -fixed lightbox2 template and popover template on classic theme (M3.8) +-fixed broken shimming in Moodle 3.8 Version 3.1.24 (Build 2019112100) -added presets and changed presets that instantiate on install diff --git a/amd/build/drawingboard.min.js b/amd/build/drawingboard.min.js index f162d25c..05417608 100644 --- a/amd/build/drawingboard.min.js +++ b/amd/build/drawingboard.min.js @@ -1 +1 @@ -define(["filter_poodll/poodll_shims","drawingboard"],function(a,b){return b}); \ No newline at end of file +define([],function(){var a={};a.Board=function(b,c){if(this.opts=$.extend({},a.Board.defaultOpts,c),this.ev=new a.Utils.MicroEvent,this.id=b,this.$el=$(document.getElementById(b)),!this.$el.length)return!1;var d='
';return this.opts.controlsPosition.indexOf("bottom")>-1?d+='
':d='
'+d,this.$el.addClass("drawing-board").append(d),this.dom={$canvasWrapper:this.$el.find(".drawing-board-canvas-wrapper"),$canvas:this.$el.find(".drawing-board-canvas"),$cursor:this.$el.find(".drawing-board-cursor"),$controls:this.$el.find(".drawing-board-controls")},$.each(["left","right","center"],$.proxy(function(a,b){if(this.opts.controlsPosition.indexOf(b)>-1)return this.dom.$controls.attr("data-align",b),!1},this)),this.canvas=this.dom.$canvas.get(0),this.ctx=this.canvas&&this.canvas.getContext&&this.canvas.getContext("2d")?this.canvas.getContext("2d"):null,this.color=this.opts.color,this.ctx?(this.storage=this._getStorage(),this.initHistory(),this.reset({webStorage:!1,history:!1,background:!1}),this.initControls(),this.resize(),this.reset({webStorage:!1,history:!0,background:!0}),this.restoreWebStorage(),this.initDropEvents(),void this.initDrawEvents()):(this.opts.errorMessage&&this.$el.html(this.opts.errorMessage),!1)},a.Board.defaultOpts={controls:["Color","DrawingMode","Size","Navigation"],controlsPosition:"top left",color:"#000000",size:1,background:"#fff",eraserColor:"background",webStorage:"session",droppable:!1,enlargeYourContainer:!1,errorMessage:'

It seems you use an obsolete browser. Update it to start drawing.

'},a.Board.prototype={reset:function(a){a=$.extend({color:this.opts.color,size:this.opts.size,webStorage:!0,history:!0,background:!1},a),this.setMode("pencil"),a.background&&this.resetBackground(this.opts.background,!1),a.color&&this.setColor(a.color),a.size&&(this.ctx.lineWidth=a.size),this.ctx.lineCap="round",this.ctx.lineJoin="round",a.webStorage&&this.saveWebStorage(),a.history&&this.saveHistory(),this.blankCanvas=this.getImg(),this.ev.trigger("board:reset",a)},resetBackground:function(b,c){b=b||this.opts.background,c="undefined"==typeof c||c;var d=a.Utils.isColor(b),e=this.getMode();this.setMode("pencil"),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.width),d?(this.ctx.fillStyle=b,this.ctx.fillRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height)):b&&this.setImg(b),this.setMode(e),c&&this.saveHistory()},resize:function(){this.dom.$controls.toggleClass("drawing-board-controls-hidden",!this.controls||!this.controls.length);var b,c,d=[this.$el.width(),a.Utils.boxBorderWidth(this.$el),a.Utils.boxBorderWidth(this.dom.$canvasWrapper,!0,!0)],e=[this.$el.height(),a.Utils.boxBorderHeight(this.$el),this.dom.$controls.height(),a.Utils.boxBorderHeight(this.dom.$controls,!1,!0),a.Utils.boxBorderHeight(this.dom.$canvasWrapper,!0,!0)],f=function(a,b){b=b||1;for(var c=a[0],d=1;d30;)this.history.values.shift(),this.history.position--;0!==this.history.position&&this.history.position0&&n.push(a.Utils.pixelAt(c,m[e]-1,m[f])),m[e]0&&n.push(a.Utils.pixelAt(c,m[e],m[f]-1)),m[f]10&&this.isMouseHovering){this.dom.$cursor.css({width:this.ctx.lineWidth+"px",height:this.ctx.lineWidth+"px"});var b=a.Utils.tpl("translateX({{x}}px) translateY({{y}}px)",{x:this.coords.current.x-this.ctx.lineWidth/2,y:this.coords.current.y-this.ctx.lineWidth/2});this.dom.$cursor.css({transform:b,"-webkit-transform":b,"-ms-transform":b}),this.dom.$cursor.removeClass("drawing-board-utils-hidden")}else this.dom.$cursor.addClass("drawing-board-utils-hidden");if(this.isDrawing){var c=this._getMidInputCoords(this.coords.current);this.ctx.beginPath(),this.ctx.moveTo(c.x,c.y),this.ctx.quadraticCurveTo(this.coords.old.x,this.coords.old.y,this.coords.oldMid.x,this.coords.oldMid.y),this.ctx.stroke(),this.coords.old=this.coords.current,this.coords.oldMid=c}window.requestAnimationFrame&&requestAnimationFrame($.proxy(function(){this.draw()},this))},_onInputStart:function(a,b){this.coords.current=this.coords.old=b,this.coords.oldMid=this._getMidInputCoords(b),this.isDrawing=!0,window.requestAnimationFrame||this.draw(),this.ev.trigger("board:startDrawing",{e:a,coords:b}),a.preventDefault()},_onInputMove:function(a,b){this.coords.current=b,this.ev.trigger("board:drawing",{e:a,coords:b}),window.requestAnimationFrame||this.draw(),a.preventDefault()},_onInputStop:function(a,b){!this.isDrawing||a.touches&&0!==a.touches.length||(this.isDrawing=!1,this.saveWebStorage(),this.saveHistory(),this.ev.trigger("board:stopDrawing",{e:a,coords:b}),this.ev.trigger("board:userAction"),a.preventDefault())},_onMouseOver:function(a,b){this.isMouseHovering=!0,this.coords.old=this._getInputCoords(a),this.coords.oldMid=this._getMidInputCoords(this.coords.old),this.ev.trigger("board:mouseOver",{e:a,coords:b})},_onMouseOut:function(a,b){this.isMouseHovering=!1,this.ev.trigger("board:mouseOut",{e:a,coords:b})},_getInputCoords:function(a){a=a.originalEvent?a.originalEvent:a;var b,c;return a.touches&&1==a.touches.length?(b=a.touches[0].pageX,c=a.touches[0].pageY):(b=a.pageX,c=a.pageY),{x:b-this.dom.$canvas.offset().left,y:c-this.dom.$canvas.offset().top}},_getMidInputCoords:function(a){return{x:this.coords.old.x+a.x>>1,y:this.coords.old.y+a.y>>1}}},a.Control=function(a,b){return this.board=a,this.opts=$.extend({},this.defaults,b),this.$el=$(document.createElement("div")).addClass("drawing-board-control"),this.name&&this.$el.addClass("drawing-board-control-"+this.name),this.board.ev.bind("board:reset",$.proxy(this.onBoardReset,this)),this.initialize.apply(this,arguments),this},a.Control.prototype={name:"",defaults:{},initialize:function(){},addToBoard:function(){this.board.addControl(this)},onBoardReset:function(a){}},a.Control.extend=function(a,b){var c,d=this;c=a&&a.hasOwnProperty("constructor")?a.constructor:function(){return d.apply(this,arguments)},$.extend(c,d,b);var e=function(){this.constructor=c};return e.prototype=d.prototype,c.prototype=new e,a&&$.extend(c.prototype,a),c.__super__=d.prototype,c},a.Control.Color=a.Control.extend({name:"colors",initialize:function(){this.initTemplate();var a=this;this.$el.on("click",".drawing-board-control-colors-picker",function(b){var c=$(this).attr("data-color");a.board.setColor(c),a.$el.find(".drawing-board-control-colors-current").css("background-color",c).attr("data-color",c),a.board.ev.trigger("color:changed",c),a.$el.find(".drawing-board-control-colors-rainbows").addClass("drawing-board-utils-hidden"),b.preventDefault()}),this.$el.on("click",".drawing-board-control-colors-current",function(b){a.$el.find(".drawing-board-control-colors-rainbows").toggleClass("drawing-board-utils-hidden"),b.preventDefault()}),$("body").on("click",function(b){var c=$(b.target),d=c.hasClass("drawing-board-control-colors-current")?c:c.closest(".drawing-board-control-colors-current"),e=a.$el.find(".drawing-board-control-colors-current"),f=a.$el.find(".drawing-board-control-colors-rainbows");d.length&&d.get(0)===e.get(0)||f.hasClass("drawing-board-utils-hidden")||f.addClass("drawing-board-utils-hidden")})},initTemplate:function(){var b='
{{rainbows}}
',c='
',d="";$.each([.75,.5,.25],$.proxy(function(b,e){var f=0,g=null;for(d+='
',.25==e&&(g=this._rgba(0,0,0,1)),.5==e&&(g=this._rgba(150,150,150,1)),.75==e&&(g=this._rgba(255,255,255,1)),d+=a.Utils.tpl(c,{color:g.toString()});f<=330;)d+=a.Utils.tpl(c,{color:this._hsl2Rgba(this._hsl(f-60,1,e)).toString()}),f+=30;d+="
"},this)),this.$el.append($(a.Utils.tpl(b,{color:this.board.color,rainbows:d}))),this.$el.find(".drawing-board-control-colors-rainbows").addClass("drawing-board-utils-hidden")},onBoardReset:function(a){this.board.setColor(this.$el.find(".drawing-board-control-colors-current").attr("data-color"))},_rgba:function(a,b,c,d){return{r:a,g:b,b:c,a:d,toString:function(){return"rgba("+a+", "+b+", "+c+", "+d+")"}}},_hsl:function(a,b,c){return{h:a,s:b,l:c,toString:function(){return"hsl("+a+", "+100*b+"%, "+100*c+"%)"}}},_hex2Rgba:function(a){var b=parseInt(a.substring(1),16);return this._rgba(b>>16,b>>8&255,255&b,1)},_hsl2Rgba:function(a){function b(a,b,c){return c<0&&(c+=1),c>1&&(c-=1),c<1/6?a+6*(b-a)*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a}var c,d,e,f=a.h/360,g=a.s,h=a.l;if(0===g)c=d=e=h;else{var i=h<.5?h*(1+g):h+g-h*g,j=2*h-i;c=Math.floor(255*b(j,i,f+1/3)),d=Math.floor(255*b(j,i,f)),e=Math.floor(255*b(j,i,f-1/3))}return this._rgba(c,d,e,1)}}),a.Control.DrawingMode=a.Control.extend({name:"drawingmode",defaults:{pencil:!0,eraser:!0,filler:!0},initialize:function(){this.prevMode=this.board.getMode(),$.each(["pencil","eraser","filler"],$.proxy(function(a,b){this.opts[b]&&this.$el.append('')},this)),this.$el.on("click","button[data-mode]",$.proxy(function(a){var b=$(a.currentTarget).attr("data-mode"),c=this.board.getMode();c!==b&&(this.prevMode=c);var d=c===b?this.prevMode:b;this.board.setMode(d),a.preventDefault()},this)),this.board.ev.bind("board:mode",$.proxy(function(a){this.toggleButtons(a)},this)),this.toggleButtons(this.board.getMode())},toggleButtons:function(a){this.$el.find("button[data-mode]").each(function(b,c){var d=$(c);d.toggleClass("active",a===d.attr("data-mode"))})}}),a.Control.Navigation=a.Control.extend({name:"navigation",defaults:{back:!0,forward:!0,reset:!0},initialize:function(){var a="";if(this.opts.back&&(a+=''),this.opts.forward&&(a+=''),this.opts.reset&&(a+=''),this.$el.append(a),this.opts.back){var b=this.$el.find(".drawing-board-control-navigation-back");this.board.ev.bind("historyNavigation",$.proxy(function(a){1===a?b.attr("disabled","disabled"):b.removeAttr("disabled")},this)),this.$el.on("click",".drawing-board-control-navigation-back",$.proxy(function(a){this.board.goBackInHistory(),a.preventDefault()},this))}if(this.opts.forward){var c=this.$el.find(".drawing-board-control-navigation-forward");this.board.ev.bind("historyNavigation",$.proxy(function(a){a===this.board.history.values.length?c.attr("disabled","disabled"):c.removeAttr("disabled")},this)),this.$el.on("click",".drawing-board-control-navigation-forward",$.proxy(function(a){this.board.goForthInHistory(),a.preventDefault()},this))}this.opts.reset&&this.$el.on("click",".drawing-board-control-navigation-reset",$.proxy(function(a){this.board.reset({background:!0}),a.preventDefault()},this))}}),a.Control.Size=a.Control.extend({name:"size",defaults:{type:"auto",dropdownValues:[1,3,6,10,20,30,40,50]},types:["dropdown","range"],initialize:function(){"auto"==this.opts.type&&(this.opts.type=this._iHasRangeInput()?"range":"dropdown");var a=$.inArray(this.opts.type,this.types)>-1&&this["_"+this.opts.type+"Template"]();if(!a)return!1;this.val=this.board.opts.size,this.$el.append($(a)),this.$el.attr("data-drawing-board-type",this.opts.type),this.updateView();var b=this;"range"==this.opts.type&&this.$el.on("change",".drawing-board-control-size-range-input",function(a){b.val=$(this).val(),b.updateView(),b.board.ev.trigger("size:changed",b.val),a.preventDefault()}),"dropdown"==this.opts.type&&(this.$el.on("click",".drawing-board-control-size-dropdown-current",$.proxy(function(a){this.$el.find(".drawing-board-control-size-dropdown").toggleClass("drawing-board-utils-hidden")},this)),this.$el.on("click","[data-size]",function(a){b.val=parseInt($(this).attr("data-size"),0),b.updateView(),b.board.ev.trigger("size:changed",b.val),a.preventDefault()}))},_rangeTemplate:function(){var b='
';return a.Utils.tpl(b,{size:this.board.opts.size})},_dropdownTemplate:function(){var b='
    ';return $.each(this.opts.dropdownValues,function(c,d){b+=a.Utils.tpl('
  • ',{size:d})}),b+="
"},onBoardReset:function(a){this.updateView()},updateView:function(){var a=this.val;if(this.board.ctx.lineWidth=a,this.$el.find(".drawing-board-control-size-range-current, .drawing-board-control-size-dropdown-current span").css({width:a+"px",height:a+"px",borderRadius:a+"px",marginLeft:-1*a/2+"px",marginTop:-1*a/2+"px"}),this.$el.find(".drawing-board-control-inner").attr("title",a),"dropdown"==this.opts.type){var b=null;$.each(this.opts.dropdownValues,function(c,d){(null===b||Math.abs(d-a)'),this.$el.on("click",".drawing-board-control-download-button",$.proxy(function(a){this.board.downloadImg(),a.preventDefault()},this))}}),a.Utils={},a.Utils.tpl=function(){"use strict";var a,b="{{",c="}}",d="[a-z0-9_][\\.a-z0-9_]*",e=new RegExp(b+"\\s*("+d+")\\s*"+c,"gi");return function(b,c){return b.replace(e,function(b,d){for(var e=d.split("."),f=e.length,g=c,h=0;h=0;g--)f+=parseInt(a.css(e[g]).replace("px",""),10);return f},a.Utils.boxBorderWidth=function(b,c,d){return a.Utils._boxBorderSize(b,c,d,"width")},a.Utils.boxBorderHeight=function(b,c,d){return a.Utils._boxBorderSize(b,c,d,"height")},a.Utils.isColor=function(a){return!(!a||!a.length)&&(/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a)||$.inArray(a.substring(0,3),["rgb","hsl"])!==-1)},a.Utils.RGBToInt=function(a,b,c){var d=0;return d|=(255&a)<<16,d|=(255&b)<<8,d|=255&c},a.Utils.pixelAt=function(b,c,d){var e=4*(d*b.width+c),f=a.Utils.RGBToInt(b.data[e],b.data[e+1],b.data[e+2]);return[e,c,d,f]},function(){for(var a=["ms","moz","webkit","o"],b=0;b';return document.writeln(b),b},__dhtmlLoadLibrary:function(a){var b=document.createElement("script");return this.__setAttr(b,"type","text/javascript"),this.__setAttr(b,"src",a),document.getElementsByTagName("head")[0].appendChild(b),b},__getqueryurl:function(a,b){var c=a.split("?");if(a=c[0],1==c.length)return{url:a,flashvars:"",query:""};var d=this.__parseQuery(c[1]),e="",f="",g=new RegExp("\\+","g");for(var h in d)if(""!=h&&null!=h){var i=d[h];"lzr"!=h&&"lzt"!=h&&"debug"!=h&&"profile"!=h&&"lzbacktrace"!=h&&"lzconsoledebug"!=h&&"lzdebug"!=h&&"lzkrank"!=h&&"lzprofile"!=h&&"lzcopyresources"!=h&&"fb"!=h&&"sourcelocators"!=h&&"_canvas_debug"!=h&&"lzsourceannotations"!=h||(e+=h+"="+i+"&"),b&&null==window[h]&&(window[h]=unescape(i.replace(g," "))),f+=h+"="+i+"&"}return e=e.substr(0,e.length-1),f=f.substr(0,f.length-1),{url:a,flashvars:f,query:e}},__parseQuery:function(a){if(a.indexOf("=")!=-1){for(var b=a.split("&"),c={},d=0;d0;){var a=this._setCanvasAttributeQ.pop();this.setCanvasAttribute(a[0],a[1],a[2])}},_ready:function(a){if(this.loaded=!0,this._callmethod){for(var b=0;b1)return parseFloat(c[1])},searchOSVersion:function(a){var b=a.indexOf(this.osversionSearchString);if(b!=-1)return parseFloat(a.substring(b+this.osversionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"iPhone",identity:"iPhone",versionSearch:"WebKit"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"WebKit"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Iceweasel",versionSearch:"Iceweasel",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE",osversionSearch:"Windows NT"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]},_callMethodSWF:function(a){return this.loaded?lz.embed.dojo.comm[this._id].callMethod(a):(this._callmethod||(this._callmethod=[]),void this._callmethod.push(a))},_broadcastMethod:function(a){var b=[].slice.call(arguments,1);for(var c in lz.embed.applications){var d=lz.embed.applications[c];d[a]&&d[a].apply(d,b)}},setCanvasAttribute:function(a,b,c){lz.embed._broadcastMethod("setCanvasAttribute",a,b,c)},callMethod:function(a){lz.embed._broadcastMethod("callMethod",a)},_getAppendDiv:function(a,b){var c=b?b:a+"Container",d=document.getElementById(c);return d||(document.writeln('
'),d=document.getElementById(c)),d},_getSWFDiv:function(){return lz.embed.dojo.obj[this._id].get()},_sendMouseWheel:function(a){null!=a&&this.callMethod("lz.Keys.__mousewheelEvent("+a+")")},_gotFocus:function(){lz.embed._broadcastMethod("_sendAllKeysUp")},_sendAllKeysUpSWF:function(){this.callMethod("lz.Keys.__allKeysUp()")},_sendAllKeysUpDHTML:function(){lz.Keys&&lz.Keys.__allKeysUp&&lz.Keys.__allKeysUp()},_sendPercLoad:function(a){this.onloadstatus&&"function"==typeof this.onloadstatus&&this.onloadstatus(a)},attachEventHandler:function(a,b,c,d,e){if(c&&d&&"function"==typeof c[d]){var f=a+b+c+d,g=this._handlers[f];if(null!=g)if(g instanceof Array){for(var h=g.length-1;h>=0;--h)if(g[h].$e===a&&g[h].$c===c)return}else if(g.$e===a&&g.$c===c)return;var i=function(){var a=window.event?[window.event]:[].slice.call(arguments,0);e&&a.push(e),c[d].apply(c,a)};return i.$e=a,i.$c=c,null!=g?g instanceof Array?g.push(i):g=[g,i]:g=i,this._handlers[f]=g,a.addEventListener?(a.addEventListener(b,i,!1),!0):a.attachEvent?a.attachEvent("on"+b,i):void 0}},removeEventHandler:function(a,b,c,d){var e,f=a+b+c+d,g=this._handlers[f];if(null!=g)if(g instanceof Array)for(var h=g.length-1;h>=0;--h)g[h].$e===a&&g[h].$c===c&&(e=g[h],g.splice(h,1),0==g.length&&delete this._handlers[f]);else g.$e===a&&g.$c===c&&(e=g,delete this._handlers[f]);if(e)return a.removeEventListener?(a.removeEventListener(b,e,!1),!0):a.detachEvent?a.detachEvent("on"+b,e):void 0},_handlers:{},_cleanupHandlers:function(){lz.embed._handlers={}},getAbsolutePosition:function(a){var b,c=null,d={};if((!lz.embed.browser.isFirefox||a!=document.body)&&a.getBoundingClientRect){b=a.getBoundingClientRect();var e=document.documentElement.scrollTop||document.body.scrollTop,f=document.documentElement.scrollLeft||document.body.scrollLeft;return{x:Math.floor(b.left+f),y:Math.floor(b.top+e)}}if(document.getBoxObjectFor)b=document.getBoxObjectFor(a),d={x:b.x,y:b.y};else{if(d={x:a.offsetLeft,y:a.offsetTop},c=a.offsetParent,c!=a)for(;c;)d.x+=c.offsetLeft,d.y+=c.offsetTop,c=c.offsetParent;if(lz.embed.browser.isSafari&&document.defaultView&&document.defaultView.getComputedStyle)var g=document.defaultView.getComputedStyle(a,"");(lz.embed.browser.isOpera||lz.embed.browser.isSafari&&g&&"absolute"==g.position)&&(d.y-=document.body.offsetTop)}if(!a.parentNode)return d;for(c=a.parentNode;c&&"BODY"!=c.tagName&&"HTML"!=c.tagName;){if(d.x-=c.scrollLeft,d.y-=c.scrollTop,!c.parentNode)return d;c=c.parentNode}return d},CSSDimension:function(a,b){var c=a;if(isNaN(a)){if(a.indexOf("%")==a.length-1&&!isNaN(a.substring(0,a.length-1)))return a;c=0}else a===1/0?c=-1>>>1:a===-(1/0)&&(c=~(-1>>>1));return c+(b?b:"px")}},lz.embed.browser.init(),lz.embed.attachEventHandler(window,"beforeunload",lz.embed,"_cleanupHandlers"),lz.embed.attachEventHandler(window,"focus",lz.embed,"_gotFocus"),lz.embed.browser.isIE&&lz.embed.attachEventHandler(window,"activate",lz.embed,"_gotFocus");try{lzOptions&&(lzOptions.dhtmlKeyboardControl&&alert("WARNING: this page uses lzOptions.dhtmlKeyboardControl. Please use the cancelkeyboardcontrol embed argument for lz.embed.dhtml() instead."),lzOptions.ServerRoot&&alert("WARNING: this page uses lzOptions.ServerRoot. Please use the second argument of lz.embed.lfc() instead."))}catch(e){}return lz.embed.dojo=function(){},lz.embed.dojo={defaults:{flash8:null,ready:!1,visible:!0,width:500,height:400,bgcolor:"#ffffff",allowfullscreen:!1,wmode:"window",flashvars:"",minimumVersion:8,id:"flashObject",appenddiv:null},obj:{},comm:{},_loadedListeners:[],_loadedListenerScopes:[],_installingListeners:[],_installingListenerScopes:[],setSwf:function(a,b){if(null!=a){var c={};for(var d in this.defaults){var e=a[d];null!=e?c[d]=e:c[d]=this.defaults[d]}null!=b&&(this.minimumVersion=b),this._initialize(c)}},addLoadedListener:function(a,b){this._loadedListeners.push(a),this._loadedListenerScopes.push(b)},addInstallingListener:function(a,b){this._installingListeners.push(a),this._installingListenerScopes.push(b)},loaded:function(a){var b=lz.embed.dojo;if(b._isinstaller&&(top.location=top.location+""),b.info.installing=!1,b.ready=!0,b._loadedListeners.length>0)for(var c=0;c0)for(var b=0;b'),document.writeln("Function VBGetSwfVer(i)"),document.writeln(" on error resume next"),document.writeln(" Dim swControl, swVersion"),document.writeln(" swVersion = 0"),document.writeln(' set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))'),document.writeln(" if (IsObject(swControl)) then"),document.writeln(' swVersion = swControl.GetVariable("$version")'),document.writeln(" end if"),document.writeln(" VBGetSwfVer = swVersion"),document.writeln("End Function"),document.writeln("")),this._detectVersion(),this._detectCommunicationVersion()},lz.embed.dojo.Info.prototype={version:-1,versionMajor:-1,versionMinor:-1,versionRevision:-1,capable:!1,commVersion:8,installing:!1,isVersionOrAbove:function(a,b,c){return c=parseFloat("."+c),this.versionMajor>=a&&this.versionMinor>=b&&this.versionRevision>=c},_detectVersion:function(){for(var a,b=lz.embed.browser.isIE,c=25;c>0;c--){if(a=b?VBGetSwfVer(c):this._JSFlashInfo(c),a==-1)return void(this.capable=!1);if(0!=a){var d;if(b){var e=a.split(" "),f=e[1];d=f.split(",")}else d=a.split(".");this.versionMajor=d[0],this.versionMinor=d[1],this.versionRevision=d[2];var g=this.versionMajor+"."+this.versionRevision;this.version=parseFloat(g),this.capable=!0;break}}},_JSFlashInfo:function(a){if(null!=navigator.plugins&&navigator.plugins.length>0&&(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"])){var b=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"",c=navigator.plugins["Shockwave Flash"+b].description,d=c.split(" "),e=d[2].split("."),f=e[0],g=e[1];if(""!=d[3])var h=d[3].split("r");else var h=d[4].split("r");var i=h[1]>0?h[1]:0,j=f+"."+g+"."+i;return j}return-1},_detectCommunicationVersion:function(){if(0==this.capable)return void(this.commVersion=null)}},lz.embed.dojo.Embed=function(a){this.properties=a,this.properties.width||(this.properties.width="100%"),this.properties.height||(this.properties.height="100%"),this.properties.bgcolor||(this.properties.bgcolor="#ffffff"),this.properties.visible||(this.properties.visible=!0)},lz.embed.dojo.Embed.prototype={protocol:function(){switch(window.location.protocol){case"https:":return"https";default:return"http"}},__getCSSValue:function(a){return a&&a.length&&a.indexOf("%")!=-1?"100%":a+"px"},write:function(a,b){var c="";c+="width: "+this.__getCSSValue(this.properties.width)+";",c+="height: "+this.__getCSSValue(this.properties.height)+";",0==this.properties.visible&&(c+="position: absolute; ",c+="z-index: 10000; ",c+="top: -1000px; ",c+="left: -1000px; ");var d,e,f=lz.embed;a>f.dojo.version&&(b=!0),e=this.properties.flash8;var g=this.properties.flashvars,h=this.properties.flashvars;if(b){var i=escape(window.location);document.title=document.title.slice(0,47)+" - Flash Player Installation";var j=escape(document.title);g+="&MMredirectURL="+i+"&MMplayerType=ActiveX&MMdoctitle="+j,h+="&MMredirectURL="+i+"&MMplayerType=PlugIn"}d=f.browser.isIE?' ':'';var k=this.properties.id+"Container",l=this.properties.appenddiv;l?(l.innerHTML=d,l.setAttribute("style",c)):(d='
'+d+"
",document.writeln(d))},get:function(){try{var a=document.getElementById(this.properties.id+"")}catch(b){}return a},setVisible:function(a){var b=document.getElementById(this.properties.id+"Container");1==a?b.style.visibility="visible":(b.style.position="absolute",b.style.x="-1000px",b.style.y="-1000px",b.style.visibility="hidden")},center:function(){var a=(this.properties.width,this.properties.height,0),b=0,c=document.getElementById(this.properties.id+"Container");c.style.top=b+"px",c.style.left=a+"px"}},lz.embed.dojo.Communicator=function(a){this._id=a},lz.embed.dojo.Communicator.prototype={_addExternalInterfaceCallback:function(a,b){var c=lz.embed.dojo,d=function(){for(var d=[],e=0;e","g"),">"),a=a.replace("\\","&custom_backslash;&custom_backslash;"),a=a.replace(RegExp("\\n","g"),"\\n"),a=a.replace(RegExp("\\r","g"),"\\r"),a=a.replace(RegExp("\\f","g"),"\\f"),a=a.replace(RegExp("\\0","g"),"\\0"),a=a.replace(RegExp("\\'","g"),"\\'"),a=a.replace(RegExp('\\"',"g"),'\\"')},_decodeData:function($1){return null==$1||"undefined"==typeof $1?$1:($1=$1.replace(RegExp("\\&custom_lt\\;","g"),"<"),$1=$1.replace(RegExp("\\&custom_gt\\;","g"),">"),$1=eval('"'+$1+'"'))},_chunkArgumentData:function(a,b,c){for(var d=lz.embed.dojo.obj[c].get(),e=Math.ceil(a.length/1024),f=0;f'+i+""+b+"")}},_chunkReturnData:function(a){for(var b=lz.embed.dojo.obj[a].get(),c=b.getReturnLength(),d=[],e=0;e'+e+"");f='""'==f||"''"==f?"":f.substring(1,f.length-1),d.push(f)}var g=d.join("");return g},_execFlash:function(a,b,c){var d=lz.embed.dojo.obj[c].get();d.startExec(),d.setNumberArguments(b.length);for(var e=0;ea.info.versionMajor||!a.info.isVersionOrAbove(8,0,0)))},install:function(){var a=lz.embed.dojo;a.info.installing=!0,a.installing();var b=a.obj[this._id].properties,c=b.flash8,d=c.indexOf("swf7");d!=-1&&(a._tempurl=c,c=c.substring(0,d+3)+"8"+c.substring(d+4,c.length),b.flash8=c);var d=c.indexOf("swf9");if(d!=-1&&(a._tempurl=c,c=c.substring(0,d+3)+"8"+c.substring(d+4,c.length),b.flash8=c),a.ready=!1,0==a.info.capable){a._isinstaller=!0;var e=new a.Embed(b);e.write(a.minimumVersion)}else if(a.info.isVersionOrAbove(6,0,65)){var e=new a.Embed(b);e.write(a.minimumVersion,!0),e.setVisible(!0),e.center()}else alert("This content requires a more recent version of the Macromedia Flash Player."),window.location="http://www.macromedia.com/go/getflashplayer"},_onInstallStatus:function(a){"Download.Complete"==a?lz.embed.browser.isIE&&(top.location=top.location+""):"Download.Cancelled"==a?(alert("This content requires a more recent version of the Macromedia Flash Player."),window.location="http://www.macromedia.com/go/getflashplayer"):"Download.Failed"==a&&(alert("There was an error downloading the Flash Player update. Please try again later, or visit macromedia.com to download the latest version of the Flash plugin."),window.location="http://www.macromedia.com/go/getflashplayer")}},lz.embed.dojo.info=new lz.embed.dojo.Info,lz.embed.iframemanager={__counter:0,__frames:{},__namebyid:{},__loading:{},__callqueue:{},__calljsqueue:{},__sendmouseevents:{},__hidenativecontextmenu:{},__selectionbookmarks:{},create:function(a,b,c,d,e,f){var g="__lz"+lz.embed.iframemanager.__counter++,h='javascript:""',i='lz.embed.iframemanager.__gotload("'+g+'")';if(null!=b&&"null"!=b&&""!=b||(b=g),lz.embed.iframemanager.__namebyid[g]=b,null!=d&&"undefined"!=d||(d=document.body),document.all){var j=""; + var $11 = document.createElement("div"); + lz.embed.__setAttr($11, "id", $7 + "Container"); + $4.appendChild($11); + $11.innerHTML = $10; + var $12 = document.getElementById($7) + } else { + var $12 = document.createElement("iframe"); + lz.embed.__setAttr($12, "name", $2); + lz.embed.__setAttr($12, "src", $8); + lz.embed.__setAttr($12, "id", $7); + lz.embed.__setAttr($12, "onload", $9); + if ($3 != true) { + lz.embed.__setAttr($12, "scrolling", "no") + } + ;this.appendTo($12, $4) + } + ; + if ($12) { + this.__finishCreate($7, $1, $2, $3, $4, $5, $6) + } else { + this.__callqueue[$7] = [["__finishCreate", $7, $1, $2, $3, $4, $5, $6]]; + setTimeout('lz.embed.iframemanager.__checkiframe("' + $7 + '")', 10) + } + ; + return $7 + "" + }, + __checkiframe: function ($1) { + var $2 = document.getElementById($1); + if ($2) { + var $3 = lz.embed.iframemanager.__callqueue[$1]; + delete lz.embed.iframemanager.__callqueue[$1]; + lz.embed.iframemanager.__playQueue($3) + } else { + setTimeout('lz.embed.iframemanager.__checkiframe("' + $1 + '")', 10) + } + }, + __playQueue: function ($1) { + var $2 = lz.embed.iframemanager; + for (var $3 = 0; $3 < $1.length; $3++) { + var $4 = $1[$3]; + var $5 = $4.splice(0, 1); + $2[$5].apply($2, $4) + } + }, + __finishCreate: function ($1, $2, $3, $4, $5, $6, $7) { + var $8 = document.getElementById($1); + if (typeof $2 == "string") { + $8.appcontainer = lz.embed.applications[$2]._getSWFDiv() + } + ;$8.owner = $2; + lz.embed.iframemanager.__frames[$1] = $8; + this.__namebyid[$1] = $3; + var $9 = lz.embed.iframemanager.getFrame($1); + $9.__gotload = lz.embed.iframemanager.__gotload; + $9._defaultz = $6 ? $6 : 99900; + this.setZ($1, $9._defaultz); + lz.embed.iframemanager.__topiframe = $1; + if (document.getElementById && !document.all) { + $9.style.border = "0" + } else { + if (document.all) { + lz.embed.__setAttr($9, "allowtransparency", "true"); + var $10 = lz.embed[$9.owner]; + if ($10 && $10.runtime == "swf") { + var $11 = $10._getSWFDiv(); + $11.onfocus = lz.embed.iframemanager.__refresh + } + } + } + ;$9.style.position = "absolute" + }, + appendTo: function ($1, $2) { + if ($2.__appended == $2) { + return + } + ; + if ($1.__appended) { + old = $1.__appended.removeChild($1); + $2.appendChild(old) + } else { + $2.appendChild($1) + } + ;$1.__appended = $2 + }, + getFrame: function ($1) { + return lz.embed.iframemanager.__frames[$1] + }, + getFrameWindow: function ($1) { + if (!this["framesColl"]) { + if (document.frames) { + this.framesColl = document.frames + } else { + this.framesColl = window.frames + } + } + ; + return this.framesColl[$1] + }, + setSrc: function ($1, $2, $3) { + if (this.__callqueue[$1]) { + this.__callqueue[$1].push(["setSrc", $1, $2, $3]); + return + } + ;this.__setSendMouseEvents($1, false); + if ($3) { + var $4 = lz.embed.iframemanager.getFrame($1); + if (!$4) { + return + } + ;lz.embed.__setAttr($4, "src", $2) + } else { + var $1 = lz.embed.iframemanager.__namebyid[$1]; + var $4 = window[$1]; + if (!$4) { + return + } + ;$4.location.replace($2) + } + ;this.__loading[$1] = true + }, + setPosition: function ($1, $2, $3, $4, $5, $6, $7) { + if (this.__callqueue[$1]) { + this.__callqueue[$1].push(["setPosition", $1, $2, $3, $4, $5, $6, $7]); + return + } + ;var $8 = lz.embed.iframemanager.getFrame($1); + if (!$8) { + return + } + ; + if ($8.appcontainer) { + var $9 = lz.embed.getAbsolutePosition($8.appcontainer) + } else { + var $9 = {x: 0, y: 0} + } + ; + if ($2 != null && !isNaN($2)) { + $8.style.left = $2 + $9.x + "px" + } + ; + if ($3 != null && !isNaN($3)) { + $8.style.top = $3 + $9.y + "px" + } + ; + if ($4 != null && !isNaN($4)) { + $8.style.width = $4 + "px" + } + ; + if ($5 != null && !isNaN($5)) { + $8.style.height = $5 + "px" + } + ; + if ($6 != null) { + if (typeof $6 == "string") { + $6 = $6 == "true" + } + ;$8.style.display = $6 ? "block" : "none" + } + ; + if ($7 != null) { + this.setZ($1, $7 + $8._defaultz) + } + }, + setVisible: function ($1, $2) { + if (this.__callqueue[$1]) { + this.__callqueue[$1].push(["setVisible", $1, $2]); + return + } + ; + if (typeof $2 == "string") { + $2 = $2 == "true" + } + ;var $3 = lz.embed.iframemanager.getFrame($1); + if (!$3) { + return + } + ;$3.style.display = $2 ? "block" : "none" + }, + bringToFront: function ($1) { + if (this.__callqueue[$1]) { + this.__callqueue[$1].push(["bringToFront", $1]); + return + } + ;var $2 = lz.embed.iframemanager.getFrame($1); + if (!$2) { + return + } + ;$2._defaultz = 100000; + this.setZ($1, $2._defaultz); + lz.embed.iframemanager.__topiframe = $1 + }, + sendToBack: function ($1) { + if (this.__callqueue[$1]) { + this.__callqueue[$1].push(["sendToBack", $1]); + return + } + ;var $2 = lz.embed.iframemanager.getFrame($1); + if (!$2) { + return + } + ;$2._defaultz = 99900; + this.setZ($1, $2._defaultz) + }, + __gotload: function ($1) { + var $2 = lz.embed.iframemanager.getFrame($1); + if (!$2) { + return + } + ; + if ($2.owner && $2.owner.__gotload) { + $2.owner.__gotload() + } else { + lz.embed[$2.owner].callMethod("lz.embed.iframemanager.__gotload('" + $1 + "')") + } + ;this.__loading[$1] = false; + if (this.__sendmouseevents[$1]) { + this.__setSendMouseEvents($1, true) + } + ; + if (this.__calljsqueue[$1]) { + this.__playQueue(this.__calljsqueue[$1]); + delete this.__calljsqueue[$1] + } + }, + __refresh: function () { + if (lz.embed.iframemanager.__topiframe) { + var $1 = lz.embed.iframemanager.getFrame(lz.embed.iframemanager.__topiframe); + if ($1.style.display == "block") { + $1.style.display = "none"; + $1.style.display = "block" + } + } + }, + setZ: function ($1, $2) { + if (this.__callqueue[$1]) { + this.__callqueue[$1].push(["setZ", $1, $2]); + return + } + ;var $3 = lz.embed.iframemanager.getFrame($1); + if (!$3) { + return + } + ;$3.style.zIndex = $2 + }, + scrollBy: function ($1, $2, $3) { + if (this.__callqueue[$1]) { + this.__callqueue[$1].push(["scrollBy", $1, $2, $3]); + return + } + ;var $1 = lz.embed.iframemanager.__namebyid[$1]; + var $4 = window.frames[$1]; + if (!$4) { + return + } + ;$4.scrollBy($2, $3) + }, + __destroy: function ($1) { + if (this.__callqueue[$1]) { + this.__callqueue[$1].push(["__destroy", $1]); + return + } + ;var $2 = lz.embed.iframemanager.__frames[$1]; + if ($2) { + this.__setSendMouseEvents($1, false); + $2.owner = null; + $2.appcontainer = null; + LzSprite.prototype.__discardElement($2); + delete lz.embed.iframemanager.__frames[$1]; + delete lz.embed.iframemanager.__namebyid[$1] + } + }, + callJavascript: function ($1, $2, $3, $4) { + if (this.__callqueue[$1]) { + this.__callqueue[$1].push(["callJavascript", $1, $2, $3, $4]); + return + } + ; + if (this.__loading[$1]) { + if (!this.__calljsqueue[$1]) { + this.__calljsqueue[$1] = [] + } + ;this.__calljsqueue[$1].push(["callJavascript", $1, $2, $3, $4]); + return + } + ;var $5 = lz.embed.iframemanager.getFrameWindow($1); + if (!$4) { + $4 = [] + } + ; + try { + var $6 = $5.eval($2); + if ($6) { + var $7 = $6.apply($5, $4); + if ($3) { + $3.execute($7) + } + ; + return $7 + } + } + catch (e) { + + } + }, + __globalMouseover: function ($1, $2) { + var $3 = lz.embed.iframemanager.getFrame($2); + if (!$3) { + return + } + ;$1 = window.event; + if ($3.owner && $3.owner.sprite) { + if ($1.toElement && $1.toElement.nodeName != "IFRAME") { + LzMouseKernel.__resetMouse() + } + } + }, + __mouseEvent: function ($1, $2) { + var $3 = lz.embed; + var $4 = $3.iframemanager.getFrame($2); + if (!$4) { + return + } + ; + if (!$1) { + $1 = window.event + } + ;var $5 = "on" + $1.type; + if ($4.owner && $4.owner.sprite && $4.owner.sprite.__mouseEvent) { + if ($5 == "oncontextmenu") { + if (!$3.iframemanager.__hidenativecontextmenu[$2]) { + return + } else { + var $6 = $3.getAbsolutePosition($4); + LzMouseKernel.__sendMouseMove($1, $6.x, $6.y); + return LzMouseKernel.__showContextMenu($1) + } + } + ;$4.owner.sprite.__mouseEvent($1); + if ($5 == "onmouseup") { + if (LzMouseKernel.__lastMouseDown == $4.owner.sprite) { + LzMouseKernel.__lastMouseDown = null + } + } + } else { + if ($5 == "onmouseleave") { + $5 = "onmouseout" + } else { + if ($5 == "onmouseenter") { + $5 = "onmouseover" + } else { + if ($5 == "oncontextmenu") { + return + } + } + } + ;$3[$4.owner].callMethod("lz.embed.iframemanager.__gotMouseEvent('" + $2 + "','" + $5 + "')") + } + }, + setSendMouseEvents: function ($1, $2) { + if (this.__callqueue[$1]) { + this.__callqueue[$1].push(["setSendMouseEvents", $1, $2]); + return + } + ;this.__sendmouseevents[$1] = $2 + }, + __setSendMouseEvents: function (id, $1) { + var iframe = lz.embed.iframemanager.getFrameWindow(id); + if (!iframe) { + return + } + ; + if ($1) { + if (lz.embed.browser.isIE) { + lz.embed.attachEventHandler(document, "mouseover", lz.embed.iframemanager, "__globalMouseover", id) + } + ; + try { + lz.embed.attachEventHandler(iframe.document, "mousedown", lz.embed.iframemanager, "__mouseEvent", id); + lz.embed.attachEventHandler(iframe.document, "mouseup", lz.embed.iframemanager, "__mouseEvent", id); + lz.embed.attachEventHandler(iframe.document, "click", lz.embed.iframemanager, "__mouseEvent", id); + iframe.document.oncontextmenu = function ($1) { + if (!$1) { + $1 = iframe.event + } + ; + return lz.embed.iframemanager.__mouseEvent($1, id) + }; + if (lz.embed.browser.isIE) { + lz.embed.attachEventHandler(iframe.document, "mouseenter", lz.embed.iframemanager, "__mouseEvent", id); + lz.embed.attachEventHandler(iframe.document, "mouseleave", lz.embed.iframemanager, "__mouseEvent", id) + } else { + lz.embed.attachEventHandler(iframe.document, "mouseover", lz.embed.iframemanager, "__mouseEvent", id); + lz.embed.attachEventHandler(iframe.document, "mouseout", lz.embed.iframemanager, "__mouseEvent", id) + } + } + catch (e) { + + } + } else { + if (lz.embed.browser.isIE) { + lz.embed.removeEventHandler(document, "mouseover", lz.embed.iframemanager, "__globalMouseover") + } + ; + try { + lz.embed.removeEventHandler(iframe.document, "mousedown", lz.embed.iframemanager, "__mouseEvent"); + lz.embed.removeEventHandler(iframe.document, "mouseup", lz.embed.iframemanager, "__mouseEvent"); + lz.embed.removeEventHandler(iframe.document, "click", lz.embed.iframemanager, "__mouseEvent"); + iframe.document.oncontextmenu = null; + if (lz.embed.browser.isIE) { + lz.embed.removeEventHandler(iframe.document, "mouseenter", lz.embed.iframemanager, "__mouseEvent"); + lz.embed.removeEventHandler(iframe.document, "mouseleave", lz.embed.iframemanager, "__mouseEvent") + } else { + lz.embed.removeEventHandler(iframe.document, "mouseover", lz.embed.iframemanager, "__mouseEvent"); + lz.embed.removeEventHandler(iframe.document, "mouseout", lz.embed.iframemanager, "__mouseEvent") + } + } + catch (e) { + + } + } + }, + setShowNativeContextMenu: function ($1, $2) { + this.__hidenativecontextmenu[$1] = !$2 + }, + storeSelection: function ($1) { + var $2 = lz.embed.iframemanager; + var $3 = $2.getFrameWindow($1); + if ($3 && $3.document && $3.document.selection && $3.document.selection.type == "Text") { + $2.__selectionbookmarks[$1] = $3.document.selection.createRange().getBookmark() + } + }, + restoreSelection: function ($1) { + var $2 = lz.embed.iframemanager; + var $3 = $2.getFrameWindow($1); + if ($2.__selectionbookmarks[$1] && $3) { + var $4 = $2.__selectionbookmarks[$1]; + var $5 = $3.document.body.createTextRange(); + $5.moveToBookmark($4); + $5.select() + } + } + }; + lz.embed.mousewheel = { + __mousewheelEvent: function ($1) { + if (!$1) { + $1 = window.event + } + ;var $2 = 0; + if ($1.wheelDelta) { + $2 = $1.wheelDelta / 120; + if (lz.embed.browser.isOpera) { + $2 = -$2 + } + } else { + if ($1.detail) { + $2 = -$1.detail / 3 + } + } + ; + if ($1.preventDefault) { + $1.preventDefault() + } + ;$1.returnValue = false; + var $3 = lz.embed.mousewheel.__callbacks.length; + if ($2 != null && $3 > 0) { + for (var $4 = 0; $4 < $3; $4 += 2) { + var $5 = lz.embed.mousewheel.__callbacks[$4]; + var $6 = lz.embed.mousewheel.__callbacks[$4 + 1]; + if ($5 && $5[$6]) { + $5[$6]($2) + } + } + } + }, __callbacks: [], setCallback: function ($1, $2) { + var $3 = lz && lz.embed && lz.embed.options && lz.embed.options.cancelkeyboardcontrol != true || true; + if (lz.embed.mousewheel.__callbacks.length == 0 && $3) { + if (window.addEventListener) { + lz.embed.attachEventHandler(window, "DOMMouseScroll", lz.embed.mousewheel, "__mousewheelEvent") + } + ;lz.embed.attachEventHandler(document, "mousewheel", lz.embed.mousewheel, "__mousewheelEvent") + } + ;lz.embed.mousewheel.__callbacks.push($1, $2) + } + }; + lz.embed.history = { + active: null, _currentstate: null, _apps: [], _intervalID: null, _registeredapps: {}, intervaltime: 200, init: function () { + var $1 = lz.embed.history; + if ($1.active || $1.active == false) { + return + } + ;$1.active = true; + $1._title = top.document.title; + var $2 = $1.get(); + if (lz.embed.browser.isSafari) { + $1._historylength = history.length; + $1._history = []; + for (var $3 = 1; $3 < $1._historylength; $3++) { + $1._history.push("") + } + ;$1._history.push($2); + var $4 = document.createElement("form"); + $4.method = "get"; + document.body.appendChild($4); + $1._form = $4; + if (!top.document.location.lzaddr) { + top.document.location.lzaddr = {} + } + ; + if (top.document.location.lzaddr.history) { + $1._history = top.document.location.lzaddr.history.split(",") + } + ; + if ($2 != "") { + $1.set($2) + } + } else { + if (lz.embed.browser.isIE) { + var $2 = top.location.hash; + if ($2) { + $2 = $2.substring(1) + } + ;var $3 = document.createElement("iframe"); + lz.embed.__setAttr($3, "id", "lzHistory"); + lz.embed.__setAttr($3, "frameborder", "no"); + lz.embed.__setAttr($3, "scrolling", "no"); + lz.embed.__setAttr($3, "width", "0"); + lz.embed.__setAttr($3, "height", "0"); + lz.embed.__setAttr($3, "src", 'javascript:""'); + document.body.appendChild($3); + $3 = document.getElementById("lzHistory"); + $1._iframe = $3; + $3.style.display = "none"; + $3.style.position = "absolute"; + $3.style.left = "-999px"; + var $5 = $3.contentDocument || $3.contentWindow.document; + $5.open(); + $5.close(); + if ($2 != "") { + $5.location.hash = "#" + $2; + $1._parse($2) + } + } else { + if ($2 != "") { + $1._parse($2); + $1._currentstate = $2 + } + } + } + ; + if ($1._intervalID != null) { + clearInterval($1._intervalID) + } + ; + if ($1.intervaltime > 0) { + $1._intervalID = setInterval("lz.embed.history._checklocationhash()", $1.intervaltime) + } + }, listen: function ($1) { + if (typeof $1 == "string") { + $1 = lz.embed.applications[$1]; + if (!$1 || !$1.runtime) { + return + } + } + ; + if (!$1) { + return + } + ;var $2 = lz.embed.history; + if ($2._registeredapps[$1._id]) { + return + } + ;$2._registeredapps[$1.id] = true; + $2._apps.push($1); + $2.init() + }, _checklocationhash: function () { + if (lz.embed.dojo && lz.embed.dojo.info && lz.embed.dojo.info.installing) { + return + } + ; + if (lz.embed.browser.isSafari) { + var $1 = this._history[this._historylength - 1]; + if ($1 == "" || $1 == "#") { + $1 = "#0" + } + ; + if (!this._skip && this._historylength != history.length) { + this._historylength = history.length; + if (typeof $1 != "undefined") { + $1 = $1.substring(1); + this._currentstate = $1; + this._parse($1) + } + } else { + this._parse($1.substring(1)) + } + } else { + var $1 = lz.embed.history.get(); + if ($1 == "") { + $1 = "0" + } + ; + if (lz.embed.browser.isIE) { + if ($1 != this._currentstate) { + top.location.hash = $1 == "0" ? "" : "#" + $1; + this._currentstate = $1; + this._parse($1) + } + ; + if (top.document.title != this._title) { + top.document.title = this._title + } + } else { + this._currentstate = $1; + this._parse($1) + } + } + }, set: function ($1) { + if (lz.embed.history.active == false) { + return + } + ; + if ($1 == null) { + $1 = "" + } + ; + if (lz.embed.history._currentstate == $1) { + return + } + ;lz.embed.history._currentstate = $1; + var $2 = "#" + $1; + if (lz.embed.browser.isIE) { + top.location.hash = $2 == "#0" ? "" : $2; + var $3 = lz.embed.history._iframe.contentDocument || lz.embed.history._iframe.contentWindow.document; + $3.open(); + $3.close(); + $3.location.hash = $2; + lz.embed.history._parse($1 + "") + } else { + if (lz.embed.browser.isSafari) { + lz.embed.history._history[history.length] = $2; + lz.embed.history._historylength = history.length + 1; + if (lz.embed.browser.version < 412) { + if (top.location.search == "") { + lz.embed.history._form.action = $2; + top.document.location.lzaddr.history = lz.embed.history._history.toString(); + lz.embed.history._skip = true; + lz.embed.history._form.submit(); + lz.embed.history._skip = false + } + } else { + var $4 = document.createEvent("MouseEvents"); + $4.initEvent("click", true, true); + var $5 = document.createElement("a"); + $5.href = $2; + $5.dispatchEvent($4) + } + } else { + top.location.hash = $2; + lz.embed.history._parse($1 + "") + } + } + ; + return true + }, get: function () { + var $1 = ""; + if (lz.embed.browser.isIE) { + if (lz.embed.history._iframe) { + var $2 = lz.embed.history._iframe.contentDocument || lz.embed.history._iframe.contentWindow.document; + $1 = $2.location.hash + } + } else { + $1 = top.location.href + } + ;var $3 = $1.indexOf("#"); + if ($3 != -1) { + return $1.substring($3 + 1) + } + ; + return "" + }, _parse: function ($1) { + var $2 = lz.embed.history; + if ($1.length == 0) { + return + } + ; + for (var $3 = 0, $4 = lz.embed.history._apps.length; $3 < $4; $3++) { + var $5 = lz.embed.history._apps[$3]; + if (!$5.loaded || $5._lasthash == $1) { + continue + } + ;$5._lasthash = $1; + if ($1.indexOf("_lz") != -1) { + $1 = $1.substring(3); + var $6 = $1.split(","); + for (var $7 = 0; $7 < $6.length; $7++) { + var $8 = $6[$7]; + var $9 = $8.indexOf("="); + var $10 = unescape($8.substring(0, $9)); + var $11 = unescape($8.substring($9 + 1)); + lz.embed.setCanvasAttribute($10, $11); + if (window["canvas"]) { + canvas.setAttribute($10, $11) + } + } + } else { + if ($5.runtime == "swf") { + $2.__setFlash($1, $5._id) + } else { + if (window["lz"] && lz["History"] && lz.History["isReady"] && lz.History["receiveHistory"]) { + lz.History.receiveHistory($1) + } + } + } + } + }, _store: function ($1, $2) { + if ($1 instanceof Object) { + var $3 = ""; + for (var $4 in $1) { + if ($3 != "") { + $3 += "," + } + ;$3 += escape($4) + "=" + escape($1[$4]) + } + } else { + var $3 = escape($1) + "=" + escape($2) + } + ;this.set("_lz" + $3) + }, __setFlash: function ($1, $2) { + var $3 = lz.embed[$2]; + if ($3 && $3.loaded && $3.runtime == "swf") { + var $4 = $3._getSWFDiv(); + if ($4) { + var $5 = $3.callMethod("lz.History.receiveHistory(" + $1 + ")"); + $3._lasthash = $1 + } + } + } + }; + if (lz.embed.browser.isFirefox) { + window.onunload = function () { + + } + } + ;lz.embed.regex = { + cache: {}, create: function ($1, $2, $3) { + try { + var $4 = lz.embed.regex; + $4.cache[$1] = new RegExp($4.unmask($2), $4.unmask($3)); + return true + } + catch (e) { + return e.name + ": " + e.message + } + }, test: function ($1, $2, $3) { + var $4 = lz.embed.regex; + var $5 = $4.cache[$1]; + $5.lastIndex = $3; + return [$5.test($4.unmask($2)), $5.lastIndex] + }, exec: function ($1, $2, $3) { + var $4 = lz.embed.regex; + var $5 = $4.cache[$1]; + $5.lastIndex = $3; + var $6 = $5.exec($4.unmask($2)); + if ($6) { + ($6 = $4.maskArr($6)).push($6.index, $5.lastIndex); + return $6 + } else { + return null + } + }, match: function ($1, $2) { + var $3 = lz.embed.regex; + var $4 = $3.unmask($2).match($3.cache[$1]); + return $4 ? $3.maskArr($4) : null + }, replace: function ($1, $2, $3) { + var $4 = lz.embed.regex; + return $4.mask($4.unmask($2).replace($4.cache[$1], $4.unmask($3))) + }, search: function ($1, $2) { + var $3 = lz.embed.regex; + return $3.unmask($2).search($3.cache[$1]) + }, split: function ($1, $2, $3) { + var $4 = lz.embed.regex; + return $4.maskArr($4.unmask($2).split($4.cache[$1], $3)) + }, remove: function ($1) { + delete lz.embed.regex.cache[$1] + }, mask: function ($1) { + + var re = /^\s*$/; + var re2 = /\s/g; + ; + return ( $1 == null || !re.test($1) ? $1 : "__#lznull" + $1.replace(re2, function ($1) { + switch ($1) { + case " ": + return "w"; + case "\f": + return "f"; + case "\n": + return "n"; + case "\r": + return "r"; + case "\t": + return "t"; + case "\xA0": + return "s"; + case "\u2028": + return "l"; + case "\u2029": + return "p"; + + } + })) + }, unmask: function ($1) { + return $1 == "__#lznull" ? "" : $1 + }, maskArr: function ($1) { + var $2 = lz.embed.regex; + for (var $3 = 0; $3 < $1.length; ++$3) { + $1[$3] = $2.mask($1[$3]) + } + ; + return $1 + } + }; +//-------end of original library + // This is our factory method. Return our module object here... + return lz;//end of returned module object +}); \ No newline at end of file diff --git a/amd/src/poodll_flashrecorder.js b/amd/src/poodll_flashrecorder.js index dafc269c..a76cbbc7 100644 --- a/amd/src/poodll_flashrecorder.js +++ b/amd/src/poodll_flashrecorder.js @@ -1,5 +1,5 @@ /* jshint ignore:start */ -define(['jquery', 'core/log', 'filter_poodll/utils_amd', 'filter_poodll/uploader', 'filter_poodll/lzflash'], function ($, log, utils, uploader, lz) { +define(['jquery', 'core/log', 'filter_poodll/utils_amd', 'filter_poodll/uploader', 'filter_poodll/lzloader'], function ($, log, utils, uploader, lz) { "use strict"; // jshint ; diff --git a/amd/src/poodll_flashsnapshotrecorder.js b/amd/src/poodll_flashsnapshotrecorder.js index 02d26c3f..e67f67d7 100644 --- a/amd/src/poodll_flashsnapshotrecorder.js +++ b/amd/src/poodll_flashsnapshotrecorder.js @@ -1,5 +1,5 @@ /* jshint ignore:start */ -define(['jquery', 'core/log', 'filter_poodll/utils_amd', 'filter_poodll/uploader', 'filter_poodll/lzflash'], function ($, log, utils, uploader, lz) { +define(['jquery', 'core/log', 'filter_poodll/utils_amd', 'filter_poodll/uploader', 'filter_poodll/lzloader'], function ($, log, utils, uploader, lz) { "use strict"; // jshint ; diff --git a/amd/src/poodll_red5recorder.js b/amd/src/poodll_red5recorder.js index ef697e17..ba3513c1 100644 --- a/amd/src/poodll_red5recorder.js +++ b/amd/src/poodll_red5recorder.js @@ -1,5 +1,5 @@ /* jshint ignore:start */ -define(['jquery', 'core/log', 'filter_poodll/utils_amd', 'filter_poodll/uploader', 'filter_poodll/lzflash'], function ($, log, utils, uploader, lz) { +define(['jquery', 'core/log', 'filter_poodll/utils_amd', 'filter_poodll/uploader', 'filter_poodll/lzloader'], function ($, log, utils, uploader, lz) { "use strict"; // jshint ;_; diff --git a/amd/src/poodll_shims.js b/amd/src/poodll_shims.js deleted file mode 100644 index bbfa29a0..00000000 --- a/amd/src/poodll_shims.js +++ /dev/null @@ -1,15 +0,0 @@ -/* jshint ignore:start */ -define(['core/config'], function () { - window.requirejs.config({ - paths: { - "db-jquery": M.cfg.wwwroot + '/filter/poodll/3rdparty/jquery/jquery-1.12.4.min', - "lzflash": M.cfg.wwwroot + '/filter/poodll/flash/embed-compressed', - "drawingboard": M.cfg.wwwroot + '/filter/poodll/js/drawingboard.js/dist/drawingboard.min' - }, - shim: { - 'db-jquery': {exports: '$'}, - 'lzflash': {exports: 'lz'}, - 'drawingboard': {exports: 'DrawingBoard', deps: ['db-jquery']} - } - });//end of window.requirejs.config -}); \ No newline at end of file diff --git a/version.php b/version.php index 66547eb9..d088476e 100644 --- a/version.php +++ b/version.php @@ -25,9 +25,9 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2019112100; +$plugin->version = 2019121200; $plugin->requires = 2016052300;//moodle 3.1.0 $plugin->component = 'filter_poodll'; $plugin->maturity = MATURITY_STABLE; -$plugin->release = '3.1.24(Build 2019112100)'; +$plugin->release = '3.1.25(Build 2019121200)';