!function(){if("undefined"==typeof window)return;const t="zxt-xiaoyibang-icon";if(document.getElementById(t))return;const e=document.currentScript;let i={};if(e){const t=new URL(e.src);i={url:t.searchParams.get("app_id")?`https://zxt.xiaoyibang.com/app?id=${t.searchParams.get("app_id")}`:"https://zxt.xiaoyibang.com/console",target:t.searchParams.get("target")||"_blank",image:t.searchParams.get("image")||"https://zxtoss.xiaoyibang.com/ask_ai_button_icon.gif",mobileImage:t.searchParams.get("mobile_image")||"https://zxtoss.xiaoyibang.com/ask_ai_button_icon.gif",width:t.searchParams.get("width"),height:t.searchParams.get("height"),widthMobile:t.searchParams.get("width_mobile"),heightMobile:t.searchParams.get("height_mobile"),right:t.searchParams.get("right")||"20",top:t.searchParams.get("top")||"200",rightMobile:t.searchParams.get("right_mobile")||"20",topMobile:t.searchParams.get("top_mobile")||"200"}}const n=document.createElement("style");n.textContent=`\n #${t} {\n position: fixed;\n top: ${i.top}px;\n right: ${i.right}px;\n width: ${i.width?i.width+"px":"max-content"};\n height: ${i.height?i.height+"px":"max-content"};\n max-width: ${i.width?i.width+"px":"144px"};\n max-height: ${i.height?i.height+"px":"144px"};\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n z-index: 9999;\n transition: all 0.3s;\n user-select: none;\n touch-action: none;\n }\n #${t} img {\n max-width: 100%;\n height: auto;\n }\n @media screen and (max-width: 750px) {\n #${t} {\n top: ${i.topMobile}px;\n right: ${i.rightMobile}px;\n width: ${i.widthMobile?i.widthMobile+"px":"max-content"};\n height: ${i.heightMobile?i.heightMobile+"px":"max-content"};\n max-width: ${i.widthMobile?i.widthMobile+"px":"80px"};\n max-height: ${i.heightMobile?i.heightMobile+"px":"80px"};\n }\n }\n `,document.head.appendChild(n);const a=document.createElement("div");a.id=t;const h=document.createElement("img");h.src=window.innerWidth>750?i.image:i.mobileImage,h.alt="college",a.appendChild(h),document.body.appendChild(a),a.addEventListener("click",(function(){window.open(i.url,i.target)}))}();