/*SIE-SVG without Plugin under LGPL2.1 & GPL2.0 & Mozilla Public Lisence
 *公式ページは http://sie.sourceforge.jp/
 *利用方法は <script defer="defer" type="text/javascript" src="sie.js"></script>
 */
/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is the Mozilla SVG Cairo Renderer project.
 *
 * The Initial Developer of the Original Code is IBM Corporation.
 * Portions created by the Initial Developer are Copyright (C) 2004
 * the Initial Developer. All Rights Reserved.
 *
 * Parts of this file contain code derived from the following files(s)
 * of the Mozilla SVG project (these parts are Copyright (C) by their
 * respective copyright-holders):
 *    layout/svg/renderer/src/libart/nsSVGLibartBPathBuilder.cpp
 *
 * Contributor(s):DHRNAME revulo bellbind
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either of the GNU General Public License Version 2 or later (the "GPL"),
 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */
var NAIBU={};SIE={version:0.60};
/*@cc_on  _d=document;eval('var  document=_d')@*/
var sieb_s;function svgtovml(){var isMSIE=/*@cc_on!@*/false;
stlog=new STLog(false);var ary=document.getElementsByTagName("script");for(var i=0;i<ary.length;i++){var hoge=ary[i].type;if(ary[i].type==="image/svg+xml"){var ait=ary[i].text;if(sieb_s&&ait.match(/&lt;svg/)){ait=ait.replace(/<.+?>/g,"");ait=ait.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&amp;/g,"&")}if(isMSIE){setVMLNameSpace();var da={};da.obj=[];da.obj[i]=ary[i];da.num=i+1;da.content=ait.replace(/\shref=/g," target='_top' xlink:href=");da.success=true;ca(da)}else{var base=location.href.replace(/\/[^\/]+?$/,"/");ait=ait.replace(/\shref=(['"a-z]+?):\/\//g," target='_top' xlink:href=$1://").replace(/\shref=(.)/g," target='_top' xlink:href=$1"+base);var s=textToSVG(ait,ary[i].getAttribute("width"),ary[i].getAttribute("height"));ary[i].parentNode.insertBefore(s,ary[i])}}}NAIBU.STObject=new Objectembeds();if(isMSIE){setVMLNameSpace();var oba=document.createElement("div");oba.setAttribute("id","_NAIBU_outline");document.body.appendChild(oba);NAIBU.STObject.next();success=true}else{if(/a/[-1]==="a"){NAIBU.STObject.ffnext()}if(navigator.appVersion.indexOf("Version/3")>-1){NAIBU.STObject.startAnime();_noie_svgfont()}else{var off=(!!window.opera)?2000:500;NAIBU.stopFont=setTimeout("NAIBU.STObject.readSvgFont()",off)}}window.onload=null}function unsvgtovml(){if(!!NAIBU.stop){clearInterval(NAIBU.stop)}if(!!NAIBU.stopFont){clearTimeout(NAIBU.stopFont)}NAIBU=stlog=STLog=SIE=document=null}function setVMLNameSpace(){if(!document.namespaces.v){document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.namespaces.add("o","urn:schemas-microsoft-com:office:office");var A=document.createStyleSheet();var B="behavior: url(#default#VML);display: inline-block;} ";A.cssText="v\\:rect{"+B+"v\\:image{"+B+"v\\:fill{"+B+"v\\:stroke{"+B+"o\\:opacity2{"+B+"dn\\:defs{display:none}v\\:group{text-indent:0px;position:relative;width:100%;height:100%;"+B+"v\\:shape{width:100%;height:100%;"+B}}NAIBU.addEvent=function(A,B){if(window.addEventListener){window.addEventListener(A,B,false)}else{if(window.attachEvent){window.attachEvent("on"+A,B)}else{window["on"+A]=B}}};NAIBU.addEvent("load",svgtovml);NAIBU.addEvent("unload",unsvgtovml);function STLog(A){this.jo=A;if(this.jo){this.p=document.createElement("div");this.p.innerHTML="<h1>例外処理のログ</h1>";document.body.insertBefore(this.p,document.body.firstChild)}return this}STLog.prototype.add=function(B,A){if(this.jo){this.p.innerHTML+="<p>"+A+":"+B.message+"</p>"}};function SVGtoVML(C,A,E,B,D){this.rootElement=C;this.w=A;this.h=E;this.swi=B;this.shi=D;return this}SVGtoVML.prototype.read=function stvread(B){var E=this.rootElement;this.vi=new STViewSpec(E);try{this.children=[];var A=this.swi.value,D=this.shi.value;this.getObject("USE",STUseElement,"use",A,D);var C=this.vi.set(A,D,B);this.chset(E,C,A,D)}catch(F){stlog.add(F,109)}};SVGtoVML.prototype.getObject=function stvgetob(I,H,A,F,E){var G=this.rootElement.getElementsByTagName(I);var B=[];for(var D=0,C=G?G.length:0;D<C;++D){B[D]=new H(G[D],F,E)}this[A]=B;G=null};SVGtoVML.prototype.set=function stvset(R){var J=this.w,U=this.h,X=this.children;var N=this.swi.value,Y=this.shi.value;try{this.setObject(this.use,N,Y);this.setObject(X,N,Y);var P=document.createElement("v:rect");P.style.position="absolute";P.style.width=J+"px";P.style.height=U+"px";P.style.zIndex=-1;P.stroked="false";P.filled="false";this.rootElement.appendChild(P);var H=this.rootElement.style;var A=R.style;H.visibility="visible";H.overflow="hidden";var D=P.currentStyle;var Q=J>N?N:J,M=U>Y?Y:U;var O=parseFloat(D.left),K=parseFloat(D.top);var B=-this.vi._tx,W=-this.vi._ty;if(O!==0&&!isNaN(O)){B=O;A.left=-B+"px"}if(K!==0&&!isNaN(O)){W=K;A.top=-W+"px"}var F=B+Q+1;var T=W+M+1;H.clip="rect("+W+"px "+F+"px "+T+"px "+B+"px)";var L=this.rootElement.getElementsByTagName("div");for(var S=0,E=L.length;S<E;++S){var G=L[S];if(G.firstChild.nodeName!=="shape"){var I=G.style;I.left=parseFloat(I.left)+B+"px";I.top=parseFloat(I.top)+W+"px";var C=G.parentNode;while(C.nodeName==="group"){C=C.parentNode}if(C.nodeName==="A"){I.cursor="hand"}}}}catch(V){stlog.add(V,138)}};SVGtoVML.prototype.setObject=function stvsetob(B,A,E){for(var D=0,C=B.length;D<C;++D){B[D].set(A,E)}};(function(){var F={group:1},C={shape:1},E={DIV:1},A={path:STPath,rect:STRectElement,circle:STCircle,ellipse:STEllipse,polyline:STPolyline,polygon:STPolygon,line:STLine},D={1:1};SVGtoVML.prototype.chset=function B(T,N,O,J){var U=null,S=F,L=C,P=A,R=E;var G="group|shape|defs|STOP|fill|stroke|DIV|SPAN|A|image|rect|USE|FONTFACEURI|set";var K=N;var H=T.firstChild;if(!!H){do{if(G.indexOf(H.nodeName)<0){var M=H.nextSibling;var Q=T.removeChild(H);Q=null;H=M}else{if(D[H.nodeType]){var I=H.nodeName;if(S[I]){U=new STGroupElement(H,N,O,J);this.children[this.children.length]=U;var U=null}else{if(R[I]){U=new STText(H,N,O,J);this.children[this.children.length]=U;var U=null}else{if(L[I]){U=new (P[H.getAttribute("tag")])(H,N,O,J)}else{if(I==="A"){U=new STAElement(H,N);K=U.transformable}else{if(I==="image"){U=new STImage(H,N,O,J)}else{if(I==="set"){U=new STSetElement(H,N,O,J)}}}}if(U){this.children[this.children.length]=U;var U=null}this.chset(H,K,O,J)}}}H=H.nextSibling}}while(H)}nods=G=gname=N=K=O=J=null}})();function Objectembeds(){this.obj=document.getElementsByTagName("object")||{length:0};this.emd=document.getElementsByTagName("embed")||{length:0};this.onumber=this.enumber=0;this._end_=false;return this}Objectembeds.prototype.next=function(){try{if(this.onumber<this.obj.length){var B=this.onumber;this.onumber++;try{getURL(this.obj[B].getAttribute("data"),ca,this.obj,B+1)}catch(A){stlog.add(A,177);this.next()}}else{if(this.enumber<this.emd.length){var B=this.onumber+this.enumber;this.enumber++;try{getURL(this.emd[B].src,ca,this.emd,B+1)}catch(A){stlog.add(A,185);this.next()}}else{_ie_svgfont();NAIBU.Time.start()}}}catch(A){stlog.add(A,293);this.onumber++;this.next()}};NAIBU.svgNameSpace="http://www.w3.org/2000/svg";Objectembeds.prototype.ffnext=function(){try{for(var A=0,D=this.emd.length;A<D;++A){var B=document.createElement("object"),C=this.emd[A];B.setAttribute("data",C.getAttribute("src"));B.setAttribute("type","image/svg+xml");B.setAttribute("width",C.getAttribute("width"));B.setAttribute("height",C.getAttribute("height"));var F=C.parentNode;F.insertBefore(B,C);F.removeChild(C);D--}this.startAnime()}catch(E){stlog.add(E,294)}};Objectembeds.prototype.readSvgFont=function(){if(this.onumber<this.obj.length){var A,B=this.obj[this.onumber];this.onumber++;if(B.getSVGDocument!==void 0){if(B.contentDocument!==void 0){A=B.contentDocument}else{A=B.getSVGDocument()}NAIBU._fontSearchURI(A)}}else{if(!this._end_){this._end_=true;NAIBU._fontSearchURI(document)}}};Objectembeds.prototype.startAnime=function(){for(var B=0;B<this.obj.length;++B){var E=(this.obj[B].getSVGDocument===void 0)?this.obj[B].contentDocument:this.obj[B].getSVGDocument();var D=E.getElementsByTagNameNS(NAIBU.svgNameSpace,"set"),C;for(var A=0;A<D.length;++A){C=new _noie_STSetElement(D[A]);C.set()}}NAIBU.Time.start()};function STGroupElement(D,B,A,C){this.tar=D;var E=NAIBU;this.transformable=E.transformToCTM(D,B);this.children=[];this.chset(D,this.transformable,A,C);A=C=null;return this}STGroupElement.prototype.set=function(A,B){var C=stvsetob;C(this.children,A,B);this.children=this.transformable=null};STGroupElement.prototype.chset=SVGtoVML.prototype.chset;function STAElement(A,B){this.xlink=new NAIBU.XLink(A);this.target=A.getAttribute("target");this.transformable=NAIBU.transformToCTM(A,B);return this}STAElement.prototype.set=function aset(){try{var C=this.target;var B="replace";if(C==="_blank"){B="new"}this.xlink.tar.setAttribute("xlink:show",B);this.xlink.set();var A=this.xlink.tar.style;A.cursor="hand";A.left="0px";A.top="0px";A.textDecoration="none";this.transformable=null}catch(D){stlog.add(D,204)}};function STText(A,G,H,E){this.tar=A;this.x=new STLength((A.getAttribute("x")||0),H);this.y=new STLength((A.getAttribute("y")||0),E);this.dx=A.getAttribute("dx")||null;this.dy=A.getAttribute("dy")||null;this.paint=new NAIBU.FontStyle(A);this.transformable=NAIBU.transformToCTM(A,G);try{var I=this.tar.getElementsByTagName("SPAN");var B=[];for(var D=0,C=I.length;D<C;++D){B[D]=new STTSpanElement(I[D],this.dx,this.dy,this.transformable,H,E)}this.tspan=B;I=H=E=null}catch(F){stlog.add(F,129264)}return this}STText.prototype.set=function textset(O,V){try{var M=this.transformable;var G=fontset(this.paint["font-size"],O,V,M);if(this.x._emToUnits(G)){this.y._emToUnits(G)}var R=new Point(this.x.value,this.y.value);var F=R.matrixTransform(M);this.tar.w=O;this.tar.h=V;var I=this.tar.style;I.position="absolute";var K=this.tar.parentNode;if(K.lastChild.nodeName!=="rect"){var S=document.createElement("v:rect");var E=S.style;E.width="1px";E.height="1px";E.left="0px";E.top="0px";S.stroked="false";S.filled="false";K.appendChild(S)}I.width="0px";I.height="0px";this.paint.fset(O,V,M);var B=this.tspan,Q=0,G=this.paint.fontSize,H=0,Y=/[fijlt.,:;1\-]/g;for(var T=0,P={dx:0,dy:0},C=B.length;T<C;++T){var J=B[T];J.paint.fset(O,V,J.transformable);var L=J.tar.previousSibling;if(L&&L!==void 0){if(L.nodeType===3){var X=L.data;var D=Y.test(X)?X.match(Y).length:0;Q+=(2*X.length-D)*G/2}else{var U=L.innerText;var D=Y.test(X)?U.match(Y).length:0;Q+=(2*U.length-D)*H/2}}H=J.paint.fontSize;P=J.set(O,V,P)}if(B.length===0){var N=this.tar.innerText;var D=Y.test(N)?N.match(Y).length:0;Q=(2*N.length-D)*G/2}var A=0,Z=0;if(I.textAnchor==="middle"){A=Z=Q/4}else{if(I.textAnchor==="end"){A=Z=Q/2}}if(this.paint.writingMode.indexOf("tb")===0){A=-G*0.25}else{Z=-G*0.25}I.left=F.x-A;I.top=F.y-Z;R=F=A=Z=Y=O=V=null;this.textLength=Q}catch(W){stlog.add(W,2831)}R=F=A=Z=null;this.textLength=Q};function fontset(D,B,C,G){try{var A=new STLength(D,Math.sqrt((B*B+C*C)/2));var F=A.value*Math.sqrt(Math.abs(G.determinant()));A=null}catch(E){stlog.add(E,282);F=D}return F}function STTSpanElement(I,J,H,E,G,C){this.tar=I;var F=I.getAttribute("x"),D=I.getAttribute("y"),B=I.getAttribute("dx"),A=I.getAttribute("dy");this.x=F?new STLength(F,G):null;this.y=D?new STLength(D,C):null;this.dx=(J||B)?new STLength(B||J):null;this.dy=(H||A)?new STLength(A||H):null;this.paint=new NAIBU.FontStyle(I);this.transformable=NAIBU.transformToCTM(I,E);return this}STTSpanElement.prototype.set=function(B,E,A){try{var D=this.tar.style;D.position="relative";D.left=(this.dx?this.dx.value:0)+A.dx+"px";D.top=(this.dy?this.dy.value:0)+A.dy+"px";var G,C;if(this.x&&this.y){G=new Point(this.x.value,this.y.value);C=G.matrixTransform(this.transformable);D.position="absolute";D.left=C.x+"px";D.top=C.y+"px"}G=C=B=E=null;return{dx:parseFloat(D.left),dy:parseFloat(D.top)}}catch(F){stlog.add(F,304)}};function STLine(A,C,B,D){this.tar=A;this.x1=new STLength((A.getAttribute("x1")||0),B);this.y1=new STLength((A.getAttribute("y1")||0),D);this.x2=new STLength((A.getAttribute("x2")||0),B);this.y2=new STLength((A.getAttribute("y2")||0),D);this.paint=new NAIBU.PaintColor(A);this.transformable=NAIBU.transformToCTM(A,C);return this}STLine.prototype.set=function lineset(H,E){try{var B=this.transformable,C=fontset;var K=C(this.paint["font-size"],H,E,B);if(this.x1._emToUnits(K)||this.x2._emToUnits(K)){this.y1._emToUnits(K);this.y2._emToUnits(K)}var G=["m",this.x1.value,this.y1.value,"l",this.x2.value,this.y2.value];var D=new PList(G);var A=D.matrixTransform(B);var I=A.list.join(" ");var J=this.tar;J.path=I;J.coordsize=H+" "+E;this.paint.set(H,E,B);G=D=A=I=this.paint=B=this.transformable=H=E=null}catch(F){stlog.add(F,257)}};function STPath(B,A){this.tar=B;var C=NAIBU;this.d=B.getAttribute("d")||"";this.paint=new C.PaintColor(B);this.transformable=C.transformToCTM(B,A);return this}(function(){var K=/\-/g,J=/,/g,H=/,/,D=/\S+/g,I={c:1,q:1},L={z:1},F={m:1},M={a:1},E={q:1},G={h:1},A={v:1},C={s:1},B={t:1};STPath.prototype.set=function(o,t){var Y="",Z=I,m=parseInt,q=parseFloat;if(this.d===""){return }var T=this.d.replace(K," -").replace(J," ").replace(/([a-yA-Y])/g,",$1 ").replace(/([zZ])/g,",$1 1").replace(H,"").split(",");for(var s=0,S=[],N=T.length;s<N;++s){S[s]=T[s].match(D);for(var r=1,a=S[s].length;r<a;++r){S[s][r]=q(S[s][r])}}T=null;var c=this.transformable,v;var n=y=0;var V=y0=0;var O=dy=0;var AD=c.a,AC=c.b,AB=c.c,AA=c.d,z=c.e,u=c.f;for(var s=0,p=S.length;s<p;++s){var R=S[s];var Q=R[0].toLowerCase();var g=(Q===R[0]);if(L[Q]){R=["x"];n=V;y=y0}else{if(M[Q]){R[0]="c";v=Q;var e=0,d=0;if(g){e=n;d=y}var P=new STArc();P.sset(n,y,R,e,d);n=R[R.length-2]+e;y=R[R.length-1]+d;var U=new PList(P.D);var f=U.matrixTransform(c);R=["c"].concat(f.list);if(R.length===8){R[7]=""}}else{var X=n,W=y;if(g){X=W=0}if(G[Q]){R=["l",R[R.length-1],W]}else{if(A[Q]){R=["l",X,R[R.length-1]]}else{if(C[Q]){R[0]="c";if(v!=="c"){O=dy=0}R=NAIBU.nst(6,R,X+O,W+dy)}else{if(B[Q]){R[0]="q";if(v!=="q"){O=dy=0}R=NAIBU.nst(4,R,X+O,W+dy)}else{R[0]=Q}}}}if(g){R=NAIBU.reltoabs(n,y,R)}v=Q=R[0];if(Z[Q]){var b=R.length;O=R[b-2]-R[b-4];dy=R[b-1]-R[b-3]}if(E[Q]){R=NAIBU.qtoc(n,y,R)}if(F[Q]){V=R[1];y0=R[2]}var b=R.length;n=R[b-2];y=R[b-1];var l,k;for(var r=1;r<b;r+=2){l=m(AD*R[r]+AB*R[r+1]+z,10);k=m(AC*R[r]+AA*R[r+1]+u,10);R[r]=l;R[r+1]=k}if(F[Q]&&b>3){R.splice(3,0,"l")}b=X=W=null}}Y+=R.join(" ");Q=R=null}S=b=null;var AE=this.tar;AE.path=Y+" e";AE.coordsize=o+" "+t;this.paint.set(o,t,c);s=N=a=r=AE=Y=this.paint=c=this.transformable=v=n=y=V=y0=O=dy=AD=AC=AB=AA=z=u=o=t=null}})();NAIBU.qtoc=function(A,I,H){H[0]="c";for(var E=1;E<H.length;E+=6){var C=H[E],G=H[E+1],B=H[E+2],D=H[E+3];H.splice(E,2,(A+2*C)/3,(I+2*G)/3,(2*C+B)/3,(2*G+D)/3);A=B;I=D}return H};NAIBU.nst=function(E,D,A,C){D.splice(1,0,A,C);for(var B=E+1;B<D.length;B+=E){A=2*D[B-2]-D[B-4];C=2*D[B-1]-D[B-3];D.splice(B,0,A,C)}return D};NAIBU.reltoabs=function(A,G,E){var D=2;if(E[0]==="c"){D=6}else{if(E[0]==="q"){D=4}}for(var B=1,C=E.length;B<C;B+=2){E[B]=E[B];E[B+1]=E[B+1];E[B]+=A;E[B+1]+=G;if((B+1)%D===0){A=E[B];G=E[B+1]}}return E};function STPolygon(B,A){this.tar=B;this.points=B.attributes.points.nodeValue;this.paint=new NAIBU.PaintColor(B);this.transformable=NAIBU.transformToCTM(B,A);return this}STPolygon.prototype.set=function polygonset(G,D){var H;var B=this.transformable;try{var I=this.points.replace(/^\s+|\s+$/g,"").split(/[\s,]+/);var C=new PList(I);var A=C.matrixTransform(B);A.list.splice(2,0,"l");H="m"+A.list.join(" ")+"x e";var J=this.tar;J.path=H;J.coordsize=G+" "+D;this.paint.set(G,D,B)}catch(E){stlog.add(E,406)}};function STPolyline(B,A){this.tar=B;this.points=B.attributes.points.nodeValue;this.paint=new NAIBU.PaintColor(B);this.transformable=NAIBU.transformToCTM(B,A);return this}STPolyline.prototype.set=function polylineset(G,D){var H;var B=this.transformable;try{var I=this.points.replace(/^\s+|\s+$/g,"").split(/[\s,]+/);var C=new PList(I);var A=C.matrixTransform(B);A.list.splice(2,0,"l");H="m"+A.list.join(" ")+"e";var J=this.tar;J.path=H;J.coordsize=G+" "+D;this.paint.set(G,D,B)}catch(E){stlog.add(E,440)}};function STCircle(D,B,A,C){this.tar=D;this.cx=new STLength((D.getAttribute("cx")||0),A);this.cy=new STLength((D.getAttribute("cy")||0),C);this.r=new STLength(D.getAttribute("r"));this.paint=new NAIBU.PaintColor(D);this.transformable=NAIBU.transformToCTM(D,B);A=C=null;return this}STCircle.prototype.set=function ovalset(L,O){var I=this.transformable,D=fontset;var B=D(this.paint["font-size"],L,O,I);if(this.cx._emToUnits(B)){this.cy._emToUnits(B);this.r._emToUnits(B)}var C=this.cx.value,A=this.cy.value,F=ry=this.r.value;var N=A-ry,E=C-F,J=A+ry,T=C+F;try{var H=F*0.55228,G=ry*0.55228;var R=["m",C,N,"c",C-H,N,E,A-G,E,A,E,A+G,C-H,J,C,J,C+H,J,T,A+G,T,A,T,A-G,C+H,N,C,N,"x e"];var P=new PList(R);var K=P.matrixTransform(I);var S=K.list.join(" ");var M=this.tar;M.path=S;M.coordsize=L+" "+O;this.paint.set(L,O,I);S=R=P=K=this.paint=I=this.transformable=L=O=null}catch(Q){stlog.add(Q,479)}};function STEllipse(D,B,A,C){this.tar=D;this.cx=new STLength((D.getAttribute("cx")||0),A);this.cy=new STLength((D.getAttribute("cy")||0),C);this.rx=new STLength(D.getAttribute("rx"),A);this.ry=new STLength(D.getAttribute("ry"),C);this.paint=new NAIBU.PaintColor(D);this.transformable=NAIBU.transformToCTM(D,B);A=C=null;return this}STEllipse.prototype.set=function elliset(M,P){var J=this.transformable,D=fontset;var B=D(this.paint["font-size"],M,P,J);if(this.cx._emToUnits(B)||this.rx._emToUnits(B)){this.cy._emToUnits(B);this.ry._emToUnits(B)}var C=this.cx.value,A=this.cy.value,G=this.rx.value,F=this.ry.value;var O=A-F,E=C-G,K=A+F,U=C+G;try{var I=G*0.55228,H=F*0.55228;var S=["m",C,O,"c",C-I,O,E,A-H,E,A,E,A+H,C-I,K,C,K,C+I,K,U,A+H,U,A,U,A-H,C+I,O,C,O,"x e"];var Q=new PList(S);var L=Q.matrixTransform(J);var T=L.list.join(" ");var N=this.tar;N.path=T;N.coordsize=M+" "+P;this.paint.set(M,P,J);T=S=Q=L=this.paint=J=this.transformable=M=P=null}catch(R){stlog.add(R,519)}};function STRectElement(D,B,A,C){this.tar=D;this.x=new STLength((D.getAttribute("x")||0),A);this.y=new STLength((D.getAttribute("y")||0),C);this.width=new STLength(D.getAttribute("svgwidth"),A);this.height=new STLength(D.getAttribute("svgheight"),C);var F=D.getAttribute("rx"),E=D.getAttribute("ry");if(F||E){this.rx=new STLength((F||E),A);this.ry=new STLength((E||F),C);if(this.rx.value>this.width.value/2){this.rx.value=this.width.value/2}if(this.ry.value>this.height.value/2){this.ry.value=this.height.value/2}}this.paint=new NAIBU.PaintColor(D);this.transformable=NAIBU.transformToCTM(D,B);A=C=F=E=null;return this}STRectElement.prototype.set=function rectset(M,O){try{var I=this.transformable,B=fontset;var A=B(this.paint["font-size"],M,O,I);if(this.x._emToUnits(A)||this.width._emToUnits(A)){this.y._emToUnits(A);this.height._emToUnits(A)}var L=this.x.value,K=this.y.value,H=L+this.width.value,W=K+this.height.value;var Q;if(this.rx){if(this.rx._emToUnits(A)){this.ry._emToUnits(A)}var E=this.rx.value,D=this.ry.value;var G=E*0.55228,F=D*0.55228;var V=H-E,U=L+E,T=K+D,S=W-D;Q=["m",U,K,"l",V,K,"c",V+G,K,H,T-F,H,T,"l",H,S,"c",H,S+F,V+G,W,V,W,"l",U,W,"c",U-G,W,L,S+F,L,S,"l",L,T,"c",L,T-F,U-G,K,U,K]}else{Q=["m",L,K,"l",L,W,H,W,H,K,"x e"]}var P=new PList(Q);var J=P.matrixTransform(I);var R=J.list.join(" ");var N=this.tar;N.path=R;N.coordsize=M+" "+O;this.paint.set(M,O,I);R=Q=P=J=this.paint=I=A=this.transformable=M=O=null}catch(C){stlog.add(C,576)}};function STImage(D,B,A,C){this.tar=D;this.x=new STLength((D.getAttribute("x")||0),A);this.y=new STLength((D.getAttribute("y")||0),C);this.width=new STLength(D.getAttribute("svgwidth"),A);this.height=new STLength(D.getAttribute("svgheight"),C);D.setAttribute("xlink:show","embed");this.xlink=new NAIBU.XLink(D);this.paint=new NAIBU.PaintColor(D);this.transformable=NAIBU.transformToCTM(D,B);A=C=null;return this}STImage.prototype.set=function imagesets(G,D){try{var B=this.transformable,C=fontset;var K=C(this.paint["font-size"],G,D,B);if(this.x._emToUnits(K)||this.width._emToUnits(K)){this.y._emToUnits(K);this.height._emToUnits(K)}var F=this.tar.style;F.position="absolute";var J=new Point(this.x.value,this.y.value);var I=J.matrixTransform(B);F.left=I.x+"px";F.top=I.y+"px";F.width=this.width.value*B.a+"px";F.height=this.height.value*B.d+"px";if(B.b!==0||B.c!==0||this.paint.fillopacity!=1){F.filter="progid:DXImageTransform.Microsoft.Matrix progid:DXImageTransform.Microsoft.Alpha";var H=this.tar.filters.item("DXImageTransform.Microsoft.Matrix");H.M11=1;H.M12=B.b;H.M21=B.c;H.M22=1;H.sizingMethod="auto expand";var A=this.tar.filters.item("DXImageTransform.Microsoft.Alpha");A.Style=0;A.Opacity=parseFloat(this.paint.fillopacity)*100}this.xlink.set();dat=J=this.paint=B=this.transformable=G=D=null}catch(E){stlog.set(E,21896)}};function STUseElement(E,A,C){this.tar=E;var B=E.nextSibling;B.setAttribute("xlink:show","embed");this.x=new STLength((B.getAttribute("x")||0),A);this.y=new STLength((B.getAttribute("y")||0),C);this.width=new STLength(B.getAttribute("svgwidth"),A);this.height=new STLength(B.getAttribute("svgheight"),C);this.xlink=new NAIBU.XLink(B);var D=B.getAttribute("transform")||"";this.xlink.set();B.setAttribute("transform",D+" translate("+this.x.value+","+this.y.value+")");B.firstChild.setAttribute("id","");B.coordorgin="0  0";this.paint=new NAIBU.PaintColor(this.xlink.resource);this.paint.tar=B;A=C=null;return this}STUseElement.prototype.set=function(){try{this.paint.setStyle();this.paint=null}catch(A){stlog.add(A,85436)}};NAIBU.PaintColor=function(E){if(E){this.tar=E;var F=this.defaults;var D=this.getParent(E);if(D){for(var C=0,B,A=this.defaultsList.length;C<A;++C){B=this.defaultsList[C];if(B==="opacity"){this[B]=(this.getAttribute(B)||1)*D[B]}else{this[B]=this.getAttribute(B)||D[B];if(this[B]==="inherit"){this[B]=D[B]}else{if(this[B]==="currentColor"){this[B]=this.getAttribute("color")||D.getAttribute("color")}}}B=null}}else{for(var C=0,B,A=this.defaultsList.length;C<A;++C){B=this.defaultsList[C];this[B]=this.getAttribute(B)||F[B];B=null}}}return this};NAIBU.PaintColor.prototype.defaultsList=["fill","fillopacity","stroke","strokewidth","strokelinecap","strokelinejoin","strokemiterlimit","strokedasharray","strokeopacity","opacity","cursor","font-size"];NAIBU.PaintColor.prototype.defaults={fill:"black",fillopacity:1,stroke:"none",strokewidth:"1",strokelinecap:"butt",strokelinejoin:"miter",strokemiterlimit:"4",strokedasharray:"none",strokeopacity:1,opacity:1,cursor:"default","font-size":"12","font-family":"sans-serif","font-style":"normal","font-weight":"400","text-transform":"none","text-decoration":"none","writing-mode":"lr-tb","text-anchor":"start"};NAIBU.PaintColor.prototype.cache={};NAIBU.PaintColor.prototype.getParent=function(C){var B=C.parentNode;if(B.tagName!=="group"&&B.tagName!=="A"){return null}else{var A=this.cache;var D=B.uniqueID;if(!A[D]){A[D]=new NAIBU.PaintColor(B)}return A[D];A=D=null}};NAIBU.PaintColor.prototype.getAttribute=function(A){var B=this.tar;var D=B.style[A];if(D){A=null;return D}var E=B.attributes[A];var C=E?E.nodeValue:null;A=null;return C};NAIBU.PaintColor.prototype.setStyle=function(){try{var A=this.tar;for(var B in this){if((typeof this[B])==="string"){A.style[B]=this[B]}}}catch(C){stlog.add(C,899);return""}};(function(){var A=/url\(#([^)]+)/,B={none:1};NAIBU.PaintColor.prototype.set=function(P,H,M){var C=this.tar;if(B[this.fill]){C.filled="false"}else{var L=document.createElement("v:fill");var F=false;try{if(A.test(this.fill)){this.w=P;this.h=H;F=this.gradient(L,RegExp.$1,M)}else{L.setAttribute("color",this.color(this.fill));var O=this.fillopacity*this.opacity;if(O<1){L.setAttribute("opacity",O+"")}}}catch(K){stlog.add(K,682);L.on="true";L.color="black"}if(!F){C.appendChild(L)}F=O=null}if(B[this.stroke]){C.stroked="false"}else{var G=document.createElement("v:stroke");var N=new STLength(this.strokewidth,Math.sqrt((P*P+H*H)/2));var D=N.value*Math.sqrt(Math.abs(M.determinant()));G.setAttribute("weight",D+"px");if(!A.test(this.stroke)){G.setAttribute("color",this.color(this.stroke));var J=this.strokeopacity*this.opacity;if(D<1){J*=D}if(J<1){G.setAttribute("opacity",J)}J=null}G.setAttribute("miterlimit",this.strokemiterlimit);G.setAttribute("joinstyle",this.strokelinejoin);if(this.strokelinecap==="butt"){G.setAttribute("endcap","flat")}else{G.setAttribute("endcap",this.strokelinecap)}var R=this.strokedasharray;if(!B[R]){if(R.indexOf(",")>0){var I=R.split(",");for(var E=0,Q=I.length;E<Q;++E){I[E]=Math.ceil(parseFloat(I[E])/parseFloat(this.strokewidth))}this.strokedasharray=I.join(" ");if(I.length%2===1){this.strokedasharray+=" "+this.strokedasharray}}G.setAttribute("dashstyle",this.strokedasharray);R=I=null}C.appendChild(G);N=R=null}if(this.cursor!=="default"){this.tar.style.cursor=this.cursor}P=H=null}})();NAIBU.PaintColor.prototype.keywords={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"};NAIBU.PaintColor.prototype.color=function(A){if(this.keywords[A]){return(this.keywords[A])}if(A.indexOf("%",5)>0){return A.replace(/[\d.]+%/g,function(B){return Math.round(2.55*parseFloat(B))})}return A};NAIBU._Percent=/%/;NAIBU.PaintColor.prototype.toNumber=function(A){return parseFloat(A.replace(NAIBU._Percent,""))};NAIBU.PaintColor.prototype.gradient=function(t,X,U){var L=document.getElementById(X),a=false;if(L){var D=L;while(D&&!D.hasChildNodes()){D.getAttribute("xlink:href").match(/#(.+)/);D=document.getElementById(RegExp.$1)}var S=D.getElementsByTagName("stop");if(!S){L=D=S=null;return false}var M=S.length;var T=[],b=[],l=[];for(var k=0;k<M;++k){var K=S[k];T[k]=this.color(K.style.stopcolor||K.getAttribute("stopcolor"))||"black";b[k]=K.getAttribute("offset")+" "+T[k];l[k]=(K.style.stopopacity||K.getAttribute("stopopacity")||1)*this.fillopacity*this.opacity}t.setAttribute("method","none");t.setAttribute("color",T[0]);t.setAttribute("color2",T[M-1]);t.setAttribute("colors",b.join(","));t.setAttribute("opacity",l[M-1]+"");t.setAttribute("o:opacity2",l[0]+"");var u=L.getAttribute("type"),j=this.toNumber;if(u==="gradient"){try{var J;var H=j((L.getAttribute("x1")||"0"));var v=j((L.getAttribute("y1")||"0"));var F=j((L.getAttribute("x2")||"100"));var s=j((L.getAttribute("y2")||"0"));J=270-Math.atan2(s-v,F-H)*180/Math.PI;if(J>=360){J-=360}}catch(o){stlog.add(o,749);J=270}t.setAttribute("type","gradient");t.setAttribute("angle",J+"");H=v=F=s=J=null}else{if(u==="gradientRadial"){try{t.setAttribute("type","gradientTitle");t.setAttribute("focus","100%");t.setAttribute("focusposition","0.5 0.5");if(this.tar.getAttribute("tag")==="rect"){var R=j((L.getAttribute("cx")||"0.5"));var P=j((L.getAttribute("cy")||"0.5"));var c=rx=ry=j((L.getAttribute("r")||"0.5"));var m=this.w,d=this.h,g=0,A=0;var p=this.tar.path.value;var n=L.getAttribute("gradientUnits");if(!n||n==="objectBoundingBox"){R=R>1?R/100:R;P=P>1?P/100:P;c=c>1?c/100:c;var Y=p.match(/[0-9\-]+/g);for(var k=0,V=Y.length;k<V;k+=2){var h=parseInt(Y[k]),f=parseInt(Y[k+1]);m=m>h?h:m;d=d>f?f:d;g=g>h?g:h;A=A>f?A:f;h=f=null}Y=null;R=R*(g-m)+m;P=P*(A-d)+d;rx=c*(g-m);ry=c*(A-d)}var C=L.getAttribute("gradientTransform");if(C){L.setAttribute("transform",C);U=NAIBU.transformToCTM(L,U)}m=R-rx;d=P-ry;g=R+rx;A=P+ry;var I=rx*0.55228,G=ry*0.55228;var Q=["m",R,d,"c",R-I,d,m,P-G,m,P,m,P+G,R-I,A,R,A,R+I,A,g,P+G,g,P,g,P-G,R+I,d,R,d,"x e"];var E=new PList(Q);var W=E.matrixTransform(U);var q=W.list.join(" ");var B=document.getElementById("_NAIBU_outline");var Z=document.createElement("div"),O=Z.style;O.position="absolute";O.display="inline-block";O.textAlign="left";O.top="0px";O.left="0px";O.width=this.w+"px";O.height=this.h+"px";B.appendChild(Z);O.filter="progid:DXImageTransform.Microsoft.Compositor";Z.filters.item("DXImageTransform.Microsoft.Compositor").Function=23;var N='<v:shape style="display:inline-block; position:relative; antialias:false; top:0px; left:0px;" coordsize="'+this.w+" "+this.h+'" path="'+q+'" stroked="f">'+t.outerHTML+"</v:shape>";Z.innerHTML='<v:shape style="display:inline-block; position:relative; top:0px; left:0px;" coordsize="'+this.w+" "+this.h+'" path="'+p+'" stroked="f" fillcolor="'+T[T.length-1]+'" ></v:shape>';Z.filters[0].apply();Z.innerHTML=N;Z.filters[0].play();this.tar.parentNode.insertBefore(Z,this.tar);this.tar.filled="false";q=N=p=Q=E=W=C=R=P=c=null;a=true}}catch(o){stlog.add(o,1175)}}}S=u=lengh=T=b=l=null}return a};NAIBU.FontStyle=function(A){NAIBU.PaintColor.apply(this,arguments);return this};NAIBU.FontStyle.prototype=new NAIBU.PaintColor(false);NAIBU.FontStyle.prototype.defaultsList=["font-family","font-style","font-weight","text-transform","text-decoration","writing-mode","text-anchor"].concat(NAIBU.PaintColor.prototype.defaultsList);NAIBU.FontStyle.prototype.cache={};NAIBU.FontStyle.prototype.getParent=function(C){var B=C.parentNode;if(B.tagName!=="group"&&B.tagName!=="A"&&B.tagName!=="DIV"){return null}var A=this.cache;var D=B.uniqueID;if(!A[D]){A[D]=new NAIBU.FontStyle(B)}return A[D]};NAIBU.FontStyle.prototype.setStyle=function(){try{var B=this.tar;for(var C in this){var E=this[C];if((typeof E)==="string"){var A=C.replace(/\-([a-z])/,"-"),D=RegExp.$1.toUpperCase();A=A.replace(/\-/,D);if(E==="lr"){E="lr-tb"}else{if(E==="tb"){E="tb-rl"}}B.style[A]=E;A=D=E=null}}}catch(F){stlog.add(F,1396);return""}};NAIBU.FontStyle.prototype.fset=function(A,E,B){try{var C=fontset;this.setStyle();var D=this.tar.style;D.whiteSpace="nowrap";D.color=this.fill==="none"?"transparent":this.fill;this.fontSize=C(this["font-size"],A,E,B);D.fontSize=this.fontSize+"px";if(this.cursor!=="default"){D.cursor=this.cursor}this.writingMode=D.writingMode;D.marginTop=(this.writingMode==="tb-rl")?"0px":-parseFloat(D.fontSize)+"px";D.textIndent="0px";D.lineHeight=this.fontSize+"px"}catch(F){stlog.add(F,1185)}};(function(){var C=/[A-Za-z]+(?=\s*\()/g,A=/\([^\)]+\)/g,B=/[\-\d\.e]+/g,D={6:1};NAIBU.transformToCTM=function(M,O){var L=M.getAttribute("transform");if(L){var K=parseFloat;var H=L.match(C);var R=L.match(A);var W,V,U,T,S,Q,E,N,X,I;for(var P=0,J=H.length;P<J;P++){E=R[P],com=H[P];N=E.match(B);I=N.length;if(D[I]){W=K(N[0]);V=K(N[1]);U=K(N[2]);T=K(N[3]);S=K(N[4]);Q=K(N[5])}else{X=parseFloat(N[0])/180*Math.PI;if(I===3){var G=parseFloat(N[1]),F=parseFloat(N[2]);W=Math.cos(X);V=Math.sin(X);U=-V;T=W;S=(1-W)*G-U*F;Q=-V*G+(1-T)*F}else{if(I<=2){switch(com){case"translate":W=1;V=0;U=0;T=1;S=parseFloat(N[0]);Q=parseFloat(N[1]||0);break;case"scale":W=parseFloat(N[0]);V=0;U=0;T=parseFloat(N[1]||N[0]);S=0;Q=0;break;case"rotate":W=Math.cos(X);V=Math.sin(X);U=-V;T=W;S=0;Q=0;break;case"skewX":W=1;V=0;U=Math.tan(X);T=1;S=0;Q=0;break;case"skewY":W=1;V=Math.tan(X);U=0;T=1;S=0;Q=0;break}}}}O=O.multiply(({a:W,b:V,c:U,d:T,e:S,f:Q}));E=com=N=X=null}R=H=mat=null}return O}})();function Point(A,B){this.x=A;this.y=B;return this}Point.prototype.matrixTransform=function(B){var A=parseInt(B.a*this.x+B.c*this.y+B.e);var D=parseInt(B.b*this.x+B.d*this.y+B.f);if(-1<A&&A<1){A=1}if(-1<D&&D<1){D=1}var C=new Point(A,D);return C};function PList(A){this.list=A;return this}PList.prototype.matrixTransform=function plmatrixtransform(H){var E=this.list;for(var A=0,D=E.length;A<D;){if(isNaN(E[A])){++A;continue}var G=new Point(parseFloat(E[A]),parseFloat(E[A+1]));var C=G.matrixTransform(H);E[A++]=C.x;E[A++]=C.y;G=C=null}var B=new PList(E);return B};function Matrix(B,A,F,E,D,C){this.a=B;this.b=A;this.c=F;this.d=E;this.e=D;this.f=C;return this}Matrix.prototype.multiply=function(A){var B=new Matrix(this.a*A.a+this.c*A.b,this.b*A.a+this.d*A.b,this.a*A.c+this.c*A.d,this.b*A.c+this.d*A.d,this.a*A.e+this.c*A.f+this.e,this.b*A.e+this.d*A.f+this.f);return B};Matrix.prototype.determinant=function(){return(this.a*this.d-this.b*this.c)};function STViewSpec(F){this.tar=F;var E=F.getAttribute("viewBox");if(E){var C=E.replace(/^\s+|\s+$/g,"").split(/[\s,]+/);this.viewBox=new STRect(parseFloat(C[0]),parseFloat(C[1]),parseFloat(C[2]),parseFloat(C[3]))}else{this.viewBox=null}var D=F.getAttribute("preserveAspectRatio")||"xMidYMid meet";var B=1,A=0;if(!!D.match(/x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?/)){switch(RegExp.$1){case"Min":B+=1;break;case"Mid":B+=2;break;case"Max":B+=3;break}switch(RegExp.$2){case"Min":break;case"Mid":B+=3;break;case"Max":B+=6;break}if(RegExp.$3==="slice"){A=2}else{A=1}}this.preserveAspectRatio=new STPreserveAspectRatio(B,A);E=D=null;return this}STViewSpec.prototype.set=function vss(L,T,N){var P=this.viewBox,J=this.preserveAspectRatio;try{if(!P){this._tx=this._ty=0;return new Matrix(1,0,0,1,0,0)}var B=P.x,A=P.y,C=P.width,G=P.height;var E=L/C,K=T/G;var F=1,O=1,S=0,R=0;if(J.align===1){F=E;O=K;S=-B*F;R=-A*O}else{var I=(J.align+1)%3+1;var H=Math.round(J.align/3);switch(J.meetOrSlice){case 1:F=O=Math.min(E,K);break;case 2:F=O=Math.max(E,K);break}S=-B*F;R=-A*O;switch(I){case 1:break;case 2:S+=(L-C*F)/2;break;case 3:S+=L-C*F;break}switch(H){case 1:break;case 2:R+=(T-G*O)/2;break;case 3:R+=T-G*O;break}}var D=N.style;this._tx=S;this._ty=R;D.marginLeft=this._tx+"px";D.marginTop=this._ty+"px";var M=new Matrix(F,0,0,O,0,0);return M}catch(Q){stlog.add(Q,1031)}};function STRect(A,D,B,C){this.x=A;this.y=D;this.width=B;this.height=C;return this}function STPreserveAspectRatio(B,A){this.align=B;this.meetOrSlice=A;return this}function STArc(){return this}STArc.prototype.matrixTransform=function arcmatrixTransform(A){var C=new PList(this.D);var B=new STArc();B.D=C.matrixTransform(A).list;C=null;return B};STArc.prototype.CVAngle=function starccvangle(C,B,E,D){var A=Math.atan2(D,E)-Math.atan2(B,C);return(A>=0)?A:2*Math.PI+A};STArc.prototype.set=function starcset(T,v,a,Z,k,C,f,P,p){var f=parseFloat(f),a=parseFloat(a),Z=parseFloat(Z),k=parseFloat(k),T=parseFloat(T),P=parseFloat(P),v=parseFloat(v),p=parseFloat(p);if(a===0||Z===0){return }a=Math.abs(a);Z=Math.abs(Z);var o=(T-P)/2,m=(v-p)/2;var E=Math.cos(k*Math.PI/180),b=Math.sin(k*Math.PI/180);var F=E*o+b*m,l=-1*b*o+E*m;var j=F*F,S=l*l;var V=a*a,D=Z*Z;var s=j/V+S/D;var g;if(s>1){a=Math.sqrt(s)*a;Z=Math.sqrt(s)*Z;g=0}else{var K=1;if(C===f){K=-1}g=K*Math.sqrt((V*D-V*S-D*j)/(V*S+D*j))}var U=g*a*l/Z,u=-1*g*Z*F/a;var Y=E*U-b*u+(T+P)/2,X=b*U+E*u+(v+p)/2;var n=this.CVAngle(1,0,(F-U)/a,(l-u)/Z);var J=this.CVAngle((F-U)/a,(l-u)/Z,(-F-U)/a,(-l-u)/Z);if(!f&&J>0){J-=2*Math.PI}else{if(f&&J<0){J+=2*Math.PI}}var H=J*2/Math.PI;var c=Math.ceil(H<0?-1*H:H);var d=J/c;var O=[];var e=8/3*Math.sin(d/4)*Math.sin(d/4)/Math.sin(d/2);var B=E*a,A=E*Z;var N=b*a,M=b*Z;var W=Math.cos(n);var L=Math.sin(n);var R=T-e*(B*L+M*W),r=v-e*(N*L-A*W);for(var h=0;h<c;++h){n+=d;W=Math.cos(n);L=Math.sin(n);var Q=B*W-M*L+Y,q=N*W+A*L+X;var I=-e*(B*L+M*W),G=-e*(N*L-A*W);O=O.concat([R,r,Q-I,q-G,Q,q]);R=Q+I;r=q+G}this.D=(this.D?this.D.concat(O):O);O=null;return true};STArc.prototype.sset=function starcsset(B,A,E,F,D){for(var C=1,G=E.length;C<G+1;C+=7){this.set(B,A,E[C],E[C+1],E[C+2],E[C+3],E[C+4],E[C+5]+F,E[C+6]+D);B=E[C+5]+F;A=E[C+6]+D}};function STLength(F,B){F+="";this.unitType=0;if(B===void 0){B=1}try{this._n[1]*=B;var A=parseFloat(F);var C=F.match(this._dR);var D=1;if(!!C){D=this._tani[C]}this.newValueSpecifiedUnits(D,A);F=B=A=C=D=null}catch(E){stlog.add(E,1133);this.value=1000}return this}STLength.prototype._dR=/[a-z%]+$/;STLength.prototype._n=[1,0.01,1,1,1,35.43307,3.543307,90,1.25,15];STLength.prototype._tani={pt:9,pc:10,mm:7,cm:6,"in":8,em:3,ex:4,px:5,"%":2};STLength.prototype.newValueSpecifiedUnits=function(B,A){this.unitType=B;this.value=A*this._n[B-1];this.valueInSpecifiedUnits=A;this._n[1]=0.01};STLength.prototype._emToUnits=function(A){if(this.unitType===3){this.value*=A;return true}else{if(this.unitType===4){this.value*=A*0.5;return true}}};NAIBU.XLink=function(F){this.tar=F;var D=F.getAttribute("xlink:href");this.title=F.getAttribute("xlink:title");if(D){this.show=F.getAttribute("xlink:show");var E;var G=F.getAttribute("xml:base");if(!G){var C=F.parentNode,A=null;while(!A&&C.tagName==="group"){A=C.getAttribute("xml:base");C=C.parentNode}E=A;if(!A){if(D.indexOf("#")!==0){var B=location.href;E=B.replace(/\/[^\/]+?$/,"/")}else{E=location.href}}}else{E=G}if(D.indexOf(":")===-1){this.base=E}else{this.base=""}this.href=D}else{this.href=null}return this};NAIBU.XLink.prototype.set=function(){try{if(this.href){var B=this.base+this.href;if(this.href.indexOf(".")===0){B=this.href}switch(this.show){case"embed":if(this.tar.tagName==="image"){this.tar.src=B}else{B.match(/#(.+)$/);this.resource=document.getElementById(RegExp.$1);this.tar.appendChild(this.resource.cloneNode(true));this.tar.style.cssText=this.resource.style.cssText}break;case"new":this.tar.setAttribute("target","_blank");break}this.tar.setAttribute("href",B)}if(this.title){var A=this.tar.firstChild;while(A){if(A.nodeType===1){A.setAttribute("title",this.title)}A=A.nextSibling}}}catch(C){stlog.add(C,17155)}};function _ie_svgfont(){try{var A=document.getElementsByTagName("FONTFACEURI");for(var B=0;B<A.length;++B){var E=A[B].getAttribute("xlink:href");var C=E.substring(E.indexOf("#")+1,E.length);getURL(E.replace(/#.+$/,""),_ie_font,[{id:C,style:{}}],1)}}catch(D){stlog.add(D,1847)}}function _ie_font(E){if(!!E.success){var J=new ActiveXObject("MSXML2.DomDocument");str=E.content.replace(/!DOCTYPE/,"!--").replace(/(dtd">|\]>)/,"-->");J.loadXML(str);var C=J.getElementsByTagName("font").item(0);var D=C.getElementsByTagName("font-face").item(0).getAttribute("font-family");if(D&&C.getAttribute("id")===E.obj[0].id){var G=document.getElementsByTagName("div");for(var F=0,A=G.length;F<A;++F){var B=G[F],H=B.style;var I=(!!H.fontFamily)?H.fontFamily:"serif";if(I.indexOf(D)>-1){NAIBU._ie_createFont(B,C)}}}}}NAIBU._ie_createFont=function(K,U){var X=K.firstChild,d,G=U.getElementsByTagName("glyph");var E=K.style;var I=(E.writingMode.indexOf("tb")===0),J=I?"vert-adv-y":"horiz-adv-x";var B=parseFloat(U.getElementsByTagName("font-face").item(0).getAttribute("units-per-em")||0);var A=parseFloat((U.getAttribute(J)||B));var Q=parseFloat(E.left),D=parseFloat(E.fontSize),O=parseFloat(E.top)-D*0.25,V=D/B;while(X){d=X.data;if(d!==void 0){var S=[],b=[];for(var Z=0,R=G.length;Z<R;++Z){var P=G[Z],a=P.getAttribute("unicode")||"なし";var F=P.getAttribute("orientation"),c=true,Y=true;if(F){if(F==="h"){c=false}}else{Y=false}if((I&&c)||!(I||c)||!Y){var L=d.indexOf(a);while(L>-1){S[L]=parseFloat(P.getAttribute(J)||A);b[L]=P.getAttribute("d")||"M0 0";L=d.indexOf(a,L+1)}}}for(var Z=0,H=0;Z<d.length;++Z){if(S[Z]!==void 0){var W=document.createElement("v:shape");if(I){var M=O+H*V,N=Q}else{var N=Q+H*V,M=O}K.parentNode.insertBefore(W,K);W.style.cssText=K.style.cssText;if("、。".indexOf(d.charAt(Z))>-1){var C=D/Math.SQRT2;N+=C;M-=C;C=null}var T=new STPath(W,(new Matrix(V,0,0,-V,N,M)));T.d=b[Z];T.set(K.w,K.h);T=null;H+=S[Z]}}H=S=b=null}else{NAIBU._ie_createFont(X,U)}X=X.nextSibling}K.style.visibility="hidden";d=I=J=B=A=Q=O=D=V=null};NAIBU._fontSearchURI=function(D){var A=D.getElementsByTagNameNS(NAIBU.svgNameSpace,"font-face-uri");for(var B=0;B<A.length;++B){var E=A[B].getAttributeNS("http://www.w3.org/1999/xlink","href");var C=E.substring(E.indexOf("#")+1,E.length);getURL(E.replace(/#.+$/,""),_noie_font,[{id:C,style:{},docu:D}],1)}if(A.length===0){NAIBU.STObject.readSvgFont()}};function _noie_font(F){if(!!F.success){var I=(new DOMParser()).parseFromString(F.content,"text/xml");var D=I.getElementsByTagNameNS(NAIBU.svgNameSpace,"font").item(0);var E=D.getElementsByTagNameNS(NAIBU.svgNameSpace,"font-face").item(0).getAttributeNS(null,"font-family");if(E&&D.getAttributeNS(null,"id")===F.obj[0].id){var H=F.obj[0].docu.getElementsByTagNameNS(NAIBU.svgNameSpace,"text");for(var G=0,B=H.length;G<B;++G){var C=H[G],A=F.obj[0].docu.defaultView.getComputedStyle(C,"");if(A.fontFamily.indexOf(E)>-1){NAIBU._noie_createFont(C,D)}}}I=F=null;NAIBU.STObject.readSvgFont()}}NAIBU._noie_createFont=function(K,T){var f=K.ownerDocument.defaultView.getComputedStyle(K,"");var I=K.getAttributeNS(null,"writing-mode")||K.parentNode.getAttributeNS(null,"writing-mode"),J=I?"vert-adv-y":"horiz-adv-x";var X=K.firstChild,h,F=T.getElementsByTagNameNS(NAIBU.svgNameSpace,"glyph");var B=parseFloat(T.getElementsByTagNameNS(NAIBU.svgNameSpace,"font-face").item(0).getAttribute("units-per-em")||0);var A=parseFloat((T.getAttributeNS(null,J)||B));var Q=parseFloat(K.getAttributeNS(null,"x")||0),D=parseFloat(f.fontSize),O=parseFloat(K.getAttributeNS(null,"y")||0),U=D/B;var V=false,Z=NAIBU.PaintColor.prototype.defaultsList;if(/a/[-1]==="a"){V=true}else{if(I){V=true}}if(V){while(X){h=X.data;if(h!==void 0){var S=[],e=[];for(var c=0,R=F.length;c<R;++c){var P=F[c],d=P.getAttributeNS(null,"unicode")||"なし";var E=P.getAttributeNS(null,"orientation"),g=true,Y=true;if(E){if(E==="h"){g=false}}else{Y=false}if((I&&g)||!(I||g)||!Y){var L=h.indexOf(d);while(L>-1){S[L]=parseFloat(P.getAttributeNS(null,J)||A);e[L]=P.getAttributeNS(null,"d");L=h.indexOf(d,L+1)}}}for(var c=0,H=0;c<h.length;++c){if(S[c]!==void 0){var W=K.ownerDocument.createElementNS(NAIBU.svgNameSpace,"path");var b=new Matrix(U,0,0,-U,0,0);for(var a=0;a<Z.length;++a){var G=Z[a].replace(/(fill|stroke)(\w)/,"$1-$2");W.setAttributeNS(null,G,K.getAttributeNS(null,G))}if(I){var M=O+H*U,N=Q;if("、。".indexOf(h.charAt(c))>-1){var C=D/Math.SQRT2;N+=C;M-=C;C=null}b.e=N;b.f=M}else{b.e=Q+H*U;b.f=O}W.setAttributeNS(null,"transform","matrix("+b.a+","+b.b+","+b.c+","+b.d+","+b.e+","+b.f+")");W.setAttributeNS(null,"d",e[c]);K.parentNode.insertBefore(W,K);H+=S[c];b=null}}H=S=e=null}else{NAIBU._noie_createFont(X,T)}X=X.nextSibling}K.style.opacity="0"}h=I=J=B=A=Q=O=D=f=null};NAIBU.Time={currentFrame:0,start:function(){if(NAIBU.Clip.length>0){NAIBU.stop=setInterval((function(){var B=NAIBU.Time.currentFrame++;var D=NAIBU.Clip;for(var C=0,A=D.length;C<A;++C){if(D[C]._begin){D[C]._frame(B)}}if(B>7000){clearInterval(NAIBU.stop)}}),125)}}};NAIBU.Clip=[];function STSetElement(G,C,B,F){if(!!G){var E=G.parentNode,D={};if(E.nodeName==="shape"){switch(E.getAttribute("tag")){case"path":D=new STPath(E,C);break;case"rect":D=new STRectElement(E,C,B,F);break;case"circle":D=new STCircle(E,C,B,F);break;case"ellipse":D=new STEllipse(E,C,B,F);break;case"polyline":D=new STPolyline(E,C);break;case"polygon":D=new STPolygon(E,C);break;case"line":D=new STLine(E,C,B,F);break}}else{if(E.nodeName==="DIV"){D=new STText(E,C,B,F)}else{if(E.nodeName==="A"){D=new STAElement(E,C)}else{if(E.nodeName==="image"){D=new STImage(E,C,B,F)}}}}var A=NAIBU.Clip.length;if(A!==0){if(NAIBU.Clip[A-1].tar===G){D=NAIBU.Clip[A-1].target}}this.trnasformable=D.transformable;this.target=D;this.tar=G;this.paint=D.paint;this.currentFrame=0;this.attributeName=G.getAttribute("attributeName").replace(/(fill|stroke)\-/,"&1");this.begin=G.getAttribute("begin")||"0ms";this.end=G.getAttribute("end");this.dur=G.getAttribute("dur");this.fill=G.getAttribute("fill");this.w=B;this.h=F;this._begin=this._end=this.simpleDuration=null;NAIBU.Clip[A]=this;A=null}return this}STSetElement.prototype._eventRegExp=/(mouse|activ|clic)[a-z]+/;STSetElement.prototype._timeRegExp=/[\-\d\.]+(h|min|s|ms)/;STSetElement.prototype.set=function(A,B){this.to=this.tar.getAttribute("to");var D=0;try{this.eventSync(this.begin,(function(G,F,E){E.attachEvent("on"+G.begin.match(G._eventRegExp)[0],function(){if(F!==0){G.beginElementAt(F)}else{G._begin=NAIBU.Time.currentFrame;G.beginElement();G.currentFrame++}},false)}),"beginElementAt");if(this.dur){this.simpleDuration=this.getOffset(this.dur)}if(this.end){this.eventSync(this.end,(function(G,F,E){E.attachEvent("on"+G.end.match(G._eventRegExp)[0],function(){G.endElementAt(F)},false)}),"endElementAt")}}catch(C){stlog.add(C,2239)}};STSetElement.prototype._unit={h:2880000,min:48000,s:800,ms:0.8};STSetElement.prototype.getOffset=function(A){var C=parseFloat(A.match(this._timeRegExp));var B=(!isNaN(C))?C*this._unit[RegExp.$1]:0;C=A=null;return B};STSetElement.prototype.eventSync=function(C,D,B){var E=this.getOffset(C);if(/(mouse|activ|click)/.test(C)){var A;if(/\.\D/.test(C)){A=this.tar.ownerDocument.getElementById(C.substring(0,C.indexOf(".")))}else{A=this.target.tar}D(this,E,A)}else{this[B](E)}};STSetElement.prototype._frame=function(A){if(this._begin<=A){if(this.currentFrame===0){this.beginElement()}this.currentFrame++}if(this._end){if(this._end<=A&&this.currentFrame!==0){this.endElement();this.currentFrame=0;this._begin=this._end=null}}};STSetElement.prototype.beginElement=function(){var F=this.target,G=this.attributeName;var A=F[G];try{if(!(F instanceof STGroupElement)){var B=F.tar;var D=B.getElementsByTagName("fill"),H=B.getElementsByTagName("stroke");if(D.length>0){B.removeChild(D[0])}if(H.length>0){B.removeChild(H[0])}}if(A!==void 0){if(typeof A==="string"){F[G]=this.to}else{if(A instanceof STLength){var I=A.value;A.newValueSpecifiedUnits(A.unitType,parseFloat(this.to));A=I}}}else{if(F.paint.defaults[G]!==void 0){A=F.paint[G];F.paint[G]=this.to}else{A="";F.tar.style[G]=this.to}}F.set(this.w,this.h);F.transformable=this.trnasformable;F.paint=this.paint;this.base=A;if(this.simpleDuration){if(this._end){var C=(this.simpleDuration>this._end-this._begin)?this._end-this._begin:this.simpleDuration;this.endElementAt(C);C=null}else{this.endElementAt(this.simpleDuration)}}}catch(E){stlog.add(E,23400)}G=null;return };STSetElement.prototype.endElement=function(){if(this.fill){if(this.fill==="freeze"){return }}var A=this.to;this.to=this.base;this.beginElement();this.to=A;return };STSetElement.prototype.beginElementAt=function(B){var A=NAIBU.Time.currentFrame;this._begin=Math.ceil(B*0.8/125+A);this._frame(A)};STSetElement.prototype.endElementAt=function(A){this._end=Math.ceil(A*0.8/125+NAIBU.Time.currentFrame)};function _noie_STSetElement(A){if(!!A){this.target=A.parentNode;this.tar=A;this.currentFrame=0;this.attributeName=A.getAttributeNS(null,"attributeName");this.begin=A.getAttributeNS(null,"begin")||"0ms";this.end=A.getAttributeNS(null,"end");this.dur=A.getAttributeNS(null,"dur");this.fill=A.getAttributeNS(null,"fill");this._begin=this._end=this.simpleDuration=null;NAIBU.Clip[NAIBU.Clip.length]=this}return this}_noie_STSetElement.prototype=new STSetElement();_noie_STSetElement.prototype.set=function(){this.to=this.tar.getAttributeNS(null,"to");var B=0;try{this.eventSync(this.begin,(function(E,D,C){C.addEventListener(E.begin.match(E._eventRegExp)[0],function(){if(D!==0){E.beginElementAt(D)}else{E._begin=NAIBU.Time.currentFrame;E.beginElement();E.currentFrame++}},false)}),"beginElementAt");if(this.dur){this.simpleDuration=this.getOffset(this.dur)}if(this.end){this.eventSync(this.end,(function(E,D,C){C.addEventListener(E.end.match(E._eventRegExp)[0],function(){E.endElementAt(D)},false)}),"endElementAt")}}catch(A){stlog.add(A,2239)}};_noie_STSetElement.prototype.beginElement=function(){try{var D=this.target,A=this.attributeName,B=D.getAttributeNS(null,A)||D.style.getPropertyValue(A);D.setAttributeNS(null,A,this.to);D.style.setProperty(A,this.to,"");this.base=B;if(this.simpleDuration){if(this._end){var E=(this.simpleDuration>this._end-this._begin)?this._end-this._begin:this.simpleDuration;this.endElementAt(E);E=null}else{this.endElementAt(this.simpleDuration)}}A=null}catch(C){stlog.add(C,24370)}return };function utf16(A){return unescape(A)}function unescapeUTF16(A){return A.replace(/%u\w\w\w\w/g,utf16)}function textToSVG(E,A,C){if(navigator.userAgent.indexOf("WebKit")>-1||navigator.userAgent.indexOf("Safari")>-1){var D="data:image/svg+xml;charset=utf-8,"+unescapeUTF16(escape(E));var B=document.createElement("object");B.setAttribute("data",D);B.setAttribute("width",A);B.setAttribute("height",C);B.setAttribute("type","image/svg+xml");return B}else{var F=(new DOMParser()).parseFromString(E,"text/xml");return(document.importNode(F.documentElement,true))}}function HTTP(){var A;try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){A=false}}if(!A){try{A=new XMLHttpRequest()}catch(C){A=false}}return A}var success=true;function ca(R){if(success&&R.success){try{var H=R.obj[R.num-1];var B=new STLength(H.getAttribute("width"),H.clientWidth),I=new STLength(H.getAttribute("height"),H.clientHeight);var G=B.value,K=I.value}catch(N){stlog.add(N,1209)}var P=R.content.replace(/<!DOCTYPE/,"<!--").replace(/(?:dtd">|\]>)/,"-->").replace(/<\?[^>]+\?>/g,"").replace(/<!\[CDATA\[/g,"<!--").replace(/\]\]>/g,"-->").replace(/xmlns="[^"]+"/g,"").replace(/<svg(?=\s|>)/g,"<v:group").replace(/\/svg>/g,"/v:group>").replace(/<path\s/g,'<v:shape tag="path" ').replace(/\/path>/g,"/v:shape>").replace(/<rect\s/g,'<v:shape tag="rect" ').replace(/\/rect>/g,"/v:shape>").replace(/<line\s/g,'<v:shape tag="line" ').replace(/\/line>/g,"/v:shape>").replace(/<circle\s/g,'<v:shape tag="circle" ').replace(/\/circle>/g,"/v:shape>").replace(/<ellipse\s/g,'<v:shape tag="ellipse" ').replace(/\/ellipse>/g,"/v:shape>").replace(/<polyline\s/g,'<v:shape tag="polyline" ').replace(/\/polyline>/g,"/v:shape>").replace(/<polygon\s/g,'<v:shape tag="polygon" ').replace(/\/polygon>/g,"/v:shape>").replace(/<text(?=\s|>)/g,"<div").replace(/\/text>/g,"/div>").replace(/<g(?=\s|>)/g,"<v:group").replace(/\/g>/g,"/v:group>").replace(/<linearGradient\s/g,'<v:fill type="gradient" ').replace(/\/linearGradient>/g,"/v:fill>").replace(/<radialGradient\s/g,'<v:fill type="gradientRadial" ').replace(/\/radialGradient>/g,"/v:fill>").replace(/fill-/g,"fill").replace(/stroke-/g,"stroke").replace(/stop-/g,"stop").replace(/\bwidth=/g,"svgwidth=").replace(/\bheight=/g,"svgheight=").replace(/<tspan\s/g,"<span ").replace(/\/tspan>/g,"/span>").replace(/<image\s/g,"<v:image ").replace(/\/image>/g,"/v:image>").replace(/<use\s/g,"<use /><v:group ").replace(/\/use>/g,"/v:group>").replace(/<defs(?=\s|>)/g,"<dn:defs").replace(/\/defs>/g,"/dn:defs>").replace(/<font-face-?/g,"<fontface").replace(/<\/font-face-?/g,"</fontface").replace(/<set\s/g,"<dn:set ");var M=document.createElement("v:group");var F=M.style;M.innerHTML=P;R=P=null;var J=M.getElementsByTagName("group").item(0);var O=J.getAttribute("svgwidth")||G;var A=J.getAttribute("svgheight")||K;var E=new STLength(O,G);var L=new STLength(A,K);var D=E.value,C=L.value;F.width=D+"px";F.height=C+"px";M.coordsize=D+" "+C;var Q=new SVGtoVML(J,G,K,E,L);H.parentNode.insertBefore(M,H);Q.read(M);Q.set(M);Q=B=I=E=L=null;NAIBU.PaintColor.prototype.cache={};if(NAIBU.STObject!==void 0){NAIBU.STObject.next()}}}function getURL(B,E,A,F){var D=new HTTP();if(D){var C=A[F-1];C.style.display="none";D.open("GET",B,true);D.setRequestHeader("X-Requested-With","XMLHttpRequest");D.onreadystatechange=function(){if(D.readyState===4&&D.status===200){E({success:true,content:D.responseText,obj:A,num:F});D=null}};D.send(null)}else{E({success:false})}}if(sieb_s){svgtovml()};